首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >Travis-ci被卡在吊舱里

Travis-ci被卡在吊舱里
EN

Stack Overflow用户
提问于 2019-11-20 15:41:02
回答 1查看 305关注 0票数 3

我正在尝试使用以下配置在我的回购上配置Travis-CI

.travis.yml

代码语言:javascript
复制
language: objective-c
osx_image: xcode11.2

xcode_workspace: NinchatSDK.xcworkspace
xcode_scheme: NinchatSDK
xcode_destination: platform=iOS Simulator,OS=13.2,name=iPhone 8

before_install:
  - git submodule update --init --recursive

  - brew install go
  - go get -u golang.org/x/mobile/cmd/gomobile
  - export PATH=$PATH:~/go/bin
  - gomobile init
  - ./update-go-framework.sh

  - gem install cocoapods
  - gem update concurrent-ruby
  - pod setup

script:
  - xcodebuild -workspace NinchatSDK.xcworkspace -scheme NinchatSDK -configuration "Release"

Podfile:

代码语言:javascript
复制
platform :ios, '9.0'
use_frameworks!

source 'https://github.com/CocoaPods/Specs.git'
source 'https://github.com/somia/ninchat-podspecs.git'

def all_pods
    pod 'AFNetworking', '~> 3.0'
    pod 'NinchatLowLevelClient', '~> 0'
    pod 'GoogleWebRTC', '~> 1.1'
    #pod 'NinchatLowLevelClient', :path => '.'
end

target 'NinchatSDK' do
  all_pods
end

target 'NinchatSDKTests' do
  all_pods
end

问题

构建服务器被困在cocoapods安装中,并在一段时间后返回超时错误:

代码语言:javascript
复制
Cloning spec repo 'cocoapods' from 'https://github.com/CocoaPods/Specs.git'


No output has been received in the last 10m0s, this potentially indicates ....
EN

回答 1

Stack Overflow用户

回答已采纳

发布于 2019-11-20 17:40:35

使用源'https://cdn.cocoapods.org/'而不是'https://github.com/CocoaPods/Specs.git'

对于最新版本的CocoaPods,它应该更快,也更可靠。

票数 7
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/58958185

复制
相关文章

相似问题

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