简体   繁体   English

找不到架构armv7的符号; 无法建立

[英]symbol(s) not found for architecture armv7; fails to build

I am really at a loss. 我真的很茫然。 Out of a sudden, my project stopped compiling with: 突然,我的项目停止了编译:

Undefined symbols for architecture armv7: "_WURM_PROPYLAXE_FREQUENCY", referenced from: -[PBZeitenTableViewController wurmProphylaxeErinnernToggle:] in PBZeitenTableViewController.o -[PBHundEinstellenTableViewController done:] in PBHundEinstellenTableViewController.o ld: symbol(s) not found for architecture armv7 clang: error: linker command failed with exit code 1 (use -v to see invocation) 架构armv7的未定义符号:“ _ WURM_PROPYLAXE_FREQUENCY”,引用自:PBZeitenTableViewController.o中的-[PBZeitenTableViewController wurmProphylaxeErinnernToggle:] -o PBHundEinstellenTableViewController中的[PBHundEinstellenTableViewController。]失败,退出代码为1(使用-v查看调用)

However, as far as I can tell everything is there. 但是,据我所知,一切都在那里。 There is a static extern constant WURM_PROPYLAXE_FREQUENCY define in my AppConstants.h/.m 我的AppConstants.h / .m中定义了一个静态外部常量WURM_PROPYLAXE_FREQUENCY

Here's the complete message: 这是完整的消息:

Ld /Users/michi/Library/Developer/Xcode/DerivedData/Easy-BARF-bqrdhyplvesjkpcuqgjtdfgqlsfo/Build/Products/Debug-iphoneos/Easy-BARF.app/Easy-BARF normal armv7 cd /Users/michi/Downloads/Easy-BARF-iOS-develop export IPHONEOS_DEPLOYMENT_TARGET=7.1 export 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/iPhoneOS8.1.sdk -L/Users/michi/Library/Developer/Xcode/DerivedData/Easy-BARF-bqrdhyplvesjkpcuqgjtdfgqlsfo/Build/Products/Debug-iphoneos -F/Users/michi/Library/Developer/Xcode/DerivedData/Easy-BARF-bqrdhyplvesjkpcuqgjtdfgqlsfo/Build/Products/Debug-iphoneos -F/Users/michi/Downloads/Easy-BARF-iOS-develop -filelist /Users/michi/Library/Developer/Xcode/DerivedData/Easy-BARF ld /用户/ michi /库/开发人员/ Xcode / DerivedData / Easy-BARF-bqrdhyplvesjkpcuqgjtdfgqlsfo / Build /产品/Debug-iphoneos/Easy-BARF.app/Easy-BARF常规armv7 cd /用户/ michi / BARS /下载/ Easy -iOS-develop导出IPHONEOS_DEPLOYMENT_TARGET = 7.1导出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/内容/开发人员/平台/iPhoneOS.platform/Developer/SDKs/iPhoneOS8.1.sdk -L / Users / michi / Library / Developer / Xcode / DerivedData / Easy-BARF-bqrdhyplvesjkpcuqgjtdfgqlsfo / Build / Products / Debug-iphoneos -F / Users / michi / Library / Developer / Xcode / DerivedData / Easy-BARF-bqrdhyplvesjkpcuqgjtdfgqlsfo / Build / Products / Debug-iphoneos -F / Users / michi / Downloads / Easy-BARF-iOS-develop -filelist / Users / michi / Library /开发人员/ Xcode / DerivedData / Easy-BARF -bqrdhyplvesjkpcuqgjtdfgqlsfo/Build/Intermediates/Easy-BARF.build/Debug-iphoneos/Easy-BARF.build/Objects-normal/armv7/Easy-BARF.LinkFileList -Xlinker -rpath -Xlinker @executable_path/Frameworks -dead_strip -fobjc-arc -fobjc-link-runtime -miphoneos-version-min=7.1 -lsqlite3 -lz -framework SystemConfiguration -framework StoreKit -framework Security -framework QuartzCore -framework MobileCoreServices -framework CoreLocation -framework CoreGraphics -framework CFNetwork -framework AudioToolbox -framework EventKit -framework EventKitUI -framework TelerikUI -framework LocalAuthentication -framework NotificationCenter -framework Bolts -framework Accelerate -framework UIKit -framework CoreFoundation -framework CoreData -framework Crashlytics -framework Parse -framework Ensembles -Xlinker -dependency_info -Xlinker /Users/michi/Library/Developer/Xcode/DerivedData/Easy-BARF-bqrdhyplvesjkpcuqgjtdfgqlsfo/Build/Intermediates/Easy-BARF.build/Debug-iphoneos/Easy-BARF.build/Objects-normal/armv7/Easy-BAR -bqrdhyplvesjkpcuqgjtdfgqlsfo / Build / Intermediates / Easy-BARF.build / Debug-iphoneos / Easy-BARF.build / Objects-normal / armv7 / Easy-BARF.LinkFileList -Xlinker -rpath -Xlinker @ executable_path / Frameworks -dead_strip -fobjc-link-runtime -miphoneos-version-min = 7.1 -lsqlite3 -lz-框架SystemConfiguration-框架StoreKit-框架安全-框架QuartzCore-框架MobileCoreServices-框架CoreLocation-框架CoreGraphics-框架CFNetwork-框架AudioToolbox-框架EventKit-框架EventKitUI-框架TelerikUI-框架LocalAuthentication-框架NotificationCenter-框架螺栓-框架加速-框架UIKit-框架CoreFoundation-框架CoreData-框架Crashlytics-框架解析-框架集合-Xlinker -dependency_info -Xlinker / Users / michi / Library / Developer / Xcode /DerivedData/Easy-BARF-bqrdhyplvesjkpcuqgjtdfgqlsfo/Build/Intermediates/Easy-BARF.build/Debug-iphoneos/Easy-BARF.build/Objects-normal/armv7/Easy-BAR F_dependency_info.dat -o /Users/michi/Library/Developer/Xcode/DerivedData/Easy-BARF-bqrdhyplvesjkpcuqgjtdfgqlsfo/Build/Products/Debug-iphoneos/Easy-BARF.app/Easy-BARF F_dependency_info.dat -o /Users/michi/Library/Developer/Xcode/DerivedData/Easy-BARF-bqrdhyplvesjkpcuqgjtdfgqlsfo/Build/Products/Debug-iphoneos/Easy-BARF.app/Easy-BARF

This probably means that this file ( PBZeitenTableViewController.m ) isn't being compiled into your binary. 这可能意味着该文件( PBZeitenTableViewController.m )没有被编译到您的二进制文件中。 To fix this, try this out: 要解决此问题,请尝试以下操作:

  1. Click on the project on the left pane. 单击左侧窗格上的项目。
  2. Navigate to "Build Phases" > "Compile Sources". 导航到“构建阶段”>“编译源”。
  3. Make sure that PBZeitenTableViewController.m is in the list of source files to compile. 确保PBZeitenTableViewController.m在要编译的源文件列表中。

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

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