[英]rubymotion _UIGetScreenImage
我們已經嘗試過幾次將我們的應用提交到商店,但仍被標記為“ _UIGetScreenImage”方法。 我們的代碼中任何地方都沒有這種方法的實例,也無法在我們的第三方庫中找到任何實例。 我想知道我們的應用程序是否還有其他原因導致Apple為此方法標記它? 任何幫助表示贊賞。
這是我們的Rakefile
# -*- 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 '
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
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
謝謝您的幫助!
找到了問題,在gem'motion-calabash'中有一個屏幕截圖參考,刪除該gem進行生產,構建將成功。
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.