此Podspec在使用pod 'SwiftyTimer', '~> 1.4'和Unable to find a specification for SwiftyTimer的行上失败。它在当地安装得很好。
我尝试过的事物:
我的个人档案:
source 'https://github.com/CocoaPods/Specs.git'
platform :ios, '8.0'
use_frameworks!
target 'CWNotificationBanner_Example' do
pod 'SwiftyTimer', '~> 1.4'
pod 'CWNotificationBanner', :path => '../'
target 'CWNotificationBanner_Tests' do
inherit! :search_paths
pod 'Quick', '~> 0.8'
pod 'Nimble', '~> 3.0'
pod 'FBSnapshotTestCase'
pod 'Nimble-Snapshots'
end
end我的travis.yml:
language: objective-c
podfile: Example/Podfile
before_install:
- rvm install ruby-2.2.2 #cocoapods 1.0.0 requirement not yet supported ootb by travis
- gem install cocoapods # Since Travis is not always on latest version
- pod install --project-directory=Example
script:
- set -o pipefail && xctool test -workspace Example/CWNotificationBanner.xcworkspace -scheme CWNotificationBanner-Example -sdk iphonesimulator ONLY_ACTIVE_ARCH=NO | xcpretty
- pod lib lint发布于 2016-06-23 11:51:51
答案是:在我的osx_image键中指定xcode版本:
language: objective-c
osx_image: xcode7.3
xcode_workspace: Example/CWNotificationBanner.xcworkspace
xcode_scheme: CWNotificationBanner-Example
xcode_sdk: iphonesimulator9.3
podfile: Example/Podfile发布于 2016-06-04 11:59:33
您可能需要做一个pod repo update,以确保Podspec在最新的回购。
发布于 2019-01-01 10:33:32
在我的例子中,发生这种情况是因为缺乏对CI机的pod规范。要修复它,需要在before_install文件中添加travis.yml:
before_install:
- pod repo updatehttps://stackoverflow.com/questions/37629235
复制相似问题