我正在尝试修复最近在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中打开它,没有问题,而且它在本地构建得很好。
链接到build:https://travis-ci.org/HarrisonEllerm/My-Pain-Manager
我见过Get Travis CI to ignore an external library?,但不幸的是没那么走运。
干杯
发布于 2018-07-31 14:46:57
我认为你应该在你的travis.yml文件中添加pod install命令。
已更新的 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 installhttps://stackoverflow.com/questions/51606656
复制相似问题