当我运行应用程序时,它会使构建目标因这些问题而失败,但是当我将应用程序运行到另一台mac时,它会成功运行。有什么问题?
Ld的 /Users/defuzed/Library/Developer/Xcode/DerivedData/Build/Products/Debug-iphonesimulator/TailorMade.app/TailorMade 正常的i386 cd“/ Users / defuzed / Desktop / prachi projects / 5-Sept / TailorMade” export IPHONEOS_DEPLOYMENT_TARGET = 9.3 export PATH =“/ Applications / Xcode 2.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin:/Applications/Xcode 2.app/Contents/Developer/usr/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin” / Applications / Xcode \ 2.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang -arch i386 -isysroot / Applications / Xcode \ 2.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator9.3.sdk -L /用户/ defuzed /库/开发商/ Xcode中/ DerivedData /编译/产品/调试,iphonesimulator -F /用户/ defuzed /库/开发商/ Xcode中/ DerivedData /编译/产品/调试,iphonesimulator -F /用户/ defuzed /库/开发商/ Xcode中/ DerivedData /编译/产品/调试-iphonesimulator / AFNetworking -F /用户/ defuzed /库/开发商/ Xcode中/ DerivedData /编译/产品/调试-iphonesimulator /吐司 - 斯威夫特 -filelist /Users/defuzed/Library/Developer/Xcode/DerivedData/Build/Intermediates/TailorMade.build/Debug-iphonesimulator/TailorMade.build/Objects-normal/i386/TailorMade.LinkFileList -Xlinker -rpath -Xlinker @ executable_path / Frameworks -Xlinker -rpath -Xlinker @ loader_path / Frameworks -Xlinker -rpath -Xlinker @ executable_path / Frameworks -mios-simulator-version-min = 9.3 -Xlinker -no_deduplicate -Xlinker -objc_abi_version -Xlinker 2 -framework AFNetworking -framework Toast_Swift -L / Applications / Xcode \ 2.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator -Xlinker -add_ast_path -Xlinker /Users/defuzed/Library/Developer/Xcode/DerivedData/Build/Intermediates/TailorMade.build/Debug-iphonesimulator/TailorMade.build/Objects-normal/i386/TailorMade.swiftmodule -framework AVFoundation -framework AVKit -framework Foundation-framework CoreBluetooth -framework Security -framework CoreGraphics -framework CoreFoundation -framework AFNetworking -framework Pods_TailorMade -Xlinker -dependency_info -Xlinker /Users/defuzed/Library/Developer/Xcode/DerivedData/Build/Intermediates/TailorMade.build/Debug-iphonesimulator/TailorMade.build/Objects-normal/i386/TailorMade_dependency_info.dat -o /Users/defuzed/Library/Developer/Xcode/DerivedData/Build/Products/Debug-iphonesimulator/TailorMade.app/TailorMade
ld:警告:忽略文件 /Users/defuzed/Library/Developer/Xcode/DerivedData/Build/Products/Debug-iphonesimulator/AFNetworking.framework/AFNetworking, file是为x86_64构建的,而不是链接的体系结构 (I386): /Users/defuzed/Library/Developer/Xcode/DerivedData/Build/Products/Debug-iphonesimulator/AFNetworking.framework/AFNetworking 架构i386的未定义符号:
“_OBJC_CLASS _ $ _ AFHTTPRequestSerializer”,引自: 在WS.o“_ OBJC_CLASS _ $ _ AFHTTPSessionManager”中为__ObjC.AFHTTPRequestSerializer输入元数据访问器,引自: 在WS.o“_ OBJC_CLASS _ $ _ AFJSONResponseSerializer”中为__ObjC.AFHTTPSessionManager输入元数据访问器,引自: 在WS.o中为__ObjC.AFJSONResponseSerializer键入元数据访问器ld:在架构i386 clang中找不到符号:错误: 链接器命令失败,退出代码为1(使用-v查看调用)
答案 0 :(得分:0)
从Xcode选择窗口>项目>您的项目>删除派生数据