2012-05-30 50 views
0

我在objective-c沒有任何經驗,現在纔開始。 我有工作開發人員出國幾天,和錯誤代碼留下了一個錯誤,現在我不能編譯iPhone應用程序來完成它......需要基礎目標的幫助-c構建錯誤

我從他的一些信息他告訴我,他離開了一個叫做對話框的庫,我需要刪除它才能使它工作...

問題是我沒有經驗的Objective-C和Xcode ...我是網絡開發者:)

我試圖運行該項目,並得到這個錯誤:

Build target mormar

Ld /Users/yanivshimony/Library/Developer/Xcode/DerivedData/mormar-cxfykryhzfovlbgtsjfowgleiyxu/Build/Products/Debug-iphonesimulator/mormar.app/mormar normal i386 cd /Users/yanivshimony/Desktop/mormar setenv MACOSX_DEPLOYMENT_TARGET 10.6 setenv PATH "/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.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 i386 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator5.0.sdk -L/Users/yanivshimony/Library/Developer/Xcode/DerivedData/mormar-cxfykryhzfovlbgtsjfowgleiyxu/Build/Products/Debug-iphonesimulator -F/Users/yanivshimony/Library/Developer/Xcode/DerivedData/mormar-cxfykryhzfovlbgtsjfowgleiyxu/Build/Products/Debug-iphonesimulator -filelist /Users/yanivshimony/Library/Developer/Xcode/DerivedData/mormar-cxfykryhzfovlbgtsjfowgleiyxu/Build/Intermediates/mormar.build/Debug-iphonesimulator/mormar.build/Objects-normal/i386/mormar.LinkFileList -mmacosx-version-min=10.6 -Xlinker -objc_abi_version -Xlinker 2 -fobjc-arc -Xlinker -no_implicit_dylibs -D__IPHONE_OS_VERSION_MIN_REQUIRED=40300 -framework UIKit -framework Foundation -framework CoreGraphics -o /Users/yanivshimony/Library/Developer/Xcode/DerivedData/mormar-cxfykryhzfovlbgtsjfowgleiyxu/Build/Products/Debug-iphonesimulator/mormar.app/mormar

Undefined symbols for architecture i386:
"_OBJC_CLASS_$_CATransition", referenced from: objc-class-ref in LoadingView.o "_kCATransitionFade", referenced from: +[LoadingView loadingViewInView:] in LoadingView.o -[LoadingView removeView] in LoadingView.o ld: symbol(s) not found for architecture i386 clang: error: linker command failed with exit code 1 (use -v to see invocation)

谷歌搜索這一段時間後,我仍然不知道如何解決這個問題... 我將不勝感激任何幫助, 謝謝!

+2

您是否將您的項目與CoreAnimation框架相鏈接? – Nekto

回答

3

您需要鏈接到QuartzCore。

在Xcode側邊欄中單擊您的項目名稱。然後點擊您的目標,然後在摘要選項卡中找到鏈接的框架和庫列表。點擊此列表下方的加號按鈕,然後添加QuartzCore。

+0

非常感謝您的幫助。這可能聽起來很愚蠢,但客戶很匆忙,我們沒有看到這個錯誤,現在他很高興:)謝謝! – Yanipan

+0

不用擔心。在你學習的時候問問題永遠不會愚蠢:) –

2

您需要QuartzCore框架。將它添加到您的項目中(通過項目設置的「鏈接二進制」構建階段)。將#import <QuartzCore/QuartzCore.h>添加到項目的前綴標頭(通常爲Prefix.pch{ProjectName}-Prefix.pch)。這應該解決這個問題而不刪除這個庫。

+0

非常感謝您的幫助,我選擇第二個答案只是因爲它是假證明:)但非常感謝...... – Yanipan