3

I'm getting a Swift compiler error as:

Opening import file for module 'Swift': Permission denied. 

I have re-installed my Xcode, still the issue exists and in another user account, Xcode builds the project without any compilation error.

jww
  • 97,681
  • 90
  • 411
  • 885
  • 1
    Are you sure that the user installing Xcode has sufficient rights? It sounds like an issue with user access rights, and not Xcode as such... – holroy Mar 07 '15 at 08:14
  • Possible duplicate of [Opening import file for module 'Swift': Permission denied](http://stackoverflow.com/questions/26258264/opening-import-file-for-module-swift-permission-denied) – jww Mar 15 '15 at 22:15

1 Answers1

1

That has probably something with your frameworks, try adding them again, or if you are using Carthage, make sure not to do Carthage update with sudo.

Reza_Rg
  • 3,345
  • 7
  • 32
  • 48
  • This right here! My problem was that I was using sudo... I been stuck on this for a while. Thanks! – MVZ Nov 04 '16 at 05:10