Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

<TargetName-Swift.h> file not found [duplicate]

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 .

like image 329
Abhinandan Sahgal Avatar asked Apr 11 '15 21:04

Abhinandan Sahgal


1 Answers

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).

like image 83
db42 Avatar answered Nov 16 '22 01:11

db42