作者热门文章
- iOS/Objective-C 元类和类别
- objective-c - -1001 错误,当 NSURLSession 通过 httpproxy 和/etc/hosts
- java - 使用网络类获取 url 地址
- ios - 推送通知中不播放声音
我有一个非常奇怪的问题。升级到 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,问题就会消失。我尝试了所有常见的解决方案,如删除派生数据、清理产品、在项目中重新添加这些文件。
如果我查看应用程序包,我会看到我有一个别名而不是这些 Nib (这是行不通的)。似乎 Copy Bundle Resources 步骤可能被破坏了。
最佳答案
试试这个:
选择项目(在目标下)--> build设置-->构建选项
将Compiler for C/C++/Objective-C设置为Default compiler(Apple LLVM 6.0)
关于ios - Xcode 6.1 - 无法打开 Nib,因为您无权查看它,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/26673492/
我是一名优秀的程序员,十分优秀!