Jenkins & CocoaPods

I’m currently experimenting with Jenkins and CocoaPods. I’ve read that adding the CocoaPods and Xcode plugins to Jenkins would suffice to get a Jenkins build. Seems like I’ve missed something and I just can’t figure it out.

The Xcode Workspace is configured to have a derived data folder relative to the workspace and that folder is build.
The main project’s schema file in the workspace is shared.
And all this is pushed to a repository: https://github.com/cyupa/JenkinsWithCocoaPods.git

  • Mercurial and Git custom SSH key location
  • code push to heroku not working
  • Git: How to push from “no branch” to a new remote branch?
  • When using Eclipse and Egit I can not push to upstream
  • Heroku - Git push without building
  • How to find a url for a local GIT repo
  • I still end up with the same console output, that it wasn’t able to find the Pods library build:

    library not found for -lPods clang: error: linker command failed with exit code 1 (use -v to see invocation)
    
    ** BUILD FAILED **
    
    The following build commands failed:    
    Ld build/JenkinsWithCocoaPods.build/Release-iphoneos/JenkinsWithCocoaPods.build/Objects-normal/armv7s/JenkinsWithCocoaPods normal armv7s    
    Ld build/JenkinsWithCocoaPods.build/Release-iphoneos/JenkinsWithCocoaPods.build/Objects-normal/armv7/JenkinsWithCocoaPods normal armv7  
    Ld build/JenkinsWithCocoaPods.build/Release-iphoneos/JenkinsWithCocoaPods.build/Objects-normal/arm64/JenkinsWithCocoaPods normal arm64 (3 failures) Build step 'Xcode' marked build as failure 
    Finished: FAILURE
    

    Any idea of what I might be doing wrong? Should I run some scripts, isn’t xcodebuild already integrating the Pods build while building the target?

  • prevent some commit/code to be merged into master
  • npm WARN package.json Stock@0.0.1 No repository field
  • Faster git clone
  • git workflow for making modifications you'll never push back to origin
  • Git: what is a dangling commit/blob and where do they come from?
  • How to delete all remote git branches which have already been integrated?
  • One Solution collect form web for “Jenkins & CocoaPods”

    After a while, I managed to get it right. Because CocoaPods adds more Build Schemes, you must specify the scheme you want to use. In this case the main scheme associated with the main target.
    I also compiled a step-by-step tutorial on how to setup Jenkins for your iOS project here: https://github.com/cyupa/JenkinsCI-iOS

    Git Baby is a git and github fan, let's start git clone.