ios - Cocoapods - can't locate file for: -lPods / -lPods is not an object file (not allowed in a library) -
i have ios static library isn't building. uses cocoapods manage number of dependencies being pod itself.
what's interesting when library used in client project pod compiles fine.
here output of error:
libtool /users/bob/library/developer/xcode/deriveddata/mylibrary-fxukfghqxapkcqcnjjhmhecxahhg/build/intermediates/mylibrary.build/debug-iphoneos/mylibrary.build/objects-normal/armv7/libmylibrary.a normal armv7 cd /users/bob/projects/mylibrary setenv iphoneos_deployment_target 6.0 setenv 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:/usr/local/bin" /applications/xcode.app/contents/developer/toolchains/xcodedefault.xctoolchain/usr/bin/libtool -static -arch_only armv7 -syslibroot /users/bob/projects/xcode\ sdks/iphoneos6.1.sdk -l/users/bob/library/developer/xcode/deriveddata/mylibrary-fxukfghqxapkcqcnjjhmhecxahhg/build/products/debug-iphoneos -filelist /users/bob/library/developer/xcode/deriveddata/mylibrary-fxukfghqxapkcqcnjjhmhecxahhg/build/intermediates/mylibrary.build/debug-iphoneos/mylibrary.build/objects-normal/armv7/mylibrary.linkfilelist -objc -framework systemconfiguration -framework security -framework coregraphics -framework coretext -framework corelocation -framework uikit -framework quartzcore -framework foundation -lpods -o /users/bob/library/developer/xcode/deriveddata/mylibrary-fxukfghqxapkcqcnjjhmhecxahhg/build/intermediates/mylibrary.build/debug-iphoneos/mylibrary.build/objects-normal/armv7/libmylibrary.a /applications/xcode.app/contents/developer/toolchains/xcodedefault.xctoolchain/usr/bin/libtool: -dynamic not specified following flags invalid: -objc /applications/xcode.app/contents/developer/toolchains/xcodedefault.xctoolchain/usr/bin/libtool: can't locate file for: -lpods /applications/xcode.app/contents/developer/toolchains/xcodedefault.xctoolchain/usr/bin/libtool: file: -lpods not object file (not allowed in library) command /applications/xcode.app/contents/developer/toolchains/xcodedefault.xctoolchain/usr/bin/libtool failed exit code 1
what can / other information should provide?
my problem went using podfile of format
platform :ios, '6.0' pod 'afnetworking'
to
platform :ios, '6.0' target 'myproject' pod 'afnetworking' end
which changed libpods.a lib-myproject.a. project file still trying link libpoda.a though, no longer existed , resulted in error. delete libpods.a link framework section of build phases.
Comments
Post a Comment