AP_
AP_

Reputation: 1043

Jenkins | Cocoapods | Swift | error: no such module 'RealmSwift'

error: no such module 'RealmSwift'

import RealmSwift

While building a project from Xcode, it's working fine. Building it from Jenkins,gives me the above mentioned error.

** BUILD FAILED **

The following build commands failed:

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

(2 failures) Build step 'Xcode' marked build as failure Finished: FAILURE

My Pod file looks like below

target 'MyProject' do
use_frameworks!
# Pods for MyProject
pod 'Google/Analytics'
pod 'GoogleTagManager','~> 3.15.0'
pod 'RealmSwift','~> 2.1'

target 'MyProjectTests' do
# Pods for testing
end

target 'MyProjectUITests' do
# Pods for testing
end   
end

Upvotes: 2

Views: 555

Answers (1)

Cœur
Cœur

Reputation: 38727

You may not have versioned your Pods directory.

You can either remove Pods from your .gitignore, or add a pod install command inside each jenkins script.

Upvotes: 1

Related Questions