Skip to content

Build Error When Used With Cocoapods-enabled Workspaces #1

@Agent007

Description

@Agent007

Hi Stew. I got this error on my cocoapods-based workspace (https://github.com/Agent007/TryiOSTestRunnerWithCocoapods): 'ld: library not found for -lPods'

Below is the more detailed error log. I have tried copying "$(inherited) $(XCODE_TEST_LDFLAGS)" into cocoapod's auto-generated .xcconfig files, but that didn't help either.

Thanks for creating this tool to run unit tests on the command line for iOS 6!

=== BUILD NATIVE TARGET TryiOS6TestRunnerWithCocoapods OF PROJECT TryiOS6TestRunnerWithCocoapods WITH CONFIGURATION Debug ===
Check dependencies

Ld /tmp/xcodetest/TryiOS6TestRunnerWithCocoapods/TryiOS6TestRunnerWithCocoapods.app/TryiOS6TestRunnerWithCocoapods normal i386
cd /Users/jeffl/Downloads/TryiOS6TestRunnerWithCocoapods
setenv IPHONEOS_DEPLOYMENT_TARGET 6.0
setenv PATH "/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin:/Applications/Xcode.app/Contents/Developer/usr/bin:/Users/jeffl/.rvm/gems/ruby-1.9.3-p286@try_iOS6_test_runner_with_cocoapods/bin:/Users/jeffl/.rvm/gems/ruby-1.9.3-p286@global/bin:/Users/jeffl/.rvm/rubies/ruby-1.9.3-p286/bin:/Users/jeffl/.rvm/bin:/usr/local/bin:/usr/local/mysql/bin:/usr/bin:/bin:/usr/sbin:/sbin:/opt/X11/bin"
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang -arch i386 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator6.0.sdk -L/tmp/xcodetest/TryiOS6TestRunnerWithCocoapods -L/Users/jeffl/Downloads/TryiOS6TestRunnerWithCocoapods/Pods/TestFlightSDK -F/tmp/xcodetest/TryiOS6TestRunnerWithCocoapods -filelist /Users/jeffl/Library/Developer/Xcode/DerivedData/TryiOS6TestRunnerWithCocoapods-gjgpzjbikuzxvrheazsytdlidkcl/Build/Intermediates/TryiOS6TestRunnerWithCocoapods.build/Debug-iphonesimulator/TryiOS6TestRunnerWithCocoapods.build/Objects-normal/i386/TryiOS6TestRunnerWithCocoapods.LinkFileList -Xlinker -objc_abi_version -Xlinker 2 -ObjC -lTestFlight -lsqlite3.0 -lz -framework CFNetwork -framework CoreGraphics -framework CoreLocation -framework CoreTelephony -framework Foundation -framework MobileCoreServices -framework QuartzCore -framework Security -framework StoreKit -framework SystemConfiguration -framework UIKit -fobjc-arc -fobjc-link-runtime -Xlinker -no_implicit_dylibs -mios-simulator-version-min=6.0 -framework MessageUI -framework AudioToolbox -framework MapKit -framework UIKit -framework Foundation -framework CoreGraphics -lPods -o /tmp/xcodetest/TryiOS6TestRunnerWithCocoapods/TryiOS6TestRunnerWithCocoapods.app/TryiOS6TestRunnerWithCocoapods
ld: library not found for -lPods
clang: error: linker command failed with exit code 1 (use -v to see invocation)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions