简体   繁体   中英

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)

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

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 -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 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. 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.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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