Error when trying to archive to submit to apple store - Using Xcode 6 phone gap 4.0

481 views
Skip to first unread message

Fernando Molinari

unread,
Feb 14, 2015, 7:19:13 PM2/14/15
to phon...@googlegroups.com
Hello,

App runs fine on device and simulator.

I'm trying to submit a new version to app store.

When trying to archive I get these errors:

1. Apple Mach-O Linker Error - Linker command failed with exit code 1

2. Dsymutil Error - Unable to open executable...

3. Strip Symbols Error

Any help would be greatly appreciated.

Regards,

Fernando

mharr

unread,
Feb 15, 2015, 1:07:38 PM2/15/15
to phon...@googlegroups.com
I haven't any experience with this error, and I really don't know very much about XCode, just enough to hopefully build my PhoneGap projects.  But anytime I get something unexpected like this, especially on something that worked before, I do a Product >> Clean and see if that fixes it, or at least provides a better error.

Hope this helps.

Fernando Molinari

unread,
Feb 15, 2015, 1:35:44 PM2/15/15
to phon...@googlegroups.com
I tried that but it doesn't work. I also tried clean while holding the option key without success. Thanks anyway.

Fernando Molinari

unread,
Feb 15, 2015, 3:28:23 PM2/15/15
to phon...@googlegroups.com
I'm adding the entire error - 3 errors in total:

1. 

Ld /Users/femolinari/Library/Developer/Xcode/DerivedData/RecipeBookMobile-bpxzjayhxxqjwhdfcnxunueriwrn/Build/Intermediates/ArchiveIntermediates/RecipeBookMobile/InstallationBuildProductsLocation/Applications/RecipeBookMobile.app/RecipeBookMobile normal armv7

    cd /Users/femolinari/Desktop/workspace/RecipeBookMobile/platforms/ios

    export IPHONEOS_DEPLOYMENT_TARGET=8.1

    export 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/iPhoneOS8.1.sdk -L/Users/femolinari/Library/Developer/Xcode/DerivedData/RecipeBookMobile-bpxzjayhxxqjwhdfcnxunueriwrn/Build/Intermediates/ArchiveIntermediates/RecipeBookMobile/BuildProductsPath/Distribution-iphoneos -F/Users/femolinari/Library/Developer/Xcode/DerivedData/RecipeBookMobile-bpxzjayhxxqjwhdfcnxunueriwrn/Build/Intermediates/ArchiveIntermediates/RecipeBookMobile/BuildProductsPath/Distribution-iphoneos -filelist /Users/femolinari/Library/Developer/Xcode/DerivedData/RecipeBookMobile-bpxzjayhxxqjwhdfcnxunueriwrn/Build/Intermediates/ArchiveIntermediates/RecipeBookMobile/IntermediateBuildFilesPath/RecipeBookMobile.build/Distribution-iphoneos/RecipeBookMobile.build/Objects-normal/armv7/RecipeBookMobile.LinkFileList -dead_strip -weak_framework CoreFoundation -weak_framework UIKit -weak_framework AVFoundation -weak_framework CoreMedia -weak-lSystem -force_load /Users/femolinari/Library/Developer/Xcode/DerivedData/RecipeBookMobile-bpxzjayhxxqjwhdfcnxunueriwrn/Build/Intermediates/ArchiveIntermediates/RecipeBookMobile/BuildProductsPath/Distribution-iphoneos/libCordova.a -ObjC -fobjc-arc -fobjc-link-runtime -miphoneos-version-min=8.1 -framework AssetsLibrary /Users/femolinari/Library/Developer/Xcode/DerivedData/RecipeBookMobile-bpxzjayhxxqjwhdfcnxunueriwrn/Build/Intermediates/ArchiveIntermediates/RecipeBookMobile/BuildProductsPath/Release-iphoneos/libCordova.a -framework CoreGraphics -framework MobileCoreServices -framework CoreLocation -weak_framework SystemConfiguration -framework CoreMotion -weak_framework ImageIO -weak_framework AudioToolbox -weak_framework AddressBook -weak_framework AddressBookUI -Xlinker -dependency_info -Xlinker /Users/femolinari/Library/Developer/Xcode/DerivedData/RecipeBookMobile-bpxzjayhxxqjwhdfcnxunueriwrn/Build/Intermediates/ArchiveIntermediates/RecipeBookMobile/IntermediateBuildFilesPath/RecipeBookMobile.build/Distribution-iphoneos/RecipeBookMobile.build/Objects-normal/armv7/RecipeBookMobile_dependency_info.dat -o /Users/femolinari/Library/Developer/Xcode/DerivedData/RecipeBookMobile-bpxzjayhxxqjwhdfcnxunueriwrn/Build/Intermediates/ArchiveIntermediates/RecipeBookMobile/InstallationBuildProductsLocation/Applications/RecipeBookMobile.app/RecipeBookMobile


ld: file not found: /Users/femolinari/Library/Developer/Xcode/DerivedData/RecipeBookMobile-bpxzjayhxxqjwhdfcnxunueriwrn/Build/Intermediates/ArchiveIntermediates/RecipeBookMobile/BuildProductsPath/Distribution-iphoneos/libCordova.a

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


2.

GenerateDSYMFile /Users/femolinari/Library/Developer/Xcode/DerivedData/RecipeBookMobile-bpxzjayhxxqjwhdfcnxunueriwrn/Build/Intermediates/ArchiveIntermediates/RecipeBookMobile/BuildProductsPath/Distribution-iphoneos/RecipeBookMobile.app.dSYM /Users/femolinari/Library/Developer/Xcode/DerivedData/RecipeBookMobile-bpxzjayhxxqjwhdfcnxunueriwrn/Build/Intermediates/ArchiveIntermediates/RecipeBookMobile/InstallationBuildProductsLocation/Applications/RecipeBookMobile.app/RecipeBookMobile

    cd /Users/femolinari/Desktop/workspace/RecipeBookMobile/platforms/ios

    export 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/dsymutil /Users/femolinari/Library/Developer/Xcode/DerivedData/RecipeBookMobile-bpxzjayhxxqjwhdfcnxunueriwrn/Build/Intermediates/ArchiveIntermediates/RecipeBookMobile/InstallationBuildProductsLocation/Applications/RecipeBookMobile.app/RecipeBookMobile -o /Users/femolinari/Library/Developer/Xcode/DerivedData/RecipeBookMobile-bpxzjayhxxqjwhdfcnxunueriwrn/Build/Intermediates/ArchiveIntermediates/RecipeBookMobile/BuildProductsPath/Distribution-iphoneos/RecipeBookMobile.app.dSYM


error: unable to open executable '/Users/femolinari/Library/Developer/Xcode/DerivedData/RecipeBookMobile-bpxzjayhxxqjwhdfcnxunueriwrn/Build/Intermediates/ArchiveIntermediates/RecipeBookMobile/InstallationBuildProductsLocation/Applications/RecipeBookMobile.app/RecipeBookMobile'


3.

tripping /Users/femolinari/Library/Developer/Xcode/DerivedData/RecipeBookMobile-bpxzjayhxxqjwhdfcnxunueriwrn/Build/Intermediates/ArchiveIntermediates/RecipeBookMobile/InstallationBuildProductsLocation/Applications/RecipeBookMobile.app/RecipeBookMobile

    cd /Users/femolinari/Desktop/workspace/RecipeBookMobile/platforms/ios

    export 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/strip /Users/femolinari/Library/Developer/Xcode/DerivedData/RecipeBookMobile-bpxzjayhxxqjwhdfcnxunueriwrn/Build/Intermediates/ArchiveIntermediates/RecipeBookMobile/InstallationBuildProductsLocation/Applications/RecipeBookMobile.app/RecipeBookMobile


error: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/strip: can't open file: /Users/femolinari/Library/Developer/Xcode/DerivedData/RecipeBookMobile-bpxzjayhxxqjwhdfcnxunueriwrn/Build/Intermediates/ArchiveIntermediates/RecipeBookMobile/InstallationBuildProductsLocation/Applications/RecipeBookMobile.app/RecipeBookMobile (No such file or directory)

Command /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/strip failed with exit code 1




On Saturday, February 14, 2015 at 7:19:13 PM UTC-5, Fernando Molinari wrote:

Kerri Shotts

unread,
Feb 17, 2015, 4:26:00 PM2/17/15
to phon...@googlegroups.com
Something smells fishy here. Have you modified any build settings, perchance? 

You could also try to create a new project, move your code over and add plugins and platforms to see if that helps (this is a bit more drastic than clean, though, and if you have native code changes, that'll take some effort.)

Are you using Xcode to submit the app?

Fernando Molinari

unread,
Feb 17, 2015, 10:44:53 PM2/17/15
to phon...@googlegroups.com
Thanks for your response.

This is already a new project I mean I updated existing project from older version of phonegap and did what you suggested.

I was able; finally to archive but using release instead of distribution. No change in build settings.

Yes I use Xcode to submit the app.

Waiting for apple's approval now.

Regards,

Fernando

joel jesudoss

unread,
Apr 23, 2015, 11:08:03 AM4/23/15
to phon...@googlegroups.com
Hi 

Please tell if you have fixed your error.

I am facing an issue which may cause the same error as you while submitting to the iOS App store.


Thanks
Joel
Reply all
Reply to author
Forward
0 new messages