【问题标题】:Build step 'Xcode' marked build as failure- Jenkins iOS构建步骤“Xcode”将构建标记为失败-Jenkins iOS
【发布时间】:2019-11-25 01:18:14
【问题描述】:

每当我尝试使用 Jenkins 构建我的项目时,都会收到以下错误:

我已经尝试了以下方法:

  1. pod 安装/更新
  2. 在“管理方案”中选中方案名称“共享”复选框
  3. 指定 shell 命令“安装”

除了上述之外,没有任何效果,如果有人对我的问题有解决方案,那将是非常可观的。提前致谢。

以下是我在构建项目时从 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

请帮忙。

【问题讨论】:

  • 你也可以添加你的pod文件

标签: ios iphone xcode jenkins xcode10


【解决方案1】:

只需从项目中删除 Pods 文件夹Podfile.lock 文件。

此外,从您的项目和 Jenkins (/Users/Shared/Jenkins/Library/Developer/Xcode/DerivedData) 中删除派生数据

现在再次安装 Pod。

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 2016-02-21
    • 1970-01-01
    • 2017-10-09
    • 2016-01-26
    • 2017-06-19
    • 1970-01-01
    • 2019-12-01
    • 2020-05-12
    相关资源
    最近更新 更多