Xcode 6.1 - 由于您无权查看Nib,因此无法打开Nib

时间:2014-10-31 11:21:31

标签: ios xcode

我有这个非常奇怪的问题。升级到Xcode 6.1后,我在一些随机的nib上得到了这些错误:

/* com.apple.ibtool.errors */
/Users/xxx/Library/Developer/Xcode/DerivedData/WorkspaceInfinity-fufemvkrqrpfbmcwcrcicvoxtmvj/Build/Products/Debug-iphoneos/CoreFramework.embeddedframework/Resources/yyy.nib: 
error: The file “yyy.nib” couldn’t be opened because you don’t have permission to view it.
        Failure Reason: You don’t have permission.
        Recovery Suggestion: To view or change permissions, select the item in the Finder and choose File > Get Info.
        Underlying Errors:
            Description: The operation couldn’t be completed. Permission denied
            Failure Reason: Permission denied

我正在使用kstenerud iOS Universal Framework solution。如果我回到Xcode 6.0,问题就会消失。我尝试了所有常见的解决方案,如删除派生数据,清理产品,在项目中重新添加这些文件。

如果我查看App软件包,我会看到代替这些笔尖我有一个别名(它不起作用)。看起来像Copy Bundle Resources步骤可能会被破坏。

3 个答案:

答案 0 :(得分:6)

试试这个:

选择项目(在目标下) - > 构建设置 - > 构建选项

编译器用于C / C ++ / Objective-C 设置为默认编译器(Apple LLVM 6.0)

enter image description here

答案 1 :(得分:0)

在Xcode中转到Build Settings。

在“剥离NIB文件”选项中,选择“否”。

那应该解决它。

答案 2 :(得分:0)

我有相同或非常相似的问题,但在较旧的Xcode中构建并没有帮助。我不得不将框架项目切换到https://github.com/jverkoey/iOS-Framework,错误消失了。可能Xcode 6.1改变了一些构建设置或类似的东西。