我用Ruby Motion创建了一个在模拟器中打开的应用程序。但是当我尝试用设备打开它时崩溃了。
我已经注册了该设备并创建了一个IOP配置文件,我已将其包含在应用程序的Rake文件中以及应用程序主菜单中的“签名”文件夹中。
这是终端有关崩溃原因的信息。 我非常感谢你帮助,因为我已经尝试了我能想到的一切。
由于 丹尼尔
Build ./build/iPhoneOS-9.3-Development
Build /Users/danielo/.rvm/gems/ruby-2.1.1/gems/motion-yaml-1.4/lib/YAMLKit
Build /Users/danielo/.rvm/gems/ruby-2.1.1/gems/cdq-1.0.8/lib/../vendor/cdq/ext
Link ./build/iPhoneOS-9.3-Development/4capisco.app/4capisco
Create ./build/iPhoneOS-9.3-Development/4capisco.app/Info.plist
Create ./build/iPhoneOS-9.3-Development/4capisco.app/embedded.mobileprovision
Codesign ./build/iPhoneOS-9.3-Development/4capisco.app
Create ./build/iPhoneOS-9.3-Development/4capisco.ipa
Deploy ./build/iPhoneOS-9.3-Development/4capisco.ipa
rake aborted!
NoMethodError: undefined method `[]' for nil:NilClass
/Library/RubyMotion/lib/motion/project/template/ios/config.rb:210:in `read_provisioned_profile_array'
/Library/RubyMotion/lib/motion/project/template/ios/config.rb:233:in `provisioned_devices'
/Library/RubyMotion/lib/motion/project/template/ios.rb:273:in `block in <top (required)>'
/Users/danielo/.rvm/gems/ruby-2.1.1/bin/ruby_executable_hooks:15:in `eval'
/Users/danielo/.rvm/gems/ruby-2.1.1/bin/ruby_executable_hooks:15:in `<main>'
Tasks: TOP => device
(See full trace by running task with --trace)
Daniel-Os-MacBook-Pro:4capisco danielo$
答案 0 :(得分:0)
问题已经解决。 mobileprovision文件没有&#34; ProvisionalDevices&#34;,所以我再次下载它。 它立即起作用。