【问题标题】:ibtool can't build - The file “Info.plist” couldn’t be opened because there is no such fileibtool 无法构建 - 无法打开文件“Info.plist”,因为没有这样的文件
【发布时间】:2015-11-07 21:26:51
【问题描述】:

在 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 添加到构建阶段的 Copy Bundle Resources 部分
  • 在 Xcode 中打开所有 Storyboard 文件并检查它们是否打开并且没有显示任何错误
  • 重新安装 Xcode 测试版
  • 重启机器(Mac OS 10.10.5)

我已经提交了一份雷达文件(因为该项目在 Xcode 6 上构建良好),但感觉我自己可以做更多的事情来诊断这个问题。非常感谢任何帮助。

【问题讨论】:

  • 这里有同样的问题...我对某些方案使用不同的 plist。
  • 我对每个方案都有不同的 plist,但为了尝试构建一个方案,我将其更改为只有一个。不高兴:(
  • 同样的问题在这里..我在新的 Xcode Beta 中打开了我的项目,对一些文件做了很多工作。在最后一个公共 GM 版本中打开它以准备发布,然后我也得到了那个 ibtool 错误。到目前为止没有任何效果..

标签: xcode interface-builder uistoryboard


【解决方案1】:

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

【讨论】:

  • 新的测试版已经发布,但我仍然没有高兴,也没有任何消息。明天试试,谢谢
  • 接受的答案对此很有意义,因为重新创建情节提要会更新目标版本。
【解决方案2】:

问题是,您的故事板的目标低于目标。将storyboard的target设置得更高(或者更好,设置为和deployment target一样),就可以编译了。

【讨论】:

  • 我将所有情节提要设置为与部署目标相同,?BOOM!? 成功了!谢谢。我会更新雷达。
猜你喜欢
  • 2016-02-07
  • 2016-05-17
  • 2015-03-25
  • 2016-10-07
  • 1970-01-01
  • 2014-11-29
  • 2011-04-01
  • 2016-02-18
  • 2017-09-29
相关资源
最近更新 更多