Im trying to setup UrbanAirship in my React-Native project, but run into really messy instructions...

In the urbanairship/react-native-module / READ.ME / IOS / topic 2 / it says: install "AirshipKit"

but the link is lead to install "Carthage"... 

should i install both "AirshipKit" & "Carthage" ???

Didn't find what you were looking for?

New post



  • Hi Erez,

    Thank you for writing in to the Urban Airship Support Forum with your question about the React Native module installation process.

    You will install AirshipKit by installing the Urban Airship iOS SDK. You can install the SDK using either Cocoapods or Carthage. You can also install it manually.

    The react plugin is unable to package the Urban Airship iOS SDK, which is why it must be installed as a separate step.

    Please let me know if there are any additional details I can provide.

    Comment actions Permalink
  • Hi,
    After adding manually AirshipKit I'm getting this error:

    xcode The targets contains source code developed with Swift 2.x. Xcode 9 does not support building or migrating Swift 2.x targets. Use Xcode 8.x to migrate the code to Swift 3.

    It seems that AirshipKit does not support Xcode 9 ??
    What is your solution for that?
    Comment actions Permalink
  • also on trying to "clean" the build getting this error:

    Could not determine generated file paths for Core Data code generation: Error Domain=NSCocoaErrorDomain Code=260 "No current version for model at path ../ios/AirshipResources/common/UAEvents.xcdatamodeld:" UserInfo={NSFilePath=../ios/AirshipResources/common/UAEvents.xcdatamodeld, NSLocalizedDescription=No current version for model at path ../ios/AirshipResources/common/UAEvents.xcdatamodeld:}

    why getting this error?

    Comment actions Permalink
  • Comment actions Permalink
  • Comment actions Permalink
  • I tried also the Carthage setup method:

    $ brew update
    $ brew install carthage


    github "urbanairship/ios-library"

    then ran command

    $ carthage update

    then follow Carhage instructions:

    If you're building for iOS, tvOS, or watchOS

    1. On your application targets’ General settings tab, in the “Linked Frameworks and Libraries” section, drag and drop each framework you want to use from the Carthage/Build folder on disk.

    2. On your application targets’ Build Phases settings tab, click the + icon and choose New Run Script Phase. Create a Run Script in which you specify your shell (ex: /bin/sh), add the following contents to the script area below the shell:

    /usr/local/bin/carthage copy-frameworks

    1. Add the paths to the frameworks you want to use under “Input Files”, e.g.:


    1. Add the paths to the copied frameworks to the “Output Files”, e.g.:



    also not working...

    the docs are updated ?

    any idea ??

    Comment actions Permalink
  • Hi Erez,

    The Urban Airship iOS SDK supports XCode versions 8.0+. I was unable to reproduce the errors you're seeing using XCode v. 9.2.

    I would suggest setting up our React Native Sample app and comparing the configuration for that app with your own. Please let me know if you can reproduce this on the Sample app and I will investigate further.

    Comment actions Permalink

Please sign in to leave a comment.