每当我尝试使用 Jenkins 构建项目时,都会收到以下错误:
我已经尝试过以下操作:
- pod 安装/更新
- 在“管理方案”中选中方案名称“共享”复选框
- 指定 shell 命令“install”
除了上述之外,没有任何效果,如果有人能解决我的问题,那将非常感激。提前致谢。
下面是我在构建项目时从 Jenkins 获取的错误日志:
/Users/<User>/.jenkins/workspace/<Project-parent-folder>/<Project>/build/<Project>.build/Release-iphoneos/<Project>.build/Objects-normal/arm64/MyCell.o -embed-bitcode-marker
/Users/<User>/.jenkins/workspace/<Project-parent-folder>/<Project>/<Project>/MVC/Controller/DetailVC.swift:10:8: error: no such module 'SwiftyJSON'
import SwiftyJSON
^
** BUILD FAILED **
The following build commands failed:
CompileSwiftSources normal arm64 com.apple.xcode.tools.swift.compiler
CompileSwift normal arm64
(2 failures)
Build step 'Xcode' marked build as failure
Finished: FAILURE
请帮忙。
最佳答案
只需从项目中删除 Pods 文件夹 和 Podfile.lock 文件即可。
此外,从您的项目和 Jenkins 中删除派生数据 (/Users/Shared/Jenkins/Library/Developer/Xcode/DerivedData)
现在再次安装 Pod。
关于ios - 构建步骤 'Xcode' 将构建标记为失败 - Jenkins iOS,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/57054958/