gpt4 book ai didi

ios - Travis-CI 无法打开文件

转载 作者:可可西里 更新时间:2023-11-01 00:54:28 25 4
gpt4 key购买 nike

我正在尝试构建我的 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

关于ios - Travis-CI 无法打开文件,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/53093335/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com