2

I have this really weird problem. After upgrading to Xcode 6.1 I get these error on some random nibs:

/* 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

I'm using kstenerud iOS Universal Framework solution. If I go back to Xcode 6.0 the problem disappear. I tried all the common solutions like delete derived datas, clean the product, re-add these files on the project.

If I look into the App package I see that instead of these nibs I have an alias to them (which is not working). Seems like the Copy Bundle Resources step might be broken.

Alberto Schiariti
  • 1,407
  • 2
  • 14
  • 28
  • Refer to this [answer](https://stackoverflow.com/a/50167291/6521116) with a good summary of this issue. – LF00 May 04 '18 at 05:17

3 Answers3

6

Try this:

Select Project(under target)--> Build Settings-->Build Options

set Compiler for C/C++/Objective-C to Default compiler(Apple LLVM 6.0)

enter image description here

mavericks
  • 1,559
  • 16
  • 24
0

In Xcode Go to Build Settings.

In the "Strip NIB Files" option choose "NO".

That should solve it.

0

I had the same or very similar problem, but building in older Xcode didn't help. I had to switch framework project to https://github.com/jverkoey/iOS-Framework and errors were gone. Probably Xcode 6.1 changed some build settings or something like this.

Timur Kuchkarov
  • 1,157
  • 7
  • 21