Search code examples
iosswiftxcodejenkinsxcode8

Xcode 8 problems building with Jenkins


I've just download Xcode 8, make some settings changes and try to build with Jenkins but it fails and appears this error:

The following build commands failed:
  CompileSwift normal arm64 /Users/ujenkins/ujenkins/workspace/project-ios/XXXXX/Views/Timeline/Components/Transitions/CustomTransition.swift
  CompileSwift normal arm64 /Users/ujenkins/ujenkins/workspace/project-ios/XXXXX/ProjectBase/Operations/TextViewController.swift
  CompileSwiftSources normal arm64 com.apple.xcode.tools.swift.compiler
(3 failures)
Build step 'Execute shell' marked build as failure
Build step 'Upload to HockeyApp' marked build as failure
Finished: FAILURE

I don't know if could be a HockeyApp problem or maybe its because Xcode 8 settings. I'm using manual signing configuration but I dont have iOS Distribution nor iOS Development certificates.

I really appreciate any help you can provide


Solution

  • I've found the problem and its because we have Xcode 7.3 in Jenkins, so we need to update or create an Slave with 8.0 and then we will build the app successfully via Jenkins.

    Here is where I found how to do it. http://andymolloy.net/specifying-xcode-version-for-jenkins-projects/