XCode can't find header files for archive build

I have a Swift project that depends on a Obj-C project (**InAppSettingsKit**)



Main Project builds in both release and debug mode (*Product|Scheme|Edit Scheme*).



When I try *Product|Archive* it fails:



error: 'InAppSettingsKit/IASKViewController.h' file not found

#import "InAppSettingsKit/IASKViewController.h"

^

<unknown>:0: error: failed to import bridging header '/Users/jlongo/Desktop/SSK/Screen Saver Killer/InAppSettingsKit-Bridging-Header.h'





This is the header file:



#ifndef Screen_Saver_Killer_InAppSettingsKit_Bridging_Header_h

#define Screen_Saver_Killer_InAppSettingsKit_Bridging_Header_h

#endif

#include <UIKit/UIKit.h>

#import "InAppSettingsKit/IASKViewController.h"

#import "InAppSettingsKit/IASKAppSettingsViewController.h"

#import "InAppSettingsKit/IASKSpecifierValuesViewController.h"

#import "InAppSettingsKit/IASKSpecifier.h"

#import "InAppSettingsKit/IASKSettingsReader.h"

#import <iAd/iAd.h>



Questions:



The h files are at the **UninstalledProducts** folder:



.../Build/Intermediates/ArchiveIntermediates/Screen Saver Killer/IntermediateBuildFilesPath/UninstalledProducts/iphoneos/include/InAppSettingsKit



Questions:



- Is the problem in the InAppSettingsKit dependency project (I think

unlikely because release build works) ?

- Is Xcode looking for IASKViewController.h or IASKViewController.hmap

?

- If this is a path problem do I add the **Headers Search Path** to the

main "Targets" or "Project" ?

- How can I tell xcode to build this thing and tell me the path it is

using to look for the header files ?

- What macro do I use to specify the path ?

I have the same problem after updating xCode to the new version... This happened a few weeks ago. I have been trying everything to try to build again. My setup is a main project with a CordovaLib sub project (I'm using Worklight/MobileFirst architecture).


My research seems to point to the provisioning certificates and might not even have anything to do with header paths or finding files at all. Apple, please help!

Anyone ever get a solution to this? I have the same problem in Xcode 8.2.1. The archive action appears to just ignore the bridging header.

Anyone ever get a solution to this? I have the same problem in Xcode 8.2.1. The archive action appears to just ignore the bridging header.

In case anyone else stumbles in here looking for help--I found a workaround.


It all has to do with how a bridging header is added to a project and is probably an Xcode bug.


If you examine your project.pbxproj file you may find that the bridging header is not set for the release build--

the build archiving uses.


I was able to just copy the line from the debug build for the bridging header into the release build clause.

And save it.


This is not recommended practice, but it served as a workaround.

Thanks very much for posting. I spent a solid day on this with Xcode 8.3.2, and it does seem to be some sort of bug in Xcode. I added the correct search path that I needed in Framework Search Paths to the build-release stanza in the project.pbxproj (while Xcode was closed, perhaps overabundance of caution on my part), and the Archive then worked like a charm.

For me the answer was 'Framework Search Paths'

XCode can't find header files for archive build
 
 
Q