Travis-CI 无法打开文件
Travis-CI is unable to open file
我正在尝试构建我的 iOS 项目,但 travis-ci 正在打印以下错误消息:
/Users/travis/build/BilalReffas/Analyzer/Pods/Pods/Target Support
Files/Pods-Analyzer/Pods-Analyzer.debug.xcconfig: unable to open file
(in target "Analyzer" in project "Analyzer") (in target 'Analyzer')
当然我选择了共享方案。我可以在本地构建项目。我不明白为什么 travis 找不到 debug.xcconfig
文件。
My Podfile:
platform :ios, '10.0'
target 'Analyzer' do
use_frameworks!
pod 'Charts'
end
我的travis.yml:
language: objective-c
osx_image: xcode10
xcode_workspace: Analyzer.xcworkspace
xcode_scheme: Analyzer
xcode_destination: platform=iOS Simulator,OS=12.0,name=iPad Pro (9.7-inch)
podfile: Podfile
before_install:
- gem install cocoapods
- pod install --repo-update
调试后我使用ssh检查文件权限。
-rw-r--r-- 1 travis staff 662 Nov 3 14:41 Pods-Analyzer.debug.xcconfig
如您所见,顶部打开文件应该完全没问题。
与特拉维斯无关。这是 cocoapods 的一个奇怪错误。将 gem install cocoapods --pr
添加到 travis.yml
应该可以解决问题。
我现在的 travis.yml:
language: swift
osx_image: xcode10.1
xcode_workspace: Analyzer.xcworkspace
xcode_scheme: Analyzer
xcode_destination: platform=iOS Simulator,OS=12.1,name=iPad Pro (9.7-inch)
podfile: Podfile
before_install:
- gem install cocoapods --pre
- pod install --repo-update
您需要打开项目设置并更新路径以调试或发布 xcconfig:
我正在尝试构建我的 iOS 项目,但 travis-ci 正在打印以下错误消息:
/Users/travis/build/BilalReffas/Analyzer/Pods/Pods/Target Support Files/Pods-Analyzer/Pods-Analyzer.debug.xcconfig: unable to open file (in target "Analyzer" in project "Analyzer") (in target 'Analyzer')
当然我选择了共享方案。我可以在本地构建项目。我不明白为什么 travis 找不到 debug.xcconfig
文件。
My Podfile:
platform :ios, '10.0'
target 'Analyzer' do
use_frameworks!
pod 'Charts'
end
我的travis.yml:
language: objective-c
osx_image: xcode10
xcode_workspace: Analyzer.xcworkspace
xcode_scheme: Analyzer
xcode_destination: platform=iOS Simulator,OS=12.0,name=iPad Pro (9.7-inch)
podfile: Podfile
before_install:
- gem install cocoapods
- pod install --repo-update
调试后我使用ssh检查文件权限。
-rw-r--r-- 1 travis staff 662 Nov 3 14:41 Pods-Analyzer.debug.xcconfig
如您所见,顶部打开文件应该完全没问题。
与特拉维斯无关。这是 cocoapods 的一个奇怪错误。将 gem install cocoapods --pr
添加到 travis.yml
应该可以解决问题。
我现在的 travis.yml:
language: swift
osx_image: xcode10.1
xcode_workspace: Analyzer.xcworkspace
xcode_scheme: Analyzer
xcode_destination: platform=iOS Simulator,OS=12.1,name=iPad Pro (9.7-inch)
podfile: Podfile
before_install:
- gem install cocoapods --pre
- pod install --repo-update
您需要打开项目设置并更新路径以调试或发布 xcconfig: