【问题标题】:Travis-CI is unable to open fileTravis-CI 无法打开文件
【发布时间】:2019-03-26 18:55:34
【问题描述】:

我正在尝试构建我的 iOS 项目,但 travis-ci 正在打印以下错误消息:

/Users/travis/build/BilalReffas/Analyzer/Pods/Pods/目标支持 文件/Pods-Analyzer/Pods-Analyzer.debug.xcconfig:无法打开文件 (在项目“分析器”中的目标“分析器”中)(在目标“分析器”中)

当然,我选择了共享方案。我可以在本地构建项目。我不明白为什么 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

如您所见,打开文件应该完全没问题。

【问题讨论】:

    标签: ios objective-c swift continuous-integration travis-ci


    【解决方案1】:

    这与特拉维斯无关。这是来自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
    

    【讨论】:

      【解决方案2】:

      您需要打开项目设置并更新路径来调试或发布xcconfig:

      【讨论】:

        猜你喜欢
        • 1970-01-01
        • 2020-10-29
        • 1970-01-01
        • 1970-01-01
        • 2018-12-22
        • 1970-01-01
        • 1970-01-01
        • 2016-02-11
        • 2019-01-06
        相关资源
        最近更新 更多