2

Xcodeからこのメッセージがあります

Ld /Users/myUsername/Library/Developer/Xcode/DerivedData/myApp-gqsubryokdmrjmczxeqypzcgpths/Build/Intermediates/myApp.build/Debug-iphoneos/myApp.build/Objects-normal/armv7/myApp normal armv7
    cd /Users/myUsername/Documents/_IPAD/myApp
    setenv IPHONEOS_DEPLOYMENT_TARGET 4.3
    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.0.sdk -L/Users/myUsername/Library/Developer/Xcode/DerivedData/myApp-gqsubryokdmrjmczxeqypzcgpths/Build/Products/Debug-iphoneos -F/Users/myUsername/Library/Developer/Xcode/DerivedData/myApp-gqsubryokdmrjmczxeqypzcgpths/Build/Products/Debug-iphoneos -filelist /Users/myUsername/Library/Developer/Xcode/DerivedData/myApp-gqsubryokdmrjmczxeqypzcgpths/Build/Intermediates/myApp.build/Debug-iphoneos/myApp.build/Objects-normal/armv7/myApp.LinkFileList -dead_strip -fobjc-arc -fobjc-link-runtime -miphoneos-version-min=4.3 -framework AudioToolbox -framework SystemConfiguration -framework QuartzCore -framework OpenAL -framework CoreGraphics -framework CFNetwork -framework MessageUI -framework CoreData -framework AVFoundation -framework StoreKit -framework UIKit -framework Foundation -o /Users/myUsername/Library/Developer/Xcode/DerivedData/myApp-gqsubryokdmrjmczxeqypzcgpths/Build/Intermediates/myApp.build/Debug-iphoneos/myApp.build/Objects-normal/armv7/myApp



Undefined symbols for architecture armv7:
  "_OBJC_CLASS_$_ViewController", referenced from:
      objc-class-ref in AppDelegate.o
ld: symbol(s) not found for architecture armv7
clang: error: linker command failed with exit code 1 (use -v to see invocation)

正確には何が見つかりませんか?何かが見つからなかったと言っている場合、これはどこで見つからないものを探していますか?言い換えれば、xcodeが何かを検索している場合、どこか、どこで、何を検索しているのでしょうか。

4

3 に答える 3

11

ViewControllerオブジェクトが見つからず、 内で参照されましAppDelegateた。ViewController をアプリにリンクしません。プロジェクトCompile Sources内のセクションに が表示されているかどうかを確認します。Build PhasesViewController.m

ここに画像の説明を入力

于 2012-09-21T00:01:31.173 に答える
1

私はちょうどこれに遭遇しました。新しいソースを、それを必要とするすべてのターゲットに追加しなかったことが判明しました。多分これは将来誰かを助けるでしょう.. :)

于 2015-01-06T01:01:30.530 に答える
0

xCode 6beta を xCode 6.0.1 に更新した後、同じエラーが発生しました。多くの時間を費やした後、ウィンドウから「派生データ」を削除して修正しました->オーガナイザー->プロジェクト-> #プロジェクト#を選択し、「派生データ」で削除を押しました。

于 2014-09-19T12:43:19.393 に答える