Travis CI is unable to open file

I’m trying to build my iOS project, but travis-ci is printing following error message:

/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')

Of course I selected my scheme as shared. It’s possible for me to build the project locally. I don’t understand why travis is not finding the debug.xcconfig file.

My Podfile:

  platform :ios, '10.0'

target 'Analyzer' do
  pod 'Charts' 


My 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
  - gem install cocoapods
  - pod install --repo-update
1 Like

Same issue with osx_image: xcode10 and xcode10.1. Works fine with older images (like xcode9.4).

Hi! This looks like it is caused by a combination of two things:

  • An issue in how your project is referring to the .xcconfig file that CocoaPods uses
  • Xcode 10’s new build system is stricter about references to .xcconfig files, and will error when referencing one that does not exist. Xcode 9’s build system would not fail in this situation.

There’s some more information about this in this issue in the CocoaPods repo, including some possible solutions or workarounds.