更新到XCode 6.3后,链接器命令失败,退出代码为1

时间:2015-04-10 12:15:06

标签: ios xcode

我得到了

ld: library not found for -lPods-projectName-AFNetworkActivityLogger
clang: error: linker command failed with exit code 1 (use -v to see invocation)

在构建时,将Xcode更新为6.3

有什么想法吗?

修改

完整日志:

Ld /Users/radekwilczak/Library/Developer/Xcode/DerivedData/projectName-hkpnskhwpbvwkteungusfkzdjnvw/Build/Products/Debug-iphoneos/projectName.app/projectName normal armv7
    cd /Users/radekwilczak/Work/projectName-ios
    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/iPhoneOS8.3.sdk -L/Users/radekwilczak/Library/Developer/Xcode/DerivedData/projectName-hkpnskhwpbvwkteungusfkzdjnvw/Build/Products/Debug-iphoneos -L/Users/radekwilczak/Work/projectName-ios/external/prmediaplayersdk/lib/iphoneos -L/Users/radekwilczak/Work/projectName-ios/external/Upnpx -L/Users/radekwilczak/Work/projectName-ios/external -L/Users/radekwilczak/Work/projectName-ios/external/prmediaplayersdk/lib -L/Users/radekwilczak/Work/projectName-ios/Pods/build/Debug-iphoneos -F/Users/radekwilczak/Library/Developer/Xcode/DerivedData/projectName-hkpnskhwpbvwkteungusfkzdjnvw/Build/Products/Debug-iphoneos -F/Users/radekwilczak/Work/projectName-ios/Pods/google-cast-sdk/GoogleCastSDK-2.5.2-Release -F/Users/radekwilczak/Work/projectName-ios -filelist /Users/radekwilczak/Library/Developer/Xcode/DerivedData/projectName-hkpnskhwpbvwkteungusfkzdjnvw/Build/Intermediates/projectName.build/Debug-iphoneos/projectName.build/Objects-normal/armv7/projectName.LinkFileList -dead_strip -ObjC -lPods-projectName-AFNetworkActivityLogger -lPods-projectName-AFNetworking -lPods-projectName-CSStickyHeaderFlowLayout -lPods-projectName-CocoaAsyncSocket -lPods-projectName-CocoaLumberjack -lPods-projectName-JSONModel -lPods-projectName-PureLayout -lPods-projectName-SFHFKeychainUtils -lPods-projectName-SVProgressHUD -lPods-projectName-TTTAttributedLabel -lPods-projectName-TYMActivityIndicatorView -lPods-projectName-TYMProgressBarView -lPods-projectName-google-cast-sdk -framework CFNetwork -framework CoreGraphics -framework CoreText -framework GoogleCast -framework MobileCoreServices -framework QuartzCore -framework Security -framework SystemConfiguration -framework UIKit -fobjc-arc -fobjc-link-runtime -miphoneos-version-min=7.0 -framework CoreText -framework MediaAccessibility -framework GoogleCast -framework CoreData -lsqlite3 -lstdc++.6.0.9 -lxml2 -lz -lGoogleAnalyticsServices -framework MediaPlayer -framework CoreMedia -framework CoreAudio -framework AudioToolbox -framework CFNetwork -framework MessageUI -framework SystemConfiguration -framework AVFoundation -framework Foundation -framework CoreGraphics -framework UIKit -framework Fabric -framework Security -lPRMediaPlayerFramework_v_2_3 -framework Crashlytics -lupnpx -Xlinker -dependency_info -Xlinker /Users/radekwilczak/Library/Developer/Xcode/DerivedData/projectName-hkpnskhwpbvwkteungusfkzdjnvw/Build/Intermediates/projectName.build/Debug-iphoneos/projectName.build/Objects-normal/armv7/projectName_dependency_info.dat -o /Users/radekwilczak/Library/Developer/Xcode/DerivedData/projectName-hkpnskhwpbvwkteungusfkzdjnvw/Build/Products/Debug-iphoneos/projectName.app/projectName

ld: warning: directory not found for option '-L/Users/radekwilczak/Work/projectName-ios/Pods/build/Debug-iphoneos'
ld: library not found for -lPods-projectName-AFNetworkActivityLogger
clang: error: linker command failed with exit code 1 (use -v to see invocation)

1 个答案:

答案 0 :(得分:1)

通过删除

解决了问题

libPods.a

libPods-CD_GO.a

并添加

libPods-CD_GO.a

再一次(在框架中)。