Replace this template with your information
Describe your question in as much detail as possible:
-
What are you seeing, and how does that differ from what you expect to see?
I am encountering build errors in my GitLab CI/CD pipeline while trying to include configuration files for Pods in my iOS project. The error messages indicate that the included files, specifically ‘Pods-nicebizbrief.prod.xcconfig’ and ‘Pods-nicebizbrief.dev.xcconfig,’ cannot be found in the specified search paths. Additionally, there are warnings related to XCFileList and a build script phase. -
Consider including screenshots, error messages, and/or other helpful visuals
-
error log
-
config file path
-
include pods path
-
What version are you on? Are you using self-managed or GitLab.com?
- GitLab (Hint:
/help
): self-managed, version: 14.2.3 - Runner (Hint:
/admin/runners
): version: 16.1.0
- GitLab (Hint:
-
Add the CI configuration from
.gitlab-ci.yml
and other configuration if relevant (e.g. docker-compose.yml)
- gitlab-ci.yml
stages:
- build
variables:
LC_ALL: "en_US.UTF-8"
LANG: "en_US.UTF-8"
CI_SERVER_TLS_CA_FILE: "/etc/ssl/certs/ca-certificates.crt"
GIT_SSL_NO_VERIFY: "true"
CI_PROJECT_DIR: "$CI_PROJECT_DIR"
before_script:
- eval "$(rbenv init -)"
- gem install bundler
- bundle install
- bundle update fastlane
- gem install cocoapods -v "1.14.3"
- pod cache clean --all
- |
echo "Current directory: $(pwd)"
echo "Current project directory: $CI_PROJECT_DIR"
echo "Contents of the directory: $(ls)"
echo "Path to the specified file: $(realpath ./Pods/Target\ Support\ Files/Pods-nicebizbrief/Pods-nicebizbrief.prod.xcconfig)"
echo "CocoaPods version: $(pod --version)"
echo "CocoaPods search paths: $(bundle exec pod env)"
update_dependencies:
stage: build
script:
- ls -R # 현재 디렉토리의 파일 목록 출력
- |
if [ "$(git rev-parse --is-shallow-repository)" = "true" ]; then
git fetch --unshallow
fi
- git fetch --all # Fetch all objects
- pod deintegrate
- rm -rf Pods
- rm -rf "${HOME}/Library/Developer/Xcode/DerivedData"
- pod cache clean --all
- pod install
- fastlane update_plugins
only:
- CI
tags:
- ios
build:
stage: build
script:
- |
if [ "$(git rev-parse --is-shallow-repository)" = "true" ]; then
git fetch --unshallow
fi
- git fetch --all # Fetch all objects
- ls -la # 현재 디렉토리 내의 파일 목록 출력
- export PROVISIONING_PROFILE="$CI_PROVISIONING_PROFILE_PATH"
- export CERTIFICATE_PATH="$CI_CERTIFICATE_PATH"
- export CERTIFICATE_PASSWORD="$CI_CERTIFICATE_PASSWORD"
- xcodebuild clean build -workspace hyperlounge.xcworkspace -scheme nicebizbrief -configuration dev -allowProvisioningUpdates
- bundle exec fastlane build target:nicebizbrief configuration:dev
artifacts:
paths:
- log_output/
only:
- CI
tags:
- ios
- What troubleshooting steps have you already taken? Can you link to any docs or other resources so we know where you have been?
I have checked the file paths and configurations locally, and the project builds successfully. I suspect there might be an issue with the CI/CD environment or the paths specified in the configuration files. I have reviewed the GitLab CI/CD documentation but have not found a solution.