Cocoapods的Apple Mach-O链接器错误

时间:2015-04-23 20:27:51

标签: ios linker-errors cocoapods mach-o

尝试在iOS上运行real iPhone device项目时出现构建错误。我在Simulator上运行它时没有遇到这个问题。

我正在使用Cocoapods用于我的所有库。

为什么会这样?我该如何解决这个问题?

Ld /Users/cyrano/Library/Developer/Xcode/DerivedData/LovelUp-asynlucucstznmdioyjinbxcqwba/Build/Products/Debug-iphoneos/Pods/DeployGateSDK.framework/DeployGateSDK normal armv7
    cd /Users/cyrano/Documents/coding_workspace/lfdate/ios/LovelUp/Pods
    export IPHONEOS_DEPLOYMENT_TARGET=8.0
    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 -dynamiclib -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS8.3.sdk -L/Users/cyrano/Library/Developer/Xcode/DerivedData/LovelUp-asynlucucstznmdioyjinbxcqwba/Build/Products/Debug-iphoneos/Pods -F/Users/cyrano/Library/Developer/Xcode/DerivedData/LovelUp-asynlucucstznmdioyjinbxcqwba/Build/Products/Debug-iphoneos/Pods -F/Users/cyrano/Documents/coding_workspace/lfdate/ios/LovelUp/Pods/DeployGateSDK/DeployGateSDK1.0.4.embeddedframework -filelist /Users/cyrano/Library/Developer/Xcode/DerivedData/LovelUp-asynlucucstznmdioyjinbxcqwba/Build/Intermediates/Pods.build/Debug-iphoneos/Pods-DeployGateSDK.build/Objects-normal/armv7/DeployGateSDK.LinkFileList -install_name @rpath/DeployGateSDK.framework/DeployGateSDK -Xlinker -rpath -Xlinker @executable_path/Frameworks -Xlinker -rpath -Xlinker @loader_path/Frameworks -dead_strip -framework DeployGateSDK -framework SystemConfiguration -ObjC -fobjc-arc -fobjc-link-runtime -miphoneos-version-min=8.0 -framework Foundation -framework SystemConfiguration -single_module -compatibility_version 1 -current_version 1 -Xlinker -dependency_info -Xlinker /Users/cyrano/Library/Developer/Xcode/DerivedData/LovelUp-asynlucucstznmdioyjinbxcqwba/Build/Intermediates/Pods.build/Debug-iphoneos/Pods-DeployGateSDK.build/Objects-normal/armv7/DeployGateSDK_dependency_info.dat -o /Users/cyrano/Library/Developer/Xcode/DerivedData/LovelUp-asynlucucstznmdioyjinbxcqwba/Build/Products/Debug-iphoneos/Pods/DeployGateSDK.framework/DeployGateSDK

Undefined symbols for architecture armv7:
  "__mh_execute_header", referenced from:
      l001 in DeployGateSDK(DGSApplicationUtil.o)
ld: symbol(s) not found for architecture armv7
clang: error: linker command failed with exit code 1 (use -v to see invocation)

0 个答案:

没有答案