简体   繁体   English

Xcode:未找到架构armv7的符号

[英]Xcode: symbol(s) not found for architecture armv7

I have this message from Xcode 我从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)

What exactly is not found? 到底究竟找不到什么? If it is saying that something was not found where is this not found stuff being looked for? 如果说找不到某些东西,那么找不到这些东西? Or in other words, if xcode is searching for something it is searching somewhere, where and what? 或者换句话说,如果xcode正在搜索它正在某处搜索的内容,在哪里以及在什么地方?

The ViewController object is not found and it was referenced within AppDelegate . 找不到ViewController对象,它在AppDelegate被引用。 You do not link ViewController into your app. 您没有将ViewController链接到您的应用程序。 Check if your Compile Sources section within the Build Phases of your project shows ViewController.m . 检查项目的Build PhasesCompile Sources部分是否显示ViewController.m

在此输入图像描述

I just ran into this. 我刚碰到这个。 Turns out I didn't add the new source to all of the targets that needed it. 结果我没有将新源添加到需要它的所有目标。 Maybe this will help someone in the future.. :) 也许这将有助于未来的人.. :)

I got same error after updating xCode 6beta to xCode 6.0.1. 将xCode 6beta更新为xCode 6.0.1后,我得到了同样的错误。 After spending a lot of time I fixed it by deleting " Derived Data " from Window -> Organizer -> Projects -> #Select project# and pressed Delete in the "Derived Data". 花费了大量的时间后,我固定它删去“ 导出数据 ”从窗口- >管理- >项目- >#选择项目#,并在“导出数据”中按下Delete。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM