意外删除目标后,架构arm64的未定义符号错误

时间:2016-01-07 15:48:05

标签: ios xcode

我不小心删除了目标。我再次创建,但我无法再次运行我的应用程序。当我设置我的AppDelegate时,我收到一个错误。

Ld /Users/cihanozdiker/Library/Developer/Xcode/DerivedData/Moka-foueugicfassxcdbtgwkndrougpu/Build/Intermediates/Moka.build/Debug-iphoneos/Moka.build/Objects-normal/arm64/Moka normal arm64
cd /Users/cihanozdiker/Documents/MokaAfterMerchantFinished
export IPHONEOS_DEPLOYMENT_TARGET=9.1
export PATH="/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin:/Applications/Xcode.app/Contents/Developer/usr/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin"
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang -arch arm64 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS9.2.sdk -L/Users/cihanozdiker/Library/Developer/Xcode/DerivedData/Moka-foueugicfassxcdbtgwkndrougpu/Build/Products/Debug-iphoneos -L../include -L../include/barcode -L../include/common -L../include/cyclone_crypto -L../include/EstimoteSDK -L../include/openssl -L../include/EstimoteSDK/Headers -L/Users/cihanozdiker/Documents/MokaAfterMerchantFinished -L../lib -L../lib/AESCrypt-ObjC-master -L../lib/RNCryptor -F/Users/cihanozdiker/Library/Developer/Xcode/DerivedData/Moka-foueugicfassxcdbtgwkndrougpu/Build/Products/Debug-iphoneos -filelist /Users/cihanozdiker/Library/Developer/Xcode/DerivedData/Moka-foueugicfassxcdbtgwkndrougpu/Build/Intermediates/Moka.build/Debug-iphoneos/Moka.build/Objects-normal/arm64/Moka.LinkFileList -Xlinker -rpath -Xlinker @executable_path/Frameworks -miphoneos-version-min=9.1 -ObjC -ObjC -fobjc-arc -fobjc-link-runtime -lcrypto -lssl -lC4NetSdk -Xlinker -dependency_info -Xlinker /Users/cihanozdiker/Library/Developer/Xcode/DerivedData/Moka-foueugicfassxcdbtgwkndrougpu/Build/Intermediates/Moka.build/Debug-iphoneos/Moka.build/Objects-normal/arm64/Moka_dependency_info.dat -o /Users/cihanozdiker/Library/Developer/Xcode/DerivedData/Moka-foueugicfassxcdbtgwkndrougpu/Build/Intermediates/Moka.build/Debug-iphoneos/Moka.build/Objects-normal/arm64/Moka

Undefined symbols for architecture arm64:


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

我无法修复它。我正在使用XCode 7.2。

1 个答案:

答案 0 :(得分:0)

确保将MokaAppDelegate实施文件(可能是MokaAppDelegate.m)标记为新目标的一部分。

在Project Navigator中选择文件,查看File Inspector面板,确保在Target Membership窗格中选择了正确的目标。