我已经用Ruby Motion创建了一个应用程序,它在模拟器中打开。但当我试图用设备打开它时,它崩溃了。
我已经注册了设备并创建了IOP Provisionning配置文件,我已经将其包括在应用程序的Rake文件以及应用程序主菜单中的文件夹“signing”中。
这是终端关于崩溃原因的信息。我将非常感谢你的帮助,因为我已经尝试了我能想到的所有方法。
谢谢,丹尼尔
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$发布于 2016-04-15 00:00:20
问题已解决。mobileprovision文件没有"ProvisionalDevices",所以我重新下载了它。它很快就起作用了。
https://stackoverflow.com/questions/36596281
复制相似问题