首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >Travis swift库编译错误

Travis swift库编译错误
EN

Stack Overflow用户
提问于 2018-07-31 14:24:04
回答 1查看 138关注 0票数 1

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

代码语言:javascript
复制
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?,但不幸的是没那么走运。

干杯

EN

回答 1

Stack Overflow用户

发布于 2018-07-31 14:46:57

我认为你应该在你的travis.yml文件中添加pod install命令。

已更新的 before_install 部件:

代码语言:javascript
复制
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
票数 0
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/51606656

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档