Sunday, November 30, 2025

Fixing the Difficulty of Unable to Submit Apps with Xcode-beta – Tinyfool’s weblog


Following Apple’s WWDC 2024, the annual developer celebration, many rush to obtain the beta variations of working techniques and Xcode to expertise the newest options. Nonetheless, this introduces a dilemma: it typically takes over a month to transition from beta to the official launch throughout which apps can’t be submitted by means of Xcode-beta.

To beat this, builders would possibly retain an older macOS model on certainly one of their machines particularly for app submissions or run a number of techniques. A couple of years in the past, Apple launched Xcode Cloud, which I used to deal with this very challenge efficiently.

Process:

Open your mission in Xcode and press ⌘+9 to open the sidebar’s report web page.

Click on on ‘Cloud’ to entry the Xcode Cloud information.

Comply with the information, which incorporates deciding on a product and authorizing Xcode to entry your GitHub repository.

Upon completion, the Cloud web page will show a construct historical past with indicators for profitable and failed builds.

Usually, code pushed to GitHub triggers an computerized construct, acquainted to these skilled with different CI techniques. Guide builds may also be initiated instantly inside Xcode.

You can also do guide construct out of your app’s App Retailer Join web page.

Nonetheless, direct builds usually fail resulting from dependencies managed by CocoaPods or Carthage, as code pulled from GitHub doesn’t embody these libraries. My answer includes customized construct scripts, that are simple in case you are acquainted with different CI techniques.

Xcode Cloud Construct Course of:

  1. Create a short lived atmosphere
  2. Clone the code
  3. Execute a post-clone script to course of the code after cloning
  4. Resolve dependencies
  5. Run pre-Xcodebuild scripts
  6. Execute the xcodebuild command
  7. Run post-Xcodebuild scripts

Customized scripts are required for steps 3, 5, and 6. As an illustration, dealing with CocoaPods dependencies will be built-in into both the post-clone or pre-Xcodebuild script. The next is an instance of a script that efficiently handles CocoaPods:

#!/bin/bash
curl -sSL https://get.rvm.io | bash -s steady
supply /Customers/native/.rvm/scripts/rvm
rvm set up 2.7.2
rvm use 2.7.2 --default
gem set up cocoapods
pod set up

Guarantee to make the script executable with chmod +x ci_pre_xcodebuild.sh earlier than pushing it to Git. Lastly, within the App Retailer Join’s Xcode Cloud web page to your app, choose ‘Handle Workflows’.

And regulate settings to routinely submit profitable builds to the App Retailer, TestFlight, or for official launch.

My current app, “Simple English Reader,” developed utilizing Xcode-beta and constructed with Xcode Cloud, efficiently handed App Retailer evaluation. This model included a characteristic for adjusting article line spacing.

Debugging Failed Builds:
If a construct fails, go to the report web page in Xcode, choose the failed construct, and look at the logs to determine points and regulate your construct scripts accordingly.

References:

Related Articles

LEAVE A REPLY

Please enter your comment!
Please enter your name here

Latest Articles