Lists of the most common errors and solutions (Part 4)

Issue #1 After the Bridging-Header.h file was created. I tried to run my build but it failed with the following error message

/Users/mcj/Dev/PaleoRecipes/PaleoRecipes/PaleoRecipes-Bridging-Header.h:10:9: error: ‘CDTDatastore/CloudantSync.h’ file not found
#import <CDTDatastore/CloudantSync.h>
^
<unknown>:0: error: failed to import bridging header ‘/Users/mcj/Dev/PaleoRecipes/PaleoRecipes/PaleoRecipes-Bridging-Header.h’

Solution

1.   Check at your Bridging-Header.h file and to make sure that the import statement for the file not found is there.

#import <Foundation/Foundation.h>
#import <CDTDatastore/CloudantSync.h>
#import <CloudantToolkit/CloudantToolkit.h>
#import <IMFCore/IMFCore.h>
#import <IMFPush/IMFPush.h>
#import <facebookSDK/FacebookSDK.h>
#import “IMFFacebookAuthenticationHandler.h”
#import <IMFData/IMFData.h

2.   Check your Xcode project environment setting for deployment target. In my case, I have two targets build configuration PaleoRecipes and PaleoRecipesTests. if you look at my PaleoRecipesTests target build configuration it’s currently set to “None” and this is the root cause of why my build was failing.

PaleoRecipes_xcodeproj (1)

3.   To get rid of this error message. If you want to use the Pods on both targets like I do, I had to set my build configuration to Pods.debug and Pods.release. If you rebuild your project again this error should go away.

PaleoRecipes_xcodeproj

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s