Uploaded image for project: 'Apache Cordova'
  1. Apache Cordova
  2. CB-4037

Unable to Archive iOS projects for upload to App Store in 2.9

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 2.9.0
    • 3.0.0
    • cordova-ios
    • None
    • OS X 10.8.2, XCode 4.6.3

    Description

      When trying to "Archive" any project to upload to the App Store, including just the Hello World project in XCode, one receives the linker error below. The app builds fine for running on the simulator or the device however. Reverting my project to 2.8.1 or using the Hello World project from 2.8.1 does not have this error.

      Ld /Users/bjterry/Library/Developer/Xcode/DerivedData/sample-gpxssjuplfsqhrfazbpzoydbgzci/Build/Intermediates/ArchiveIntermediates/sample/IntermediateBuildFilesPath/sample.build/Release-iphoneos/sample.build/Objects-normal/armv7/sample normal armv7
      cd /Users/bjterry/Projects/sample-2.9
      setenv IPHONEOS_DEPLOYMENT_TARGET 5.0
      setenv PATH "/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin:/Applications/Xcode.app/Contents/Developer/usr/bin:/usr/bin:/bin:/usr/sbin:/sbin"
      /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang -arch armv7 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS6.1.sdk -L/Users/bjterry/Library/Developer/Xcode/DerivedData/sample-gpxssjuplfsqhrfazbpzoydbgzci/Build/Intermediates/ArchiveIntermediates/sample/BuildProductsPath/Release-iphoneos -F/Users/bjterry/Library/Developer/Xcode/DerivedData/sample-gpxssjuplfsqhrfazbpzoydbgzci/Build/Intermediates/ArchiveIntermediates/sample/BuildProductsPath/Release-iphoneos -filelist /Users/bjterry/Library/Developer/Xcode/DerivedData/sample-gpxssjuplfsqhrfazbpzoydbgzci/Build/Intermediates/ArchiveIntermediates/sample/IntermediateBuildFilesPath/sample.build/Release-iphoneos/sample.build/Objects-normal/armv7/sample.LinkFileList -dead_strip -weak_framework CoreFoundation -weak_framework UIKit -weak_framework AVFoundation -weak_framework CoreMedia -weak-lSystem -force_load /Users/bjterry/Library/Developer/Xcode/DerivedData/sample-gpxssjuplfsqhrfazbpzoydbgzci/Build/Intermediates/ArchiveIntermediates/sample/InstallationBuildProductsLocation/Applications/libCordova.a -ObjC -fobjc-link-runtime -miphoneos-version-min=5.0 -framework CoreLocation -framework ImageIO -framework OpenAL -framework AssetsLibrary /Users/bjterry/Library/Developer/Xcode/DerivedData/sample-gpxssjuplfsqhrfazbpzoydbgzci/Build/Intermediates/ArchiveIntermediates/sample/BuildProductsPath/Release-iphoneos/libCordova.a -framework Foundation -weak_framework UIKit -framework CoreGraphics -framework AddressBook -framework AddressBookUI -framework AudioToolbox -weak_framework AVFoundation -framework CFNetwork -framework MediaPlayer -framework QuartzCore -framework SystemConfiguration -framework MobileCoreServices -weak_framework CoreMedia -framework CoreLocation -o /Users/bjterry/Library/Developer/Xcode/DerivedData/sample-gpxssjuplfsqhrfazbpzoydbgzci/Build/Intermediates/ArchiveIntermediates/sample/IntermediateBuildFilesPath/sample.build/Release-iphoneos/sample.build/Objects-normal/armv7/sample

      ld: file not found: /Users/bjterry/Library/Developer/Xcode/DerivedData/sample-gpxssjuplfsqhrfazbpzoydbgzci/Build/Intermediates/ArchiveIntermediates/sample/InstallationBuildProductsLocation/Applications/libCordova.a
      clang: error: linker command failed with exit code 1 (use -v to see invocation)

      This issue was also found by a user on Stack Overflow: http://stackoverflow.com/questions/17351446/building-an-archive-for-xcode-4-6-release-with-phonegap-v-2-9-fails

      Attachments

        Activity

          People

            shazron Shazron Abdullah
            bjterry BJ Terry
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: