我正在尝试使用以下配置在GitHub存储库上配置 Travis-CI

.travis.yml

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:
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安装中,并在一段时间后返回超时错误:
Cloning spec repo 'cocoapods' from 'https://github.com/CocoaPods/Specs.git'


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

最佳答案

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

使用最新版本的CocoaPods,它应该更快,更可靠。

关于ios - Travis-ci卡在Pod安装中,我们在Stack Overflow上找到一个类似的问题:https://stackoverflow.com/questions/58958185/

10-08 21:02
查看更多