ibtool 无法构建 - 文件“Info.plist”无法打开,因为没有这样的文件
ibtool can't build - The file “Info.plist” couldn’t be opened because there is no such file
我在 Xcode 7 beta 5 中构建项目时遇到以下错误:
Summary:
My project won't build, the following error is given:
LinkStoryboards
cd /Users/lewis/Projects/MyApp/code/ios9
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 --target-device iphone --minimum-deployment-target 8.0 --output-format human-readable-text --link /Users/lewis/Library/Developer/Xcode/DerivedData/MyApp-awistawhhrjdspbponhiluccszrg/Build/Products/Debug-iphonesimulator/MyApp.app /Users/lewis/Library/Developer/Xcode/DerivedData/MyApp-awistawhhrjdspbponhiluccszrg/Build/Intermediates/MyApp.build/Debug-iphonesimulator/MyApp.build/Storyboard\ ios7.storyboardc /Users/lewis/Library/Developer/Xcode/DerivedData/MyApp-awistawhhrjdspbponhiluccszrg/Build/Intermediates/MyApp.build/Debug-iphonesimulator/MyApp.build/Settings.storyboardc /Users/lewis/Library/Developer/Xcode/DerivedData/MyApp-awistawhhrjdspbponhiluccszrg/Build/Intermediates/MyApp.build/Debug-iphonesimulator/MyApp.build/TrackIt.storyboardc /Users/lewis/Library/Developer/Xcode/DerivedData/MyApp-awistawhhrjdspbponhiluccszrg/Build/Intermediates/MyApp.build/Debug-iphonesimulator/MyApp.build/UserList.storyboardc /Users/lewis/Library/Developer/Xcode/DerivedData/MyApp-awistawhhrjdspbponhiluccszrg/Build/Intermediates/MyApp.build/Debug-iphonesimulator/MyApp.build/Migration.storyboardc /Users/lewis/Library/Developer/Xcode/DerivedData/MyApp-awistawhhrjdspbponhiluccszrg/Build/Intermediates/MyApp.build/Debug-iphonesimulator/MyApp.build/Intro.storyboardc /Users/lewis/Library/Developer/Xcode/DerivedData/MyApp-awistawhhrjdspbponhiluccszrg/Build/Intermediates/MyApp.build/Debug-iphonesimulator/MyApp.build/YourMyApp.storyboardc /Users/lewis/Library/Developer/Xcode/DerivedData/MyApp-awistawhhrjdspbponhiluccszrg/Build/Intermediates/MyApp.build/Debug-iphonesimulator/MyApp.build/AddMeasurements.storyboardc
/* com.apple.ibtool.errors */
: error: The file “Info.plist” couldn’t be opened because there is no such file.
Failure Reason: The file doesn’t exist.
Underlying Errors:
Description: The operation couldn’t be completed. No such file or directory
Failure Reason: No such file or directory
我根据其他 SO 问题的建议尝试了以下方法:
- 清理构建文件夹
- 删除派生数据
- 检查项目文件夹中存在 Info.plist
- 在构建设置 > 打包 > Info.plist 文件中需要检查文件
- 正在将 Info.plist 复制到 ibtool 命令中提到的文件夹中
- 将 Info.plist 添加到构建阶段的复制捆绑资源部分
- 打开 Xcode 中的所有 Storyboard 文件并检查它们是否打开且未显示任何错误
- 正在重新安装 Xcode 测试版
- 重启机器(Mac OS 10.10.5)
我已经提交了雷达(因为该项目在 Xcode 6 上构建良好),但感觉我自己可以做更多的事情来诊断这个问题。非常感谢任何帮助。
在 Xcode 7 Beta 5 上也有同样的问题,我通过创建一个新的故事板并将所有对象从旧的故事板复制到新的故事板来解决这个问题。
问题是,您的情节提要低于目标。将故事板的目标设置得更高(或者更好,设置为与部署目标相同),它会编译。
我在 Xcode 7 beta 5 中构建项目时遇到以下错误:
Summary:
My project won't build, the following error is given:
LinkStoryboards
cd /Users/lewis/Projects/MyApp/code/ios9
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 --target-device iphone --minimum-deployment-target 8.0 --output-format human-readable-text --link /Users/lewis/Library/Developer/Xcode/DerivedData/MyApp-awistawhhrjdspbponhiluccszrg/Build/Products/Debug-iphonesimulator/MyApp.app /Users/lewis/Library/Developer/Xcode/DerivedData/MyApp-awistawhhrjdspbponhiluccszrg/Build/Intermediates/MyApp.build/Debug-iphonesimulator/MyApp.build/Storyboard\ ios7.storyboardc /Users/lewis/Library/Developer/Xcode/DerivedData/MyApp-awistawhhrjdspbponhiluccszrg/Build/Intermediates/MyApp.build/Debug-iphonesimulator/MyApp.build/Settings.storyboardc /Users/lewis/Library/Developer/Xcode/DerivedData/MyApp-awistawhhrjdspbponhiluccszrg/Build/Intermediates/MyApp.build/Debug-iphonesimulator/MyApp.build/TrackIt.storyboardc /Users/lewis/Library/Developer/Xcode/DerivedData/MyApp-awistawhhrjdspbponhiluccszrg/Build/Intermediates/MyApp.build/Debug-iphonesimulator/MyApp.build/UserList.storyboardc /Users/lewis/Library/Developer/Xcode/DerivedData/MyApp-awistawhhrjdspbponhiluccszrg/Build/Intermediates/MyApp.build/Debug-iphonesimulator/MyApp.build/Migration.storyboardc /Users/lewis/Library/Developer/Xcode/DerivedData/MyApp-awistawhhrjdspbponhiluccszrg/Build/Intermediates/MyApp.build/Debug-iphonesimulator/MyApp.build/Intro.storyboardc /Users/lewis/Library/Developer/Xcode/DerivedData/MyApp-awistawhhrjdspbponhiluccszrg/Build/Intermediates/MyApp.build/Debug-iphonesimulator/MyApp.build/YourMyApp.storyboardc /Users/lewis/Library/Developer/Xcode/DerivedData/MyApp-awistawhhrjdspbponhiluccszrg/Build/Intermediates/MyApp.build/Debug-iphonesimulator/MyApp.build/AddMeasurements.storyboardc
/* com.apple.ibtool.errors */
: error: The file “Info.plist” couldn’t be opened because there is no such file.
Failure Reason: The file doesn’t exist.
Underlying Errors:
Description: The operation couldn’t be completed. No such file or directory
Failure Reason: No such file or directory
我根据其他 SO 问题的建议尝试了以下方法:
- 清理构建文件夹
- 删除派生数据
- 检查项目文件夹中存在 Info.plist
- 在构建设置 > 打包 > Info.plist 文件中需要检查文件
- 正在将 Info.plist 复制到 ibtool 命令中提到的文件夹中
- 将 Info.plist 添加到构建阶段的复制捆绑资源部分
- 打开 Xcode 中的所有 Storyboard 文件并检查它们是否打开且未显示任何错误
- 正在重新安装 Xcode 测试版
- 重启机器(Mac OS 10.10.5)
我已经提交了雷达(因为该项目在 Xcode 6 上构建良好),但感觉我自己可以做更多的事情来诊断这个问题。非常感谢任何帮助。
在 Xcode 7 Beta 5 上也有同样的问题,我通过创建一个新的故事板并将所有对象从旧的故事板复制到新的故事板来解决这个问题。
问题是,您的情节提要低于目标。将故事板的目标设置得更高(或者更好,设置为与部署目标相同),它会编译。