urbanairship / urbanairship-cordova

Urban Airship integration with Apache Cordova
https://docs.airship.com/platform/mobile/setup/sdk/cordova/
Other
142 stars 149 forks source link

iOS problem: fatal error: 'AirshipLib.h' file not found #174

Closed githubjameshenderson closed 7 years ago

githubjameshenderson commented 7 years ago

I have been using this plugin successfully in the last few weeks but now I get:

fatal error: 'AirshipLib.h' file not found

Is anyone else getting this when compiling for iOS?

rlepinski commented 7 years ago

@githubjameshenderson We recently switched to using pod support provided by cordova when bundling our iOS SDK.

From our README:

This plugin uses cocoapods which is supported in cordova-ios 4.3.0. Ensure cocoapods is installed and the pod repo is updated via pod repo update. If using Xcode directly, open the xcworkspace instead of the xcodeproj.

Are you using the xcworkspace instead of xcdoeproj to open your project?

githubjameshenderson commented 7 years ago

Thanks Ryan - it is working for me now

On 8 February 2017 at 17:05, Ryan Lepinski notifications@github.com wrote:

@githubjameshenderson https://github.com/githubjameshenderson We recently switched to using pod support provided by cordova when bundling our iOS SDK.

From our README:

This plugin uses cocoapods which is supported in cordova-ios 4.3.0. Ensure cocoapods is installed and the pod repo is updated via pod repo update. If using Xcode directly, open the xcworkspace instead of the xcodeproj.

Are you using the xcworkspace instead of xcdoeproj to open your project?

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/urbanairship/phonegap-ua-push/issues/174#issuecomment-278391434, or mute the thread https://github.com/notifications/unsubscribe-auth/AI6j99qHCsmN1i0hwv2sZ2E2gAQ0USgXks5rafXYgaJpZM4L6wI5 .

rlepinski commented 7 years ago

Awesome. Glad it works.

jskrepnek commented 6 years ago

Hi @rlepinski:

I'm getting a very similar error from Phonegap Build. Can't reproduce locally. We're using phonegap-version cli-6.5.0 which is associated with cordova-ios 4.3.1.

We're using version 6.6.0 of the urbanairship-cordova plugin. I haven't tried updating yet.

Here's a snippet from the log:

dhweolsvbwrgoyeypmnbrhvoqwcp/Build/Intermediates/ArchiveIntermediates/KohoAlpha/IntermediateBuildFilesPath/KohoAlpha.build/Release-iphoneos/KohoAlpha.build/Objects-normal/armv7/UAirshipPlugin.o
In file included from /project/KohoAlpha/Plugins/urbanairship-cordova/UAirshipPlugin.m:26:
/project/KohoAlpha/Plugins/urbanairship-cordova/UAirshipPlugin.h:28:9: fatal error: 'AirshipLib.h' file not found
#import "AirshipLib.h"
        ^

The most recent change is the additional of the phonegap-plugin-push plugin.

Thanks for any help.

rlepinski commented 6 years ago

@jskrepnek We moved away from cocoapods in 6.7 due to various cordova integration issues. Updated should fix your issues.