objective c - XCode/PhoneGap - Apple Mach-O Linker Error -
i finished programming application. tried archive app submission, didn't work, following error displayed. problem happens when want archive app, running on test device or simulator works perfect (no errors).
ld /users/admin/library/developer/xcode/deriveddata/myapp-ekptdmvfytpoeoaedgfvjzqudoqa/build/intermediates/archiveintermediates/myapp/installationbuildproductslocation/applications/myapp.app/myapp normal armv7 cd /users/admin/desktop/myapp3 setenv iphoneos_deployment_target 6.1 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/admin/library/developer/xcode/deriveddata/myapp-ekptdmvfytpoeoaedgfvjzqudoqa/build/intermediates/archiveintermediates/myapp/buildproductspath/release-iphoneos -l/users/admin/desktop/myapp3 -f/users/admin/library/developer/xcode/deriveddata/myapp-ekptdmvfytpoeoaedgfvjzqudoqa/build/intermediates/archiveintermediates/myapp/buildproductspath/release-iphoneos -filelist /users/admin/library/developer/xcode/deriveddata/myapp-ekptdmvfytpoeoaedgfvjzqudoqa/build/intermediates/archiveintermediates/myapp/intermediatebuildfilespath/myapp.build/release-iphoneos/myapp.build/objects-normal/armv7/myapp.linkfilelist -dead_strip -weak_framework corefoundation -weak_framework uikit -weak_framework avfoundation -weak_framework coremedia -weak-lsystem -force_load /users/admin/library/developer/xcode/deriveddata/myapp-ekptdmvfytpoeoaedgfvjzqudoqa/build/intermediates/archiveintermediates/myapp/installationbuildproductslocation/applications/libcordova.a -objc -fobjc-link-runtime -miphoneos-version-min=6.1 -lxml2 -lxml2.2 -larchive.2 -framework corelocation -framework imageio -framework openal -framework assetslibrary /users/admin/library/developer/xcode/deriveddata/myapp-ekptdmvfytpoeoaedgfvjzqudoqa/build/intermediates/archiveintermediates/myapp/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 -lcordova -o /users/admin/library/developer/xcode/deriveddata/myapp-ekptdmvfytpoeoaedgfvjzqudoqa/build/intermediates/archiveintermediates/myapp/installationbuildproductslocation/applications/myapp.app/myapp ld: file not found: /users/admin/library/developer/xcode/deriveddata/myapp-ekptdmvfytpoeoaedgfvjzqudoqa/build/intermediates/archiveintermediates/myapp/installationbuildproductslocation/applications/libcordova.a clang: error: linker command failed exit code 1 (use -v see invocation) (null): file not found: /users/admin/library/developer/xcode/deriveddata/myapp-ekptdmvfytpoeoaedgfvjzqudoqa/build/intermediates/archiveintermediates/myapp/installationbuildproductslocation/applications/libcordova.a (null): linker command failed exit code 1 (use -v see invocation)
i googled ** out of past days. tried found. set build active architecture "yes", deleted search paths (they empty), changed ios version, set validate build product , other stuff.
i create projects using terminal , ./create.
i made new clean project , posted source code in there. problem occures every time (even if try archive new project without changing in source)
using: xcode 4.6.3 phonegap 2.9.0
i desperate , hope help. thank you.
solution
i found solution/work-around. (couldn't post because if 10rep. limit, had wait 8 hours)
- in target's build settings, find "other linker flags"
- change $(target_build_dir)/libcordova.a
- to $(built_products_dir)/libcordova.a
or go cordova site , download cordova 3.0.0 (although old known "splashscreen - white flash" back)
with cordova 3.0 problem fixed :) archiving works fine.
Comments
Post a Comment