gpt4 book ai didi

ios - 安装AFNetworking 2.0后编译报错

转载 作者:行者123 更新时间:2023-11-28 19:02:41 33 4
gpt4 key购买 nike

我刚刚安装了 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)

我不知道如何解决这个问题,请问有人能帮忙吗?

最佳答案

可能的问题

您的设备有另一种架构,不支持 pod 提供的所有架构。

解决方案

转到项目,Build Phases -> Architectures -> Build active architecture only 并将其设置为NO .再次运行项目。

希望对你有帮助

关于ios - 安装AFNetworking 2.0后编译报错,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/23405076/

33 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com