xcode 7 Archive failed

Hi 

I Successfully built the xcode project and tested on my iphone.

I Would like to distribute it to another developer for testing so Archiving it nd Archive fails with following error. I dont have production key yet

Error is 

 

ld: warning: ignoring file /Users/kthallav/Library/Developer/Xcode/DerivedData/BeaconFinder-hiiilbbzyuckqaemushmytfrwdlf/Build/Intermediates/ArchiveIntermediates/BeaconFinder/BuildProductsPath/Release-iphoneos/AirshipKit.framework/AirshipKit, file was built for arm64 which is not the architecture being linked (armv7): /Users/kthallav/Library/Developer/Xcode/DerivedData/BeaconFinder-hiiilbbzyuckqaemushmytfrwdlf/Build/Intermediates/ArchiveIntermediates/BeaconFinder/BuildProductsPath/Release-iphoneos/AirshipKit.framework/AirshipKit

Undefined symbols for architecture armv7:

  "_OBJC_CLASS_$_UAirship", referenced from:

      objc-class-ref in AppDelegate.o

ld: symbol(s) not found for architecture armv7

clang: error: linker command failed with exit code 1 (use -v to see invocation)

 

Let meknow if I am missing anything

 

Didn't find what you were looking for?

New post

Comments

6 comments

  • Hi Gopala,

    Please update your project to the most recent version of the Urban Airship SDK found here:

    http://urbanairship.com/resources/developer-resources

     

    My Best,
    Aaron Schuman
    Technical Support Engineer, Portland

     

    Comment actions Permalink
    0
  • I'm having this problem also, using the latest SDK 7.0.2

     

    Debug output is:

     

    ld: warning: ignoring file /Users/.../Library/Developer/Xcode/DerivedData/TNTApp-ealrknfzrwzwjihjmzrftxvrblur/Build/Intermediates/ArchiveIntermediates/TNTApp/BuildProductsPath/Release-iphoneos/AirshipKit.framework/AirshipKit, file was built for arm64 which is not the architecture being linked (armv7): /Users/Jed/Library/Developer/Xcode/DerivedData/TNTApp-ealrknfzrwzwjihjmzrftxvrblur/Build/Intermediates/ArchiveIntermediates/.../BuildProductsPath/Release-iphoneos/AirshipKit.framework/AirshipKit
    Undefined symbols for architecture armv7:
    "_OBJC_CLASS_$_UAirship", referenced from:
    objc-class-ref in AppDelegate.o
    objc-class-ref in UrbanAirshipBridge.o

     

    Aaron, would you please clarify which version specifically is supposed to resolve the issue?

     

    Thanks

    Comment actions Permalink
    0
  • I'm having the same problem with the latest SDK (v7.1.0).

    Comment actions Permalink
    0
  • I'Im having the same problem SDK (v7.1.0).

    Comment actions Permalink
    0
  • This worked for me

    TARGETS > Architectures > Build Active Architecture Only
    Debug YES
    Release YES
    Comment actions Permalink
    1
  • @josue_hernandez, perfect fix. Thank you!

    Comment actions Permalink
    0

Please sign in to leave a comment.