12

I just updated my Xcode to 6.3 and my project which was working fine till xcode 6.2 started giving errors .

Error is <TargetName-Swift.h> file not found ,current path of bridging header is inside subfolder of project ,i.e one level inside .xcodeproj file .

Already tried

  1. Deleting Bridging-Header file and recreating it .

  2. Changing the path under Swift Compiler- Code generation under build settings

  3. Also tried to change header search path ,but I think that was already correct .

  4. Checked for circular reference , but i dont think that can be a problem because it was working fine before updating xcode .

Also somewhere I read it is generated at "$(TARGET_TEMP_DIR)/../$(PROJECT_NAME).build/DerivedSources" at this path , but didnot work for me .

****Edit *** Checked the log files generated it has error like "Opening import file for module 'Swift': Permission denied". Any idea ?? Of course I am super admin in the mac I am using .

Tried degrading Xcode again to 6.2 an everything worked well .

Any help would be great ..!! Thanks .

Abhinandan Sahgal
  • 1,076
  • 1
  • 13
  • 27

2 Answers2

2

This is due to build errors. <TargetName-Swift.h> is generated when there are no build errors.

Xcode 6.3 includes swift 1.2 which has some breaking changes compared with earlier swift version (distributed with xcode 6.2).

db42
  • 4,474
  • 4
  • 32
  • 36
-3
  1. Make sure you have Objective-C Bridging Header set to "TARGET_NAME/Your-Bridging-Header.h";" in the Build Settings
  2. Open Terminal and run next commands:

    cd Project_Folder

    sudo chown -R whoami *

Danil
  • 2,497
  • 2
  • 19
  • 27