Xcodebuild fails in jenkins with cocoapods Xcodebuild fails in jenkins with cocoapods xcode xcode

Xcodebuild fails in jenkins with cocoapods


As the output of xcodebuild -list says, your workspace only has schemes for the Pods.

If your Jenkins instance pulls your project from a repository, it's likely you don't share your Project scheme to everyone.

To fix this, you will need to share your scheme for all users using the repo. In Xcode, click on the Scheme name to open the scheme menu (upper left corner), and choose "Manage Schemes..."

Manage schemes menu

In the Manage Scheme dialog, make sure that the scheme you want to build with Jenkins is shared to all users by checking the "Shared" box on the right.

Manage Schemes dialog

Your Project scheme should be listed on Jenkins after that.