簡體   English   中英

XCode 4.2構建失敗,錯誤代碼為1(無問題),但在XCode 3.2.6上有效

[英]XCode 4.2 build failed with error code 1 (no issues), but works on XCode 3.2.6

我有這個奇怪的問題。 我試圖移至XCode 4.2,所以我在XCode 4.2中打開了我的項目,並嘗試為iOS設備構建我的項目。 構建失敗,沒有任何問題或任何解釋。 最奇怪的是,該項目在模擬器和XCode 3.2.6(設備和模擬器)上都沒有問題。

這是我在構建時得到的結果:

Command /Developer/Platforms/iPhoneOS.platform/Developer/usr/bin/llvm-g++-4.2 failed with exit code 1

沒有其他問題。 我檢查了我的捆綁包標識符和產品名稱,它們不包含非法字符(僅a-zA-Z)。 我還嘗試使用Apple的LLVM 3.0進行構建,結果相同。 供應配置文件也經過了雙重檢查。

還有其他可能導致這種情況的原因嗎? 我能做什么?

編輯:這是日志中的詳細信息:

    Ld /Users/user/Library/Developer/Xcode/DerivedData/MyApp-dyvsuphvmlexzzghpgbnkfzmtqas/Build/Products/Debug-iphoneos/MyApp.app/MyApp normal armv7
    cd /Users/user/Documents/Projects/MyApp
    setenv IPHONEOS_DEPLOYMENT_TARGET 4.0
    setenv PATH "/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin:/Developer/usr/bin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin:/usr/X11/bin:/opt/local/bin:/usr/local/git/bin"
    /Developer/Platforms/iPhoneOS.platform/Developer/usr/bin/llvm-g++-4.2 -arch armv7 -isysroot /Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS5.0.sdk -L/Users/user/Library/Developer/Xcode/DerivedData/MyApp-dyvsuphvmlexzzghpgbnkfzmtqas/Build/Products/Debug-iphoneos -LRouteMe/MapView -LRouteMe/MapView/GTM -LRouteMe/MapView/Map -LRouteMe/MapView/UnitTesting -LRouteMe/MapView/Map/Cache.xcdatamodel -LRouteMe/MapView/Map/FMDB -LRouteMe/MapView/Map/Resources -F/Users/user/Library/Developer/Xcode/DerivedData/MyApp-dyvsuphvmlexzzghpgbnkfzmtqas/Build/Products/Debug-iphoneos -filelist /Users/user/Library/Developer/Xcode/DerivedData/MyApp-dyvsuphvmlexzzghpgbnkfzmtqas/Build/Intermediates/MyApp.build/Debug-iphoneos/MyApp.build/Objects-normal/armv7/MyApp.LinkFileList -dead_strip -ObjC -all_load -miphoneos-version-min=4.0 /Users/user/Library/Developer/Xcode/DerivedData/MyApp-dyvsuphvmlexzzghpgbnkfzmtqas/Build/Products/Debug-iphoneos/libMapView.a -framework AudioToolbox -framework AVFoundation -framework CoreGraphics -framework CoreLocation -framework Foundation -framework MapKit -framework MediaPlayer -framework OpenAL -framework QuartzCore -framework SystemConfiguration -framework UIKit -lsqlite3.0 -lstdc++.6 -framework CoreData -framework StoreKit -framework CoreMotion -o /Users/user/Library/Developer/Xcode/DerivedData/MyApp-dyvsuphvmlexzzghpgbnkfzmtqas/Build/Products/Debug-iphoneos/MyApp.app/MyApp

Command /Developer/Platforms/iPhoneOS.platform/Developer/usr/bin/llvm-g++-4.2 failed with exit code 1

我終於找到了解決方案! (感謝Jesse Rusak的建議)我使用CloudMade的庫來顯示地圖。 該庫可能引起了問題。 我刪除了該庫,並刪除了它的所有庫和標頭搜索路徑。 之后,我將CloudMade項目的基本SDK更改為“最新的iOS”,然后再次將該庫重新添加到我的項目中。 將其重新添加到庫和標頭搜索路徑中,就這樣! 有效!

感謝大家!

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM