XCode/PhoneGap - Apple Mach-O Linker Error
Ich habe gerade die Programmierung meiner Anwendung. Ich habe versucht, zu Archiv der App für die Einreichung, aber es hat nicht funktioniert, wird die folgende Fehlermeldung angezeigt wurde. Dieses problem passiert nur wenn ich archivieren möchten, die app, ausführen von Test-Gerät oder Simulator funktioniert perfekt (keine Fehler).
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 with exit code 1 (use -v to 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 with exit code 1 (use -v to see invocation)
Ich bereits gegoogelt ** aus dieser die vergangenen Tage. Ich habe versucht, alles, was ich gefunden habe. Ich Baue Active-Architektur Nur auf "JA", gelöscht Suchpfade (Sie waren schon leer), veränderte iOS-Version, set Validieren Produkt Bauen und andere Sachen.
Erstelle ich meine Projekte mit terminal und ./erstellen.
Ich noch einen neuen clean-Projekt und habe meine source code drin. Das problem tritt jedes mal (auch wenn ich versuche, das Archiv das neue Projekt, ohne etwas zu ändern in der Quelle)
Mit:
XCode 4.6.3
PhoneGap 2.9.0
Ich bin verzweifelt und hoffe auf Hilfe. Danke.
Du musst angemeldet sein, um einen Kommentar abzugeben.
LÖSUNG
Fand ich eine Lösung/work-around. (Konnte nicht posten, weil wenn 10Rep. limit, musste warten 8 Stunden)
Oder gehen Sie einfach auf die Cordova-Website und laden Sie Cordova 3.0.0
(obwohl der alte bekannte "splashscreen - weiße Blitz" ist wieder da)Mit Cordova 3.0 dieses problem ist festen 🙂
Archivierung funktioniert in Ordnung.
Ich habe das gleiche Problem... Funktioniert gut auf simulator und test-Gerät, set-Build-Active-Architektur auf "JA" auf beide Cardova und MyApp-Projekte erstellt mit Hilfe der Klemme ./erstellen, erstellen Sie das Projekt von Grund auf neu.
Verwendung: XCode 4.6.3 PhoneGap 2.9.0
Update:
Umgebaut mein Projekt mit PhoneGap 3.0.0 und bin jetzt in der Lage zu archivieren.
War dies für mich gelöst, indem die Einstellung "Build Active-Architektur Nur" auf "ja" für die "Release" - Einstellung in der Build-Einstellungen in xcode.
Beschriebene Korrektur durch FlyingLemon bereits getan, als ich die neueste version von PhoneGap.
Phonegap-version 3.4.0-0.19.13
Xcode version 5.1