首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >rubymotion _UIGetScreenImage

rubymotion _UIGetScreenImage
EN

Stack Overflow用户
提问于 2016-01-13 00:59:16
回答 1查看 34关注 0票数 0

我们现在已经尝试了几次将我们的应用程序提交到商店,但一直被标记为一个方法:"_UIGetScreenImage“。我们的代码中没有此方法的任何实例,也无法在我们的第三方库中找到任何实例。我想知道是不是我们的应用程序中还有什么东西导致苹果将其标记为使用这种方法?任何帮助都是非常感谢的。

这是我们的Rakefile

代码语言:javascript
复制
# -*- coding: utf-8 -*-
$:.unshift("/Library/RubyMotion/lib")
require 'motion/project/template/ios'

begin
  require 'motion-cocoapods'
  require 'bundler'
  require 'bubble-wrap/mail'
  require 'motion-installr'
 # require 'motion-blitz'
  Bundler.require
rescue LoadError
end

Motion::Project::App.setup do |app|
  # Use `rake config' to see complete project settings.
  app.name = 'urvirl'
  app.icons = ['Icon.png', 'Icon-72@2x.png', 'Icon-72.png', 'Icon-Small-20.png', 'Icon-Small-20@2x.png','Icon-Small-30.png','Icon-Small-30@2x.png', 'Icon-Small-50.png','Icon-Small-50@2x.png','Icon-Small.png', 'Icon-Small@2x.png', 'Icon.png', 'Icon@2x.png', 'apple-touch-icon-120x120.png', 'apple-touch-icon-152x152.png', 'apple-touch-icon-76x76.png']
  app.version = "1.0.11"
  app.identifier = 'com.ourcomp.urvirl'
  app.device_family = [:iphone]
  app.detect_dependencies = false
  app.interface_orientations = [:portrait]
  app.development do
    app.entitlements["aps-environment"] = "development"
    app.provisioning_profile = '/Users/mac/downloads/app_development.mobileprovision'
    app.codesign_certificate = 'iPhone Developer: John Q (myId)'
  end
  # Building for Ad Hoc or App Store distribution
  app.release do
    app.entitlements["aps-environment"] = "production"
    app.codesign_certificate = 'iPhone Distribution:Company, Inc (compId)'
    app.provisioning_profile = '/Users/mac/downloads/urvirl_release.mobileprovision'
  end
  app.info_plist["UIRequiresFullScreen"] = true
  app.info_plist['NSAppTransportSecurity'] = {
      'NSExceptionDomains' => {
          'http://our_api.com' => { 'NSTemporaryExceptionAllowsInsecureHTTPLoads' => true }
      }
  }
  app.info_plist['NSAppTransportSecurity'] = { 'NSAllowsArbitraryLoads' => true }
  app.info_plist["LSRequiresIPhoneOS"] = true
  app.fonts = ['tw-cent-bold.ttf']

  app.frameworks += [
    'QuartzCore'
  ]

  app.pods do
    pod 'TMReachability', :git => 'https://github.com/albertbori/Reachability', :commit => 'e34782b386307e386348b481c02c176d58ba45e6'
    pod 'SVProgressHUD', :head
    pod 'UITextView+Placeholder'
    pod 'SSKeychain'
    pod 'ViewDeck', '~> 2.4'
  end
end

和我们的Gemfile:

源'https://rubygems.org

代码语言:javascript
复制
gem 'rake'
# Add your dependencies here:

gem 'ruby_motion_query', github: 'infinitered/rmq'

gem 'motion-calabash'

gem 'motion-support'
gem 'motion-keychain'

gem 'bubble-wrap'
gem 'bubble-wrap-http'

gem 'motion-cocoapods'

gem 'motion-installr'

gem 'motion-firebase'

和我们的app_delegate.rb

代码语言:javascript
复制
class AppDelegate

  attr_accessor :window, :centerController, :leftController

  def application(application, didFinishLaunchingWithOptions:launchOptions)
    @window = UIWindow.alloc.initWithFrame(UIScreen.mainScreen.bounds)

    chat_controller = ChatController.alloc.initWithNibName(nil, bundle: nil)
    contact_controller = ContactController.alloc.initWithNibName(nil, bundle: nil)

    rightController = RightViewController.alloc.init



    self.centerController = UINavigationController.alloc.initWithRootViewController(AuthenticationController.alloc.init)
    deckController = IIViewDeckController.alloc.initWithCenterViewController(self.centerController,
                                                                              rightViewController: rightController
                                                                            )
    deckController.rightSize = 70
    @window.rootViewController = deckController

    @window.makeKeyAndVisible

    true

  end

  def applicationDidBecomeActive(application)
    UIApplication.sharedApplication.applicationIconBadgeNumber = 0
  end

  def application(application, didRegisterUserNotificationSettings: notificationSettings)  
    application.registerForRemoteNotifications
  end 



  def application(application, didRegisterForRemoteNotificationsWithDeviceToken: device_token)  
    # Save the device token back to the Rails app.
    # The token first needs to be converted to a string before saving
    string = token_to_string(device_token)
    MotionKeychain.set('device_id', string)
  end

  def token_to_string(device_token)  
    device_token.description.stringByTrimmingCharactersInSet(NSCharacterSet.characterSetWithCharactersInString("<>")).stringByReplacingOccurrencesOfString(" ", withString: "")
  end 

  def application(application, didFailToRegisterForRemoteNotificationsWithError: error)  
    NSLog("%@", error.localizedDescription)
  end  
end

谢谢你的帮助!

EN

回答 1

Stack Overflow用户

发布于 2016-01-13 01:46:13

找到问题了,gem 'motion-calabash‘中有一个屏幕截图引用,删除这个gem进行生产,构建就会成功。

票数 0
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/34749561

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档