We have recently encountered continuously failing builds with our integration, here is the job that fails defined in our config.yml
file.
version: 2
jobs:
build_and_test:
macos:
xcode: "10.1.0"
environment:
FASTLANE_LANE: test
BUNDLER_VERSION: 2.0.1
steps:
- checkout
# Restore Gem cache
- restore_cache:
key: gem-cache-{{ arch }}-{{ checksum "Gemfile.lock" }}
- run:
name: Setup Script
command: chmod 755 ./setup.sh & ./setup.sh ci
# Save Gem cache
- save_cache:
key: gem-cache-{{ arch }}-{{ checksum "Gemfile.lock" }}
paths:
- vendor/bundle
# Restore CocoaPods cache
- restore_cache:
key: pod-cache-{{ arch }}-{{ checksum "Podfile.lock" }}
- run:
name: Fastlane
command: bundle exec fastlane $FASTLANE_LANE
# Save CocoaPods cache
- save_cache:
key: pod-cache-{{ arch }}-{{ checksum "Podfile.lock" }}
paths:
- Pods
The output file indicates that this line or pod is what is causing the build failure.
/Users/distiller/project/[Company]/Classes/Application/Configuration/Configuration+Application.swift:67:8: no such module ‘ZendeskSDK’
import ZendeskSDK
^
However, ZendeskSDK
(we’re using 2.3.0) was not updated on our Podfile
and neither was our config file in recent builds. Odd thing is we import ZendeskSDK
in other files too, but they compile fine according to the output. So the failure must be on the CI, I’m not sure what the issue is or where to begin investigating.