从
Xcode 7.0 Beta 3更新到7.1 Beta(包括7.0通用版本的所有中间版本在我的项目中都有一个崩溃的启动错误,仅在7.1 Beta版本中修复)由于以下原因,我无法构建我的项目错误:
CompileStoryboard MyApp/Resources/Storyboards/Main.storyboard cd /Users/me/Developer/my-app export PATH="/Applications/Xcode-beta.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin:/Applications/Xcode-beta.app/Contents/Developer/usr/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin" export XCODE_DEVELOPER_USR_PATH=/Applications/Xcode-beta.app/Contents/Developer/usr/bin/.. /Applications/Xcode-beta.app/Contents/Developer/usr/bin/ibtool --errors --warnings --notices --module MyApp --output-partial-info-plist /Users/me/Library/Developer/Xcode/DerivedData/MyApp-bwakexzthBoxucdaodqtbbbwgsaz/Build/Intermediates/MyApp.build/Debug-iphonesimulator/MyApp.build/Main-SBPartialInfo.plist --auto-activate-custom-fonts --target-device iphone --minimum-deployment-target 8.0 --output-format human-readable-text --compilation-directory /Users/me/Developer/my-app/MyApp/Resources/Storyboards/Main.storyboard / com.apple.ibtool.errors */ : error: Not enough arguments provided; where is the input document to operate on?
Xcode配置为使用Xcode 7.1(7B60)命令行工具:
$xcode-select -p /Applications/Xcode-beta.app/Contents/Developer
而ibtool似乎是正确的版本:
$ibtool --version <?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE plist PUBLIC "-/ <plist version="1.0"> <dict> <key>com.apple.ibtool.version</key> <dict> <key>bundle-version</key> <string>9046</string> <key>short-bundle-version</key> <string>7.1</string> </dict> </dict> </plist>
编辑:比较Xcode 7.0 Beta 3中成功构建的输出(为了清楚起见,格式化):
CompileStoryboard MyApp/Resources/Storyboards/Main.storyboard cd /Users/me/Developer/my-app export PATH="/Applications/Xcode 7.0 Beta/Xcode-beta.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin:/Applications/Xcode 7.0 Beta/Xcode-beta.app/Contents/Developer/usr/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin" export XCODE_DEVELOPER_USR_PATH="/Applications/Xcode 7.0 Beta/Xcode-beta.app/Contents/Developer/usr/bin/.." /Applications/Xcode\ 7.0\ Beta/Xcode-beta.app/Contents/Developer/usr/bin/ibtool --errors --warnings --notices --module MyApp --output-partial-info-plist /Users/me/Library/Developer/Xcode/DerivedData/MyApp-bwakexzthBoxucdaodqtbbbwgsaz/Build/Intermediates/MyApp.build/Debug-iphonesimulator/MyApp.build/Main-SBPartialInfo.plist --auto-activate-custom-fonts --target-device iphone --minimum-deployment-target 8.0 --output-format human-readable-text --compilation-directory /Users/me/Library/Developer/Xcode/DerivedData/MyApp-bwakexzthBoxucdaodqtbbbwgsaz/Build/Products/Debug-iphonesimulator/MyApp.app /Users/me/Developer/my-app/MyApp/Resources/Storyboards/Main.storyboard 2015-09-17 15:44:06.451 Interface Builder Cocoa Touch Tool[1216:88742] Error creating notification handler for simulator graphics quality override: 1000000
与Xcode 7.1 Beta不成功:
CompileStoryboard MyApp/Resources/Storyboards/Main.storyboard cd /Users/me/Developer/my-app export PATH="/Applications/Xcode-beta.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin:/Applications/Xcode-beta.app/Contents/Developer/usr/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin" export XCODE_DEVELOPER_USR_PATH=/Applications/Xcode-beta.app/Contents/Developer/usr/bin/.. /Applications/Xcode-beta.app/Contents/Developer/usr/bin/ibtool --errors --warnings --notices --module MyApp --output-partial-info-plist /Users/me/Library/Developer/Xcode/DerivedData/MyApp-bwakexzthBoxucdaodqtbbbwgsaz/Build/Intermediates/MyApp.build/Debug-iphonesimulator/MyApp.build/Main-SBPartialInfo.plist --auto-activate-custom-fonts --target-device iphone --minimum-deployment-target 8.0 --output-format human-readable-text --compilation-directory /Users/me/Developer/my-app/MyApp/Resources/Storyboards/Main.storyboard /* com.apple.ibtool.errors */ : error: Not enough arguments provided; where is the input document to operate on?
显示我似乎缺少–compilation-directory参数的值,因此正在使用故事板的路径,而不是用作编译的目标文件.