gpt4 book ai didi

swift - Travis swift库编译错误

转载 作者:行者123 更新时间:2023-11-28 07:43:22 25 4
gpt4 key购买 nike

我正在尝试修复我最近从 Travis 构建中遇到的错误,但似乎无法解决问题:

The following build commands failed:
CompileSwift normal i386 /Users/travis/build/HarrisonEllerm/My-Pain-Manager/Pods/SwiftCharts/SwiftCharts/Layers/ChartPointsViewsLayer.swift
CompileSwiftSources normal i386 com.apple.xcode.tools.swift.compiler
(2 failures)

其他一切都编译得很好,但这个库出于某种原因每次都会抛出错误。有谁知道这个问题的可能解决方案(也许告诉 Travis 只是忽略图书馆?)。它每次都在那个特定文件上失败,但我可以在 Xcode 中打开它没问题,它在本地构建得很好。

构建链接:https://travis-ci.org/HarrisonEllerm/My-Pain-Manager

我看过Get Travis CI to ignore an external library?但不幸的是没有运气。

干杯

最佳答案

我认为您应该将 pod install 命令添加到您的 travis.yml 文件中。

更新了 before_install 部分:

before_install:
- rvm install ruby-2.2.2
- gem install cocoapods
- gem install xcpretty -N
- brew update
- brew install swiftlint || true #need to clean up project at some stage using swiftlint
- pod repo update
- pod install

关于swift - Travis swift库编译错误,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/51606656/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com