2011-07-29 1 views
2

Je suis à une perte à ce stade. :( L'application est beau travail iPhoneSimulator. Mais lorsque je tente de construire sur le périphérique (iphone4.3.1) (XCode4), je reçois l'erreur suivante:Xcode4 App travail bien sur iPhoneSimulator, mais construire sur le périphérique ont une erreur ARMv6/7 :(

Quand je choisis de construire standard (ARMv6 de ARMv7):

ld: warning: ignoring file /Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator4.3.sdk/usr/lib/libxml2.dylib, file was built for unsupported file format which is not the architecture being linked (armv6) 
ld: warning: ignoring file /Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator4.3.sdk/usr/lib/libxml2.2.dylib, file was built for unsupported file format which is not the architecture being linked (armv6) 
ld: warning: ignoring file /Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator4.3.sdk/usr/lib/libz.1.2.3.dylib, file was built for unsupported file format which is not the architecture being linked (armv6) 
ld: warning: ignoring file /Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator4.3.sdk/Developer/Library/PrivateFrameworks/DTMessageQueueing.framework/DTMessageQueueing, file was built for unsupported file format which is not the architecture being linked (armv6) 
ld: warning: ignoring file /Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator4.3.sdk/Developer/Library/PrivateFrameworks/UIAutomation.framework/UIAutomation, file was built for unsupported file format which is not the architecture being linked (armv6) 
ld: warning: ignoring file /Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator4.3.sdk/usr/lib/libSystem.dylib, file was built for unsupported file format which is not the architecture being linked (armv6) 
ld: in /Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator4.3.sdk/usr/lib/libobjc.A.dylib, file was built for unsupported file format which is not the architecture being linked (armv6) for architecture armv6 

Quand je choisis optimalisée (ARMv7) à construire:

ld: warning: ignoring file /Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator4.3.sdk/usr/lib/libxml2.dylib, file was built for unsupported file format which is not the architecture being linked (armv7) 
ld: warning: ignoring file /Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator4.3.sdk/usr/lib/libz.1.2.3.dylib, file was built for unsupported file format which is not the architecture being linked (armv7) 
ld: warning: ignoring file /Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator4.3.sdk/Developer/Library/PrivateFrameworks/DTMessageQueueing.framework/DTMessageQueueing, file was built for unsupported file format which is not the architecture being linked (armv7) 
ld: warning: ignoring file /Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator4.3.sdk/Developer/Library/PrivateFrameworks/UIAutomation.framework/UIAutomation, file was built for unsupported file format which is not the architecture being linked (armv7) 
ld: warning: ignoring file /Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator4.3.sdk/usr/lib/libxml2.2.dylib, file was built for unsupported file format which is not the architecture being linked (armv7) 
ld: warning: ignoring file /Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator4.3.sdk/usr/lib/libSystem.dylib, file was built for unsupported file format which is not the architecture being linked (armv7) 
ld: in /Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator4.3.sdk/usr/lib/libobjc.A.dylib, file was built for unsupported file format which is not the architecture being linked (armv7) for architecture armv7 
collect2: ld returned 1 exit status 
Command /Developer/Platforms/iPhoneOS.platform/Developer/usr/bin/llvm-gcc-4.2 failed with exit code 1 

Quelqu'un peut-il s'il vous plaît fournir des conseils sur la façon de résoudre ce problème. Comment puis-je résoudre le format de fichier non pris en charge qui n'est pas l'architecture liée (armv6) pour les erreurs d'architecture armv6. Toute aide serait grandement appréciée. Merci!

+1

Avez-vous réussi à résoudre ce problème? – Sig

+1

Avez-vous trouvé la solution? – sidslog

Répondre

1

Supprimez les bibliothèques mentionnées et ajoutez-les de nouveau en utilisant le bouton '+' dans la section 'Lier les bibliothèques avec les bibliothèques' de l'onglet Construire les phases de votre cible.

+0

Cela n'aide pas. As-tu d'autres idées? – sidslog

+0

Essayez de parcourir tous vos paramètres de construction à la recherche de quelque chose hors de propos? Le problème (comme je suis sûr que vous l'avez compris) est que Xcode se penche sur les frameworks de simulateur en essayant de créer un lien pour l'iPhone. Un dernier recours serait de supprimer votre fichier .xcodeproj et de reconstruire le projet dans Xcode, si vous êtes totalement bloqué. – joerick

0

J'ai été capable de résoudre un problème similaire mais de vérifier/ajouter des entrées au segment Chemin de recherche des paramètres de construction pour l'application. L'élément Framework Search Paths contient d'anciennes références aux chemins 4.3 SDK probablement corrects avant la mise à niveau vers SDK 5.0.

Si nécessaire ou non, j'ai ajouté des entrées sous Debug pour IOS Simulator 5.0 et tout SDK IOS qui distinguait le chemin à travers les répertoires iPhoneSimulator.Platform et iPhoneOS.Platform.

Questions connexes