我刚刚安装了AFNetwokring 2.0并首先用模拟器编译它,它100%工作并且没有发现错误。我做的测试电话也按预期工作。然后我尝试为真正的iPhone设备编译它,现在我在尝试构建时收到此错误:
Ld /Users/sorendidriksen/Library/Developer/Xcode/DerivedData/GB_Mobil_DK-abwnrramdycsilhhfusihgjqvead/Build/Intermediates/GB\ Mobil\ DK.build/Debug-iphoneos/GB\ Mobil\ DK.build/Objects-normal/armv7/GB\ Mobil\ DK normal armv7
cd /Volumes/TCOSX25GB/CloudStation/GolfBox/GolfBox_Code/iOS_build_DK/GB_Build_1.7.2.0
export IPHONEOS_DEPLOYMENT_TARGET=7.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 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS7.1.sdk -L/Users/sorendidriksen/Library/Developer/Xcode/DerivedData/GB_Mobil_DK-abwnrramdycsilhhfusihgjqvead/Build/Products/Debug-iphoneos -F/Users/sorendidriksen/Library/Developer/Xcode/DerivedData/GB_Mobil_DK-abwnrramdycsilhhfusihgjqvead/Build/Products/Debug-iphoneos -filelist /Users/sorendidriksen/Library/Developer/Xcode/DerivedData/GB_Mobil_DK-abwnrramdycsilhhfusihgjqvead/Build/Intermediates/GB\ Mobil\ DK.build/Debug-iphoneos/GB\ Mobil\ DK.build/Objects-normal/armv7/GB\ Mobil\ DK.LinkFileList -dead_strip -lxml2 -all_load -ObjC -fobjc-link-runtime -miphoneos-version-min=7.0 -framework QuartzCore -framework MapKit -lz.1.2.5 -framework Foundation -framework UIKit -framework CoreGraphics -framework CFNetwork -framework SystemConfiguration -framework MobileCoreServices -framework CoreLocation -framework AddressBook -framework CoreData -lPods -Xlinker -dependency_info -Xlinker /Users/sorendidriksen/Library/Developer/Xcode/DerivedData/GB_Mobil_DK-abwnrramdycsilhhfusihgjqvead/Build/Intermediates/GB\ Mobil\ DK.build/Debug-iphoneos/GB\ Mobil\ DK.build/Objects-normal/armv7/GB\ Mobil\ DK_dependency_info.dat -o /Users/sorendidriksen/Library/Developer/Xcode/DerivedData/GB_Mobil_DK-abwnrramdycsilhhfusihgjqvead/Build/Intermediates/GB\ Mobil\ DK.build/Debug-iphoneos/GB\ Mobil\ DK.build/Objects-normal/armv7/GB\ Mobil\ DK
ld: library not found for -lPods
clang: error: linker command failed with exit code 1 (use -v to see invocation)
我不知道如何解决这个问题,那里的任何人都可以帮助PLZ?
答案 0 :(得分:4)
您的设备有另一种架构,它不支持pod提供的所有架构。
转到项目,Build Phases
- > Architectures
- > Build active architecture only
并将其设为NO
。再次运行该项目。
希望有所帮助