ios – ibtool无法在Xcode 7.1 Beta中编译故事板

ios – ibtool无法在Xcode 7.1 Beta中编译故事板,第1张

概述从 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 从 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.storyboard2015-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参数的值,因此正在使用故事板的路径,而不是用作编译的目标文件.

是否有可能检查/修改此编译步骤,这可能是Xcode中的错误?

解决方法 所以感谢Apple支持人员,解决方案是将Main.storyboard文件从Compile Sources构建阶段移动到copy Bundle Resources阶段. 总结

以上是内存溢出为你收集整理的ios – ibtool无法在Xcode 7.1 Beta中编译故事板全部内容,希望文章能够帮你解决ios – ibtool无法在Xcode 7.1 Beta中编译故事板所遇到的程序开发问题。

如果觉得内存溢出网站内容还不错,欢迎将内存溢出网站推荐给程序员好友。

欢迎分享,转载请注明来源:内存溢出

原文地址: https://outofmemory.cn/web/1097182.html

(0)
打赏 微信扫一扫 微信扫一扫 支付宝扫一扫 支付宝扫一扫
上一篇 2022-05-28
下一篇 2022-05-28

发表评论

登录后才能评论

评论列表(0条)

保存