Xcode Cloud: unable to open configuration settings file

Guess what? XCode is garbage but doc can help us here.

This what I’m using to smoothly build my workflow. I’l share exact bash scripts here.

Why it’s failing?

  1. First open logs on your workflow window side bar.

  2. Check if you’re installing necessary dependencies before running archive process. You’re using virtual machine so any dependencies like cocoapods or yarn aren’t installed by default there.

If you haven’t read and skipped to the SOLUTION:

Here is the steps:

  1. Create ci_scripts folder inside ios folder.

  2. Create 3 files inside ci_scripts folder:

    1. ci_post_clone.sh
    2. ci_post_xcodebuild.sh
    3. ci_pre_xcodebuild.sh
  3. Inside your ci_post_clone.sh file add this:

     #!/bin/zsh
    
     # fail if any command fails
    
     echo "🧩 Stage: Post-clone is activated .... "
    
     set -e
     # debug log
     set -x
    
     # Install dependencies using Homebrew. This is MUST! Do not delete.
     brew install node yarn cocoapods fastlane
    
     # Install yarn and pods dependencies.
     # If you're using Flutter or Swift 
     # just install pods by "pod install" command 
     ls && cd .. && yarn && pod install
    
     echo "🎯 Stage: Post-clone is done .... "
    
     exit 0
    
  4. Inside your ci_pre_xcodebuild.sh file add this:

     #!/bin/zsh
    
     echo "🧩 Stage: PRE-Xcode Build is activated .... "
    
     # You can add additional scripts here...
    
     echo "🎯 Stage: PRE-Xcode Build is DONE .... "
    
     exit 0
    
  5. Inside your ci_post_xcodebuild.sh file add this:

     #!/bin/zsh
    
     echo "🧩 Stage: POST-Xcode Build is activated .... "
    
     # You can add additional scripts here...
    
     echo "🎯 Stage: POST-Xcode Build is DONE .... "
    
     exit 0
    

Leave a Comment

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)