2017-01-18 31 views
2

错误:没有这样的模块“RealmSwift”Jenkins | Cocoapods | Swift |错误:没有这样的模块“RealmSwift”

进口RealmSwift

虽然从Xcode的建设项目,它的正常工作。从Jenkins构建它给了我上面提到的错误。

**建立失效**

以下制作命令失败:

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

(2次失败) 生成步骤 '的Xcode' 标记建立作为成品失败 :FAILURE

我Pod文件看起来像下面

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 
+0

请显示您的jenkins构建命令和日志。 –

+0

我已更新该帖子.. –

+0

这不是一个构建命令。例如:'ARCHIVE_DAY = $(date +%Y-%m-%d) ARCHIVE_TIME = $(日期+%H.%%M.%S) ARCHIVE_PATH =“$ HOME_PATH/Library/Developer/Xcode/Archives/$ {ARCHIVE_DAY}/MyFirstSwiftApp $ {ARCHIVE_DAY} $ {ARCHIVE_TIME} .xcarchive” 组-o pipefail \ && DEVELOPER_DIR = “$ {XCODE}” 脚本/ xcbuild-safe.sh -workspace MyFirstSwiftApp.xcworkspace \ -scheme $ {SCHEME} \ -destination'generic/platform = iOS'\ -archivePath“$ {ARCHIVE_PATH}”\ clean archive' –

回答

1

您可能没有版本化您的Pods目录。

您可以从.gitignore中删除Pods,或者在每个jenkins脚本中添加pod install命令。

+0

.gitignore #CocoaPods#Pods / –

相关问题