设置主条目会崩溃iWatch App

时间:2015-03-25 23:00:31

标签: ios xcode uistoryboard watchkit

我的应用程序将在其他设备和模拟器上编译并运行正常。它曾经在手表模拟器上运行得很好。出乎意料的是,我开始收到错误:

  

命令/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin/ibtool失败,退出代码为255

随着这个警告:

Check dependencies

Warning: The Copy Bundle Resources build phase contains this target's Info.plist file 'Melody Pro WatchKit Extension/Info.plist'.

现在我在Stack和其他地方挖掘解决方案,这就是我尝试过的:

  • 重新启动Xcode
  • 重新启动模拟器/重置所有内容和设置
  • 重新安装Xcode和模拟器
  • 重启机器。
  • 双 检查故事板中没有损坏的插座

我已经意识到这是导致它:在WatchKit的故事板中设置主要入口点。第二个我删除它,应用程序编译好。第二个我将它添加到任何视图控制器,应用程序的构建将产生错误。

有人有任何建议吗?

完整错误:

  

CompileStoryboard AppName \ Pro \ WatchKit \ App / Interface.storyboard       cd" / Users / usersname / Documents / Development / AppName Pro"       export PATH =" /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin:/Applications/Xcode.app/Contents/Developer/usr/bin:/ usr / bin: / bin中:/ usr / sbin目录:/ sbin目录"       export XCODE_DEVELOPER_USR_PATH = / Applications / Xcode.app / Contents / Developer / usr / bin / ..       /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin/ibtool --errors --warnings --notices --module AppName_Pro_WatchKit_Extension --minimum-deployment-target 8.2 --output-partial -info-plist / Users / usersname / Library / Developer / Xcode / DerivedData / AppName_Pro-ahibpirzphlviggyowiczbnjgszo / Build / Intermediates / AppName \ Pro.build/Debug-iphonesimulator/AppName \ Pro \ WatchKit \ App.build/Interface-SBPartialInfo.plist --auto-activate-custom-fonts --output-format human-readable-text --compilation-directory / Users / usersname / Library / Developer / Xcode / DerivedData / AppName_Pro-ahibpirzphlviggyowiczbnjgszo / Build / Products / Debug-iphonesimulator / AppName \ Pro \ WatchKit \ App.app / Users / usersname / Documents / Development / AppName \ Pro / AppName \ Pro \ WatchKit \ App / Interface.storyboard

1 个答案:

答案 0 :(得分:0)

今天早上我遇到了同样的问题。我正在重新安排一些代码并清理构建阶段 /编译源列表。

我错误地从扩展程序中删除了Interface Controller类并尝试构建。然后它给了我这个错误信息。

通过将接口控制器类再次添加回"编译源"来修复它。列表。

相关问题