i'm trying to Archive my code by Jenkins and CocoaPods.
But build error, it seems the project can find the module generated by CocoaPods.
i use swift to code and the project is build successfully in Xcode
the podfile is like:
platform :ios, '8.0'
use_frameworks!
target 'MyProject' do
pod 'AFNetworking'
pod 'ObjectMapper'
end
the error log in Jenkins is:
....
/Users/xxx/.jenkins/jobs/LIFE_iOS/workspace/MyProject/Core/Model/ItemResult.swift:10:8: error: no such module 'ObjectMapper'
import ObjectMapper
^
** BUILD FAILED **
The following build commands failed:
CompileSwift normal arm64 /Users/xxx/.jenkins/jobs/LIFE_iOS/workspace/MyProject/MGFramework/CustomViews/MartyJunior/MJTableViewTopCell.swift
...
CompileSwiftSources normal arm64 com.apple.xcode.tools.swift.compiler
(5 failures)
Build step 'Xcode' marked build as failure
Finished: FAILURE