Link error attempting to build app with Cocoapods using xcodebuild on Jenkins Link error attempting to build app with Cocoapods using xcodebuild on Jenkins xcode xcode

Link error attempting to build app with Cocoapods using xcodebuild on Jenkins


The 'Build Output Directory' setting can also cause this.

Changing the value of the 'Build Output Directory' from a relative path to a fully specified path fixed it for me.

E.g. instead of 'MyOutputDirectory' use '/Users/Shared/Jenkins/home/jobs/JenkinsProject/workspace/MyOutputDirectory'


The problem might be because you have different (custom) build configurations.

Take a look at this:

https://github.com/CocoaPods/CocoaPods/issues/121

Try adding following search path to "Library Search Paths" (For all configs)

$(SYMROOT)/Release$(EFFECTIVE_PLATFORM_NAME)


You can try choose your Pods project and set Build Settings->Build Active Architectures Only->NO for Release and Debug, repeat this action for each target in Pods.