0

I am trying to build an .ipa from jenkins with freestyle project. I am using xcode10.2 and jenkins ver 2.164.1. But I faced the following issue.

The following build commands failed:

CompileSwift normal arm64
CompileSwiftSources normal arm64 com.apple.xcode.tools.swift.compiler

I tried so many solutions regarding this issue. but none of them help me.

Help from anyone will be much appreciated.

Jenish
  • 477
  • 5
  • 20

1 Answers1

0

After too many solutions, I found the perfect solution for this type of issue.

Just remove the Pods folder and Podfile.lock file from the project and again install the Pods.

Because swift version is depended on Xcode version. So, as and when we are using updated Xcode with the current project, at that time pods are also needed to be updated.

Currently, I successfully generated .ipa with Xcode 10.2

Jenish
  • 477
  • 5
  • 20
  • I am using Jenkins to create .ipa, after getting a clone from the repo, always use /usr/local/bin/pod install --verbose command than doing code signing process in Jenkins config, but still getting above issue. – Krimi Aug 30 '19 at 11:19
  • Then delete **Podfile.lock** and **Pods** folder from your project. Then install pod again in your project. Build your project. if is there any error solved it and merge it. Then delete your workspace from jenkins (from user->shared->jenkins->home->workspace) and run jenkins jobs again. – Jenish Sep 04 '19 at 10:24