I'm a newbie at working in Xcode and swift. I was working on a iOS project on my macbook (while on holiday), and i've been using github version control, i've now returned to home and now working on my mac mini. Currently working in Xcode 6.3.1 and the target is for iOS 8.3
So i've cloned my project on the mac mini, and when opening and trying to build the project i get the error:
Opening import file for module 'Swift': Permission denied
I'm looking at the errors and it seems to be 4 issues, my AppDelegate.swift, and 3 ViewController.swift files (i only have 3 of these at the moment)
I've had a look at another question on here - Opening import file for module 'Swift': Permission denied but it's not relevant to my issue.
A couple things i noticed were
Has anyone encountered this before? I would really appreciate the help from you guys.
Cheers Gareth
In our case, the error was that some of the frameworks were built with XCode 7.1 on OSX 10.10, then the binaries where uploaded to a dependency manager (Carthage).
The failing project was compiled with XCode 7.1 on OSX 10.11 and it was pulling those frameworks from Carthage.
Apparently the mismatch in OSX versions was causing problems. Once all frameworks were recompiled on OSX 10.11, it stopped failing.
Note that sometimes it failed with a permission denied
on one of our frameworks, sometimes with a permission denied
on CoreData. Replacing the frameworks binaries with binaries built with 10.11 fixed the issue.
On a side note, frameworks built with 10.11 seem to work fine on 10.10.
SO i figured out what was causing this issue. It was the 'Search Paths' under 'Build Settings' that was looking in the wrong location for my frameworks. Similar to the Apple Mach-O linker error fix
It was searching my for the frameworks on my macbook pro, I deleted the 'Framework Search Path' and then re-added my Parse.framework, Bolts.framework and FBSDKCoreKit.framework.
The project now builds and runs just as it should without any issues.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With