Solution to "The file “fileName” couldn’t be opened because you don’t have permission to view it."

Solution to
图片发自App
  1. Click "Xcode -> Preferences -> Locations" and you will see as follows:


    Solution to
    Preferences.jpg
  2. Click the arrow below "Derived Data", then you will jump to the Find where the DerivedData folder is located.


    Solution to
    DerivedData in Find.jpg
  3. Choose and delete the DerivedData folder.
  4. Return to Xcode, build and run the project again and you will see that the problem is gone!

你可能感兴趣的:(Solution to "The file “fileName” couldn’t be opened because you don’t have permission to view it.")