urbanairship / ios-library

Urban Airship iOS SDK
http://urbanairship.com
Apache License 2.0
478 stars 265 forks source link

Getting an error after installing via Cocoapods. #156

Closed euroboy closed 7 years ago

euroboy commented 7 years ago

I added pod 'UrbanAirship-iOS-SDK', '~> 8.6' to my podfile, and after installing pods I'm getting the following error on build:

error: Resource "/Users/me/Library/Developer/Xcode/DerivedData/MyProject/Build/Products/Debug-iphoneos/UrbanAirship-iOS-SDK/AirshipResources.bundle" not found. Run 'pod install' to update the copy resources script.

I tried to delete pods caches, but with no luck. Cocoapods version: 1.3.1. Any ideas how to solve it?

rlepinski commented 7 years ago

Looks like it might be an issue with Cocoapods: https://github.com/CocoaPods/CocoaPods/issues/7184

Still investigating.

rlepinski commented 7 years ago

@euroboy I am unable to reproduce the issue. Could you share a sample project that reproduces the issue? Thanks

euroboy commented 7 years ago

@rlepinski Here is a sample project. Try to build for simulator. Sample.zip

After few tests I figured out that it works if I uncomment use_frameworks! (as stated in documentation). But after this another errors occurred: Not finding header files from another CocoaPods when trying to import them.

BrianBatchelder commented 7 years ago

@euroboy Your sample project is a static library. Is that what you intended?

euroboy commented 7 years ago

@BrianBatchelder Yes.

BrianBatchelder commented 7 years ago

@euroboy Are you sure you want to build a static library that includes our SDK? A more common pattern is to have two static libraries, or a static library and a framework.

euroboy commented 7 years ago

@BrianBatchelder Yes, this is exactly what I want to achieve, but I'm still unable to do that.

BrianBatchelder commented 7 years ago

@euroboy We don't support building our SDK inside of another static library. You might be able to use our pre-built static library, which you can find at: https://bintray.com/urbanairship/iOS/urbanairship-sdk .