ibtool无法构建 - 无法打开文件“Info.plist”,因为没有这样的文件

时间:2015-08-14 15:05:42

标签: xcode interface-builder uistoryboard

在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
  • 在Build Settings>中需要检查文件。包装> Info.plist文件
  • 将Info.plist复制到ibtool命令中提到的文件夹
  • 将Info.plist添加到Build Phases的Copy Bundle Resources部分
  • 打开Xcode中的所有Storyboard文件并检查它们是否打开并且不显示任何错误
  • 重新安装Xcode Beta
  • 重启机器(Mac OS 10.10.5)

我已经提交了一个雷达(因为该项目在Xcode 6上构建得很好),但感觉就像我自己可以做更多的诊断一样。任何帮助非常感谢。

2 个答案:

答案 0 :(得分:8)

问题是,你有一个目标低于目标的故事板。将故事板的目标设置为更高(或更好,将其设置为与部署目标相同),它将进行编译。

答案 1 :(得分:-1)

Xcode 7 Beta 5上的同样问题,我通过创建一个新的故事板并将旧故事板中的所有对象复制到新故事板来修复此问题。