我构建了一个项目。依赖性通过CocoaPods进行管理。 当运行项目时。它发生了如下错误:
Ld的 /Users/zhaoxinqiang/Library/Developer/Xcode/DerivedData/iXueXi-ddaxyfhwxiktmtgsfbafazqmdwlu/Build/Products/Debug-iphonesimulator/iXueXi.app/iXueXi 正常的x86_64 cd / Users / zhaoxinqiang / Desktop / iXueXi export IPHONEOS_DEPLOYMENT_TARGET = 8.0 export PATH =" /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin:/Applications/Xcode.app/Contents/Developer/usr/bin:/ usr / local /箱:在/ usr / bin中:/ bin中:/ usr / sbin目录:/ sbin目录" /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang -arch x86_64 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator10.3.sdk -L /用户/ zhaoxinqiang /库/开发商/ Xcode中/ DerivedData / iXueXi-ddaxyfhwxiktmtgsfbafazqmdwlu /编译/产品/调试,iphonesimulator -L /用户/ zhaoxinqiang /库/开发商/ Xcode中/ DerivedData / iXueXi-ddaxyfhwxiktmtgsfbafazqmdwlu /编译/产品/调试-iphonesimulator / ACAlertController -L /用户/ zhaoxinqiang /库/开发商/ Xcode中/ DerivedData / iXueXi-ddaxyfhwxiktmtgsfbafazqmdwlu /编译/产品/调试-iphonesimulator / AFNetworking -L /用户/ zhaoxinqiang /库/开发商/ Xcode中/ DerivedData / iXueXi-ddaxyfhwxiktmtgsfbafazqmdwlu /编译/产品/调试-iphonesimulator / AliyunOSSiOS -L /用户/ zhaoxinqiang /库/开发商/ Xcode中/ DerivedData / iXueXi-ddaxyfhwxiktmtgsfbafazqmdwlu /编译/产品/调试-iphonesimulator / BACustomAlertView -L /用户/ zhaoxinqiang /库/开发商/ Xcode中/ DerivedData / iXueXi-ddaxyfhwxiktmtgsfbafazqmdwlu /编译/产品/调试-iphonesimulator / MBProgressHUD -L /用户/ zhaoxinqiang /库/开发商/ Xcode中/ DerivedData / iXueXi-ddaxyfhwxiktmtgsfbafazqmdwlu /编译/产品/调试-iphonesimulator / MJRefresh -L /用户/ zhaoxinqiang /库/开发商/ Xcode中/ DerivedData / iXueXi-ddaxyfhwxiktmtgsfbafazqmdwlu /编译/产品/调试-iphonesimulator /套 -L /用户/ zhaoxinqiang /库/开发商/ Xcode中/ DerivedData / iXueXi-ddaxyfhwxiktmtgsfbafazqmdwlu /编译/产品/调试-iphonesimulator /砌体 -L /用户/ zhaoxinqiang /库/开发商/ Xcode中/ DerivedData / iXueXi-ddaxyfhwxiktmtgsfbafazqmdwlu /编译/产品/调试-iphonesimulator /可达性 -L /用户/ zhaoxinqiang /库/开发商/ Xcode中/ DerivedData / iXueXi-ddaxyfhwxiktmtgsfbafazqmdwlu /编译/产品/调试-iphonesimulator / ReactiveObjC -L /用户/ zhaoxinqiang /库/开发商/ Xcode中/ DerivedData / iXueXi-ddaxyfhwxiktmtgsfbafazqmdwlu /编译/产品/调试-iphonesimulator / SDAutoLayout -L /用户/ zhaoxinqiang /库/开发商/ Xcode中/ DerivedData / iXueXi-ddaxyfhwxiktmtgsfbafazqmdwlu /编译/产品/调试-iphonesimulator / SDCycleScrollView -L /用户/ zhaoxinqiang /库/开发商/ Xcode中/ DerivedData / iXueXi-ddaxyfhwxiktmtgsfbafazqmdwlu /编译/产品/调试-iphonesimulator / SDWebImage -L /用户/ zhaoxinqiang /库/开发商/ Xcode中/ DerivedData / iXueXi-ddaxyfhwxiktmtgsfbafazqmdwlu /编译/产品/调试-iphonesimulator / TYPagerController -L /用户/ zhaoxinqiang /库/开发商/ Xcode中/ DerivedData / iXueXi-ddaxyfhwxiktmtgsfbafazqmdwlu /编译/产品/调试-iphonesimulator / TZImagePickerController -L / Users / zhaoxinqiang / Desktop / iXueXi / Pods / JCore -L / Users / zhaoxinqiang / Desktop / iXueXi / iXueXi / Venders / AliPay -F / Users / zhaoxinqiang / Library / Developer / Xcode / DerivedData / iXueXi-ddaxyfhwxiktmtgsfbafazqmdwlu / Build /产品/调试,iphonesimulator -F / Users / zhaoxinqiang / Desktop / iXueXi / Pods / AlipaySDK-2.0 -filelist /Users/zhaoxinqiang/Library/Developer/Xcode/DerivedData/iXueXi-ddaxyfhwxiktmtgsfbafazqmdwlu/Build/Intermediates/iXueXi.build/Debug-iphonesimulator/iXueXi.build /Objects-normal/x86_64/iXueXi.LinkFileList -mios-simulator-version-min = 8.0 -dead_strip -Xlinker -object_path_lto -Xlinker /Users/zhaoxinqiang/Library/Developer/Xcode/DerivedData/iXueXi-ddaxyfhwxiktmtgsfbafazqmdwlu/Build/Intermediates/iXueXi.build/Debug-iphonesimulator/iXueXi.build /Objects-normal/x86_64/iXueXi_lto.o -Xlinker -export_dynamic -Xlinker -no_deduplicate -Xlinker -objc_abi_version -Xlinker 2 -fobjc弧-fobjc链路的运行时-ObjC -lACAlertController -lAFNetworking -lAliyunOSSiOS -lBACustomAlertView -lMBProgressHUD -lMJRefresh -lMantle -lMasonry -lReachability -lReactiveObjC -lSDAutoLayout - lSDCycleScrollView -lSDWebImage -lTYPagerController -lTZImagePickerController -lc ++ -ljcore-ios-1.1.1 -lresolv -lz -framework AlipaySDK -framework CFNetwork -framework CoreFoundation -framework CoreGraphics -framework CoreMotion -framework CoreTelephony -framework Foundation-framework ImageIO -framework MobileCoreServices -framework QuartzCore -framework Security -framework SystemConfiguration -framework UIKit -weak_framework UserNotifications -Xlinker -sectcreate -Xlinker __TEXT -Xlinker __entitlements -Xlinker /Users/zhaoxinqiang/Library/Developer/Xcode/DerivedData/iXueXi-ddaxyfhwxiktmtgsfbafazqmdwlu/Build/Intermediates/iXueXi.build/Debug-iphonesimulator/iXueXi.build/iXueXi。 app.xcent -weak_framework NotificationCenter -framework SystemConfiguration -lresolv -lssl -lcrypto -framework MediaPlayer -framework AdSupport -lPods-iXueXi -Xlinker -dependency_info -Xlinker / Users / zhaoxinqiang / Library / Developer / Xcode / DerivedData / iXueXi-ddaxyfhwxiktmtgsfbafazqmdwlu / Build / Intermediates / iXueXi .build /调试-iphonesimulator / iXueXi.build /对象 - 正常/ x86_64的/ iXueXi_dependency_info.dat -o /Users/zhaoxinqiang/Library/Developer/Xcode/DerivedData/iXueXi-ddaxyfhwxiktmtgsfbafazqmdwlu/Build/Products/Debug-iphonesimulator/iXueXi.app/iXueXi
ld:找不到-lssl clang的库:错误:链接器命令失败 退出代码1(使用-v查看调用)
答案 0 :(得分:0)
我的案例中可能的解决方案之一转到xcode首选项 - >地点 - >派生数据然后清理此文件夹并再次运行。它对我有用。
答案 1 :(得分:0)
我遇到过同样的问题并通过从Target中删除重复项来解决它。在项目中查找任何重复的文件夹或文件,并从Project中删除所有重复项。这将解决您的问题。
答案 2 :(得分:0)
有时在重命名目标或移动某些内容后,您可能会损坏您的pod安装。幸运的是,比sudo make install的解决方案更容易解决它。