Cocoapods: cocoa pods linking error

Created on 2 Feb 2015  路  5Comments  路  Source: CocoaPods/CocoaPods

My Podfile

platform :ios, '8.0'
pod 'Brightcove-Player-SDK'
xcodeproj 'demoApp.xcodeproj'

then run Pod install after that I open demoApp.xcworkspace

But during the compilation I got a linking error:

Ld /Users/pmuvva/Library/Developer/Xcode/DerivedData/demoApp-aysavilfyulpfuhhvzbiqwwoyzzd/Build/Intermediates/demoApp.build/Debug-iphonesimulator/demoAppCWS.build/Objects-normal/i386/demoAppCWS normal i386
    cd /Users/pmuvva/gitrepo/iOS/demoApp
    export IPHONEOS_DEPLOYMENT_TARGET=8.1
    export PATH="/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.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 i386 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator8.1.sdk -L/Users/pmuvva/Library/Developer/Xcode/DerivedData/demoApp-aysavilfyulpfuhhvzbiqwwoyzzd/Build/Products/Debug-iphonesimulator -F/Users/pmuvva/Library/Developer/Xcode/DerivedData/demoApp-aysavilfyulpfuhhvzbiqwwoyzzd/Build/Products/Debug-iphonesimulator -filelist /Users/pmuvva/Library/Developer/Xcode/DerivedData/demoApp-aysavilfyulpfuhhvzbiqwwoyzzd/Build/Intermediates/demoApp.build/Debug-iphonesimulator/demoAppCWS.build/Objects-normal/i386/demoAppCWS.LinkFileList -Xlinker -objc_abi_version -Xlinker 2 -ObjC -lBCOVPlayerSDK -lBCiOSSDK -lPods-Brightcove-Player-SDK -lPods-Brightcove-Video-Cloud-Player-SDK -framework AVFoundation -framework CoreMedia -framework MediaPlayer -fobjc-link-runtime -Xlinker -no_implicit_dylibs -mios-simulator-version-min=8.1 -framework CoreMedia -framework AVFoundation -framework SystemConfiguration -framework MediaPlayer -framework UIKit -framework Foundation -framework CoreGraphics -lPods -Xlinker -dependency_info -Xlinker /Users/pmuvva/Library/Developer/Xcode/DerivedData/demoApp-aysavilfyulpfuhhvzbiqwwoyzzd/Build/Intermediates/demoApp.build/Debug-iphonesimulator/demoAppCWS.build/Objects-normal/i386/demoAppCWS_dependency_info.dat -o /Users/pmuvva/Library/Developer/Xcode/DerivedData/demoApp-aysavilfyulpfuhhvzbiqwwoyzzd/Build/Intermediates/demoApp.build/Debug-iphonesimulator/demoAppCWS.build/Objects-normal/i386/demoAppCWS

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

Please help me to fix this issue.

Most helpful comment

Go to Product/Edit schemes/Manage schemes and select PODS. This problem will resolve.

All 5 comments

Manually I included BCOVPlayerSDK.a and this linking error gone and populated one more linking error:

ld: warning: directory not found for option '-L/Users/pmuvva/gitrepo/iOS/demoApp/Pods/build/Debug-iphoneos'
ld: library not found for -lPods-Brightcove-Player-SDK
clang: error: linker command failed with exit code 1 (use -v to see invocation)

Please guide me to fix this issue.

Seeing something similar here.

Go to Product/Edit schemes/Manage schemes and select PODS. This problem will resolve.

screen shot 2015-02-11 at 06 38 09

This is working fine on a blank project. You may have missed warnings during pod install around search path that may not be allowing CocoaPods to find libs/frameworks within your project.

i have just update the pod version :

sudo gem install cocoapods

work for me.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

soleares picture soleares  路  3Comments

k06a picture k06a  路  3Comments

evermeer picture evermeer  路  3Comments

spencerkohan picture spencerkohan  路  3Comments

steffendsommer picture steffendsommer  路  3Comments