I'm trying to upload my app build with Xcode Cloud. It builds and runs fine on the simulator, but when I try to upload to the cloud it keeps failing from Ad-hoc and Developer Distr. (Error code 70)
I have tried/verified:
-Verifying that my workflow archive in Xcode is set to "App Store Connect" (setting it to internal Test flight did not work either)
-TestFlight Internal is set as a Post-Action and I created/added a test group
-All App Store agreements signed and active
-Revoking out-of-date developer certificates (Development Managed)
-Running build from command line (using git pull origin main, git push origin main)
Excerpts of the Error Output (ip addresses censored)
Export archive for ad-hoc distribution
15.9s
Run command: 'xcodebuild -exportArchive -archivePath /Volumes/workspace/tmp/3fe6638a-94b8-4944-8406-0e291469f933.xcarchive -exportPath /Volumes/workspace/adhocexport -exportOptionsPlist /Volumes/workspace/ci/ad-hoc-exportoptions.plist '-DVTPortalRequest.Endpoint=http://172.16.XX.XX:XXXX' -DVTProvisioningIsManaged=YES -IDEDistributionLogDirectory=/Volumes/workspace/tmp/ad-hoc-export-archive-logs -DVTSkipCertificateValidityCheck=YES -DVTServicesLogLevel=3'
Error
Command exited with non-zero exit-code: 70
Another similar error exists for development distribution
Xcode Cloud
RSS for tagAutomate workflows to test, analyze, build, and distribute your app, and integrate them with other developer tools, such as TestFlight and App Store Connect.
Posts under Xcode Cloud tag
123 Posts
Selecting any option will automatically load the page
Post
Replies
Boosts
Views
Activity
Hello!
I have a web extension I've written to Google Chrome and Mozilla Firefox. It's made up of simple files.
The extension (content.js)
A manifest (manifest.json) file which explains the extension
The icon (icon.png)
Apple has developed App Store Connect / Xcode Cloud specifically for this.
I upload those three files as a zip. I move it over to TestFlight for testing and then select Distribution to put it through Apple Review.
This is my entire process.
I have been doing this for 4+ months and Apple reviewed my application and put it up. I have then gone through 13 subsequent reviews (ALL POSITIVE) and have gone through version upgrades for months, no issue.
On the 15th review, they want me to change the name of my application.
I have done that in the content.js, the manifest.json, and anywhere that allows me to change it in App Store Connect.
There is apparently one more place they want it changed. This is on the App Information / General Information tab, specifically the "BundleID". The tip on that field says:
The bundle ID must match the one you used in Xcode. It can't be changed after you upload your first build.
Or, I am not understanding what their issue is or what else I can change. I was told by Review team I must use XCODE to change this.
I tell them I don't use XCode (they demand now I use Xcode, which seems completely irrelevant here and a red herring
The tooltip itself says I can't change it anyway?
Has anyone been told after they released their application they have to change their name later on in life?
Hello,
I am trying out Xcode Cloud for the first time. I could connect to Github in the initial setup and had a few failed builds (package resolution error), which I resolved fairly quickly.
Now whenever I am trying to build, I get the following error:
Xcode Cloud is unable to connect to the repository “<respository-name>”. Reconnect the repository to resume builds.
I am unable to remove the connection from settings as well because it's stuck in a loading state. Is there a way to fix this?
I am getting this issue, whenever I am trying to reconnect XcodeCloud in App Store as the XcodeCloud builds are blocked.
Steps we followed
Go to App Store Connect -> select app -> select Xcode Cloud -> select build
2 we are able to see error message with connect button
Xcode Cloud is unable to connect to the repository “**********”. Reconnect the repository to resume builds.
3. Tapping on connect -> shows a popup with option to authorize in bitbucket -> taping on it, takes us to another window which redirects continuously and nothing happens
Can anyone help me with this
Topic:
App Store Distribution & Marketing
SubTopic:
App Store Connect
Tags:
App Store Connect
Xcode Cloud
I'm currently using another provider for CI/CD. They've been offering Apple Silicon builds for over a year now. When we switched over, we saw our build times cut in half. I've seen similar results locally, back when I bought an M1 Mac.
So, recently, I tried to use Xcode Cloud on my project. My build time is nearly 45 minutes, where my build time on my current system is about 15 minutes, max.
Since I work on a team, and we make regular commits, having a 45 minute turnaround is not ideal. When I looked at the logs of my Xcode Cloud project, I saw a lot "x86_64" stuff in there, which led me to believe that Xcode Cloud is still building on Intel machines.
Additionally, I run tests on my builds. The build time alone (before running tests) was almost 20 minutes. The 15-minute time I cited with my current CI/CD included build time & tests running. So, a whole cycle finishes on my current setup before tests are even run.
I noticed that there was a bunch of x86_64 in the logs, which made me think that Xcode Cloud is still using Intel. Is this true? I've just gotten really used to faster build times, and I can't move onto a system like this, where the times are so drastically different. Like, I wouldn't mind build time that would add only a few more minutes to what I have now. But going from 15 -> 45 minutes is a real problem.
Hello,
I’d like to share an issue we recently experienced with TestFlight and ask whether this behavior is expected.
Environment
App version string: 1.0.0
Multiple builds uploaded via CI/CD
Both external TestFlight testing and internal CI builds exist
Testers had automatic updates enabled in TestFlight
What happened
We uploaded build 1.0.0 (2601161653) and assigned it to an external TestFlight group.
Testers installed this build and were testing normally.
Later, we uploaded a newer build 1.0.0 (5) and reassigned the same external testers to this build.
Testers successfully updated to 1.0.0 (5) and continued testing.
After some time (without any manual action from testers), testers received a system notification saying that:
“The App has been updated. Version 1.0.0 (2601161653) was automatically downloaded and installed.”
When opening TestFlight, the app showed 1.0.0 (5) again as available for update, meaning the device had already been rolled back to 1.0.0 (2601161653).
Additional context
There are many archived builds in App Store Connect due to CI/CD testing.
Some CI builds share the same version string but differ only in build number.
External test groups were only explicitly assigned to build 1.0.0 (5) at the time of the rollback.
Build 2601161653 did not have any external test group assigned at that moment.
No App Store release or metadata changes occurred during this time.
Questions
If a tester’s currently installed build becomes temporarily unavailable (e.g. due to eligibility, internal status changes, or TestFlight processing),
does TestFlight automatically fall back to a previously approved build?
Is this automatic rollback behavior an intended part of TestFlight’s build availability logic, especially when multiple builds with the same version string exist?
Can frequent CI/CD uploads (without consistent external group assignment) influence which build TestFlight considers “eligible” or “latest” for testers?
Summary
From our observation, it appears that when the currently tested build temporarily lost eligibility, TestFlight automatically installed a previous build that was still considered available, even though a newer build existed.
We’d appreciate any clarification on whether this behavior is expected or if there are best practices to avoid this situation when using CI/CD with TestFlight.
Thank you.
My project build failed in Xcode Cloud(works well in my local Mac), and the error shows: Preparing build for App Store Connect failed
The error message is not clear enough to help us find the solution to fix it. Can anyone help with it?
When running a SwiftUI Multiplatform app in Xcode Cloud I'm getting the following error:
CIWatcher encountered an error in CIWatcherTests failed with:
Failed to install or launch the test runner. (Underlying Error: Could not launch “CIWatcherTests”. Runningboard has returned error 5. Please check the system logs for the underlying cause of the error. (Underlying Error: The operation couldn’t be completed. Launch failed. (Underlying Error: Launchd job spawn failed)))
This runs fine on iOS and all those tests pass.
The SwiftUI app on Mac is a menu bar app so I'm not sure if this could be the issue as it's not launching for some reason on the Xcode Cloud system? Maybe I need to add some run option to make this work?
When run locally both iOS and macOS pass all the tests successfully
Export archive step fails in Xcode Cloud when using Xcode 26.2 (17C48) RC.
The same project exports successfully when switching back to Xcode 26.1 in Xcode Cloud workflow settings.
The same project exports successfully when using Xcode 26.2 RC locally.
Projects without Apple Watch app do not encounter this issue (not so sure about this).
From Xcode Cloud UI:
Exporting for App Store Distribution failed. Please download the logs artifact for more information.
Run command: 'xcodebuild -exportArchive ...
Command exited with non-zero exit-code: 70
From xcodebuild-export-archive.log:
error: exportArchive Automatic signing cannot update bundle identifier "io.***.***.watchkitapp".
error: exportArchive No profiles for 'io.***.***.watchkitapp' were found
error: exportArchive Automatic signing cannot update bundle identifier "io.***.***".
error: exportArchive No profiles for 'io.***.***' were found
** EXPORT FAILED **
IDEDistribution: App Store Connect request for store configuration failed for account Session Proxy Provider
(Account "Session Proxy Provider": Unable to authenticate with App Store Connect
(Error Domain=DVTITunesSoftwareServiceFoundation.DVTServicesSessionProviderCredentialITunesAuthenticationContextError Code=1 "(null)"))
DVTServices: Sending request A7605D4E-2892-4B6D-9197-90BD3AB53D67 to <http://172.16.57.4:8089/services/v1/capabilities>
Payload: {"urlEncodedQueryParams":"teamId=984L9QX9X5&filter%5BreferenceType%5D=bundle&filter%5BincludeRequestable%5D=true&limit=200"}
{
"errors": [{
"id": "fb67ecdb-103b-4446-a2db-618fd6bd99e7",
"status": "400",
"code": "PARAMETER_ERROR.INVALID",
"title": "A parameter has an invalid value",
"detail": "A parameter 'filter[includeRequestable]' has an invalid value : ''includeRequestable' is not a valid field name.'",
"source": {
"parameter": "filter[includeRequestable]"
}
}]
}
DVTServices: Could not fetch capabilities from network due to error: error = 'A parameter has an invalid value'
Workaround
Switching Xcode Cloud workflow to use Xcode 26.1 works around the issue.
Using Xcode 26.2 RC locally works around the issue.
Xcode Cloud builds are hanging forever at the final step, Prepare Build for App Store Connect. This is a common issue that requires some fix in Cupertino.
Reporting this in the afternoon of Jan 13, Pacific Time.
Good morning all,
We have an on-premise instance of Bitbucket (v8.19.25), using a custom port. We'd like to try using Xcode Cloud, compare to our current CI/CD provider.
Once I have to select my source control provider to grant access, I select Bitbucket Server. If I try to input the Host Name with, or without a port, I'm receiving this response:
{
"message": "An error occurred",
"details": [
{
"message": "An error occurred",
"source": "host"
}
],
"actions": [],
"recovery_actions": [
{
"dismiss_label": "OK"
},
{
"feedback_label": "Provide Feedback",
"feedback_component": "Xcode Cloud | New Bugs"
}
],
"should_show_error": true
}
Which, of course, doesn't help me in the slightest to understand why the connection fails. I do notice that the request to https://appstoreconnect.apple.com/ci/api/teams/<id>/setup-flow/scm-repositories in the web inspector already includes a host and port that I use to clone the repository locally. However, the web-based interface of Bitbucket doesn't include that port.
So, if I clone a repo: ssh://<bitbucket-instance>:<port>, but if I look at pull requests: https://`.
My colleagues have already determined that there shouldn't be any firewall rules or gateway limits, so Bitbucket should be reachable. No VPN either.
How can I continue to fix this?
After pushing to a branch which is automatically configured to build and distribute on TestFlight, I found no way to log on and check Xcode cloud builds and nothing being pushed to that branch was building or showing up elsewhere in App Store Connect.
Hello Apple Developer Support Team,
I am writing to request assistance with an issue preventing me from distributing my iOS app to the App Store.
I am able to successfully build and archive my app in Xcode without errors. However, after archiving, Xcode only shows the option “Distribute Content” instead of “Distribute App”. Because of this, I am unable to upload the app to App Store Connect.
App & Account Details
• App Bundle Identifier: com.yesbuy.yesbuyapp
• Team Name: Fathima Sayed Mohamed
• Team ID: Z327MG963D
• Xcode Version: 26.2
• macOS Version: macOS 15.6.1
Signing & Certificates
• Signing Method: Automatically manage signing (enabled)
• Signing Certificate (Release): Apple Distribution: Fathima Sayed Mohamed
• Provisioning Profile: Xcode Managed / App Store Distribution
• Archive Status: Build succeeded
What I’ve Already Verified
• The archive is created using Release configuration
• Skip Install is set to No for the main app target (Runner)
• The app target is selected correctly during Archive
• A valid Apple Distribution certificate exists
• The app is registered correctly in App Store Connect
• App Groups and capabilities are configured correctly
• Notification Service Extension is present and signed
Despite all of this, Xcode still treats the archive as a Generic Xcode Archive and only allows Distribute Content, not Distribute App.
I have attached screenshots showing:
1. Xcode Archives screen (showing “Distribute Content” only)
2. Signing & Capabilities for the app target
3. Certificates and provisioning profiles
4. Team ID and bundle identifier configuration
Could you please review this issue and let me know:
• Why the archive is not recognized as an App Store–distributable app
• Whether there is any account, certificate, or configuration issue on Apple’s side
• Any steps I should take to resolve this and successfully upload the app to App Store Connect
Thank you very much for your time and support. I look forward to your guidance.
Topic:
App Store Distribution & Marketing
SubTopic:
General
Tags:
App Store
Xcode Cloud
Developer Program
Hello,
Our Xcode Cloud builds are successfully archiving but fail every time during the "Export archive for app-store distribution" step. The issue appears to be a persistent authentication failure with App Store Connect that we are unable to resolve.
Primary Error:
The build logs show a critical authentication failure.
IDEDistribution.critical.log shows: App Store Connect request for store configuration failed for account Session Proxy Provider... Unable to authenticate with App Store Connect.
DVTITunesSoftwareService.log specifies the error is DVTITunesSoftwareServiceFoundation.DVTServicesSessionProviderCredentialITunesAuthenticationContextError.proxy.
The build process eventually terminates during the IDEDistributionSymbolsStep with an Rsync failed error, which we believe is a symptom of the earlier authentication failure.
Troubleshooting Already Performed:
We have already taken the following steps without success:
Verified the account used for the integration has "Account Holder" and "Admin" roles.
Confirmed that Xcode Cloud's automatic signing is working correctly and is able to create new provisioning profiles.
Thoroughly checked the App Store Connect web UI under Users and Access > Integrations > Xcode Cloud for a way to reset the connection, but no such option exists.
Removed and re-added the Apple ID in the Xcode application's settings (Xcode > Settings > Accounts) on a local Mac.
Our hypothesis is that the integrated authentication session between Xcode Cloud and App Store Connect is invalid or stale, and there is no user-facing way to reset it.
Has anyone else encountered this "Session Proxy Provider" authentication error with Xcode Cloud? Is there a known solution or a different method to force a re-authentication of the service connection?
Any guidance from Apple engineers or other developers would be greatly appreciated.
(Developer Support Case: 102717975870)
Topic:
App Store Distribution & Marketing
SubTopic:
App Store Connect
Tags:
App Store Connect
Continuous Integration
Xcode Cloud
Since Dec 18th, my Xcode Cloud builds (for multiple apps) have been failing with this error:
Command line name "app-store" is deprecated. Use "app-store-connect" instead.
I haven't made any changes to my system, signing, etc, and two separate apps started failing at the same time. No matter what I change on my Workflows (environment, new workflow from scratch, etc), nothing seems to fix it, which leads me to believe this is a bug with Xcode Cloud itself.
I've logged FB21456291 already, but just wanted to post here to see if I'm missing something.
Hi everyone,
After opting out of Xcode Cloud, I tried to set it up again for my product.
However, I’m getting the following message when attempting to reconnect to my source control provider:
"Connecting Xcode Cloud with your source control provider was incomplete.
Products cannot be configured to use Xcode Cloud while your team’s opt-out request is being processed."
It’s been 7 days since I opted out, and I still haven’t been able to re-enable Xcode Cloud.
I’ve tried reconnecting both GitHub and Bitbucket, but the same message appears in both cases.
I’d like to know:
How long does the opt-out (deregistration) process usually take to complete?
Is there any way to check the current status or expedite the reactivation process?
Team Type: Organization
Region: Japan
Any insights or similar experiences would be greatly appreciated.
Thank you in advance!
I’m trying to integrate our app with the iXGuard obfuscation tool, which needs to run in the archive post-actions step in Xcode Cloud. The issue is: iXGuard takes a long time to complete and, during its execution, does not generate any console output or logs in the Archive Post-actions step.
Problem:
When Archive Post-actions runs for a long time without producing log output, Xcode Cloud triggers a timeout and the workflow stops before running the next CI step (e.g., ci_post_xcodebuild.sh). Even though the script continues running in the background, the workflow is aborted due to inactivity in the logs.
Workaround Tried:
As a workaround, I have ci_post_xcodebuild.sh print the logs generated by archive post-actions. However, this does not help in my case since the timeout occurs before ci_post_xcodebuild.sh even runs.
Error:
The step invocation hit a user timeout. The xcodebuild archive invocation timed out. No activity has been detected on stdout, stderr or the result bundle in 30 minutes.
Question:
Is there a recommended way to prevent Xcode Cloud from timing out during long-running steps that do not produce log output?
Are there best practices for keeping the workflow alive with periodic logs during Archive Post-actions?
Any support or workaround for integrating tools like iXGuard that require significant processing time after the archive step?
Thanks in advance for your help!
Hello guys, recently I integrated a third-party library into my code to handle blur effects (Glur). This library leverages Metal's compute capabilities and appears to automatically depend on the Metal toolchain during the build process. When using Xcode Cloud, the archive step consistently fails with a "CompileMetalFile Failed" error. However, when I manually archive the project in Xcode locally, everything works fine without any issues. I’ve confirmed that the macOS and Xcode versions specified in my Xcode Cloud workflow are correct. Reply if you know how to fix it or it will be fixed future, thanks.
I'm using Xcode 26.2(17C52) and macOS(15.7.1 (24G231))
Hi everyone,
Starting today, my Xcode Cloud CI workflow can no longer successfully build iOS/macOS/visionOS targets. The Archive step does not report any errors, but the xcodebuild command hangs indefinitely and eventually fails with the following message:
The step invocation hit a user timeout. The xcodebuild archive invocation timed out. No activity has been detected on stdout, stderr or the result bundle in 30 minutes.
My iOS and macOS targets can still be built, but the build time has increased by 2-3x compared to before. That's interesting. After I removed the visionOS target, the iOS target also failed to build.
Additionally, since today, I’ve noticed a significant increase in network-related errors in Xcode Cloud. There have been multiple failures to download dependencies from Homebrew or GitHub.
I have confirmed that CI versions which previously built successfully are now failing, while running the same build commands locally works fine. Based on these observations, I suspect there may be an issue with the Xcode Cloud environment itself.
Has anyone else encountered similar problems? Any suggestions or updates would be appreciated!
Thanks!
Hi,
Since Xcode 26.2 beta 1, till now (I thought RC or actual release will solve this issue) I have problems exporting archive to appstore via Xcode Cloud (locally everything works and using Xcode 26.2 I was able to submit app to AppStore).
Build is archived successfully but during export I get an error Exporting for App Store Distribution failed. Please download the logs artifact for more information.
In xcodebuild-export-archive.log I see multiple attempts & errors like this
2025-12-13T08:29:34.040644840Z 2025-12-13 00:29:33.900 xcodebuild[10889:58988] DVTServices: Sending request 9A4173F4-CD87-4A76-95FC-501B4D11EF22 to <http://172.16.55.70:8089/services/v1/capabilities> for session DVTFoundation.DVTServicesSessionProxy.
2025-12-13T08:29:34.040647258Z Method: POST
2025-12-13T08:29:34.040648780Z
2025-12-13T08:29:34.040650230Z Headers:
2025-12-13T08:29:34.040651730Z {
2025-12-13T08:29:34.040653539Z Accept = "application/vnd.api+json";
2025-12-13T08:29:34.040655403Z "Accept-Encoding" = "gzip, deflate";
2025-12-13T08:29:34.040673847Z "Content-Length" = 124;
2025-12-13T08:29:34.040675883Z "Content-Type" = "application/vnd.api+json";
2025-12-13T08:29:34.040677903Z "User-Agent" = Xcode;
2025-12-13T08:29:34.040681998Z "X-HTTP-Method-Override" = GET;
2025-12-13T08:29:34.040684468Z "X-Xcode-Version" = "26.2 (17C52)";
2025-12-13T08:29:34.040686326Z }
2025-12-13T08:29:34.040688028Z
2025-12-13T08:29:34.040689711Z Payload:
2025-12-13T08:29:34.040692163Z {"urlEncodedQueryParams":"teamId=8CKLLLC9UE&filter%5BreferenceType%5D=bundle&filter%5BincludeRequestable%5D=true&limit=200"}
2025-12-13T08:29:34.308538247Z 2025-12-13 00:29:34.208 xcodebuild[10889:58988] DVTServices: Received response for 9A4173F4-CD87-4A76-95FC-501B4D11EF22 @ <http://172.16.55.70:8089/services/v1/capabilities>. Code = 0
2025-12-13T08:29:34.308555026Z 2025-12-13 00:29:34.208 xcodebuild[10889:58988] DVTServices: Response payload: {
2025-12-13T08:29:34.308557639Z "errors" : [ {
2025-12-13T08:29:34.308569919Z "id" : "0316154c-332b-4f9d-a90a-5770d4f8dc1a",
2025-12-13T08:29:34.308573588Z "status" : "400",
2025-12-13T08:29:34.308575871Z "code" : "PARAMETER_ERROR.INVALID",
2025-12-13T08:29:34.308578343Z "title" : "A parameter has an invalid value",
2025-12-13T08:29:34.308581767Z "detail" : "A parameter 'filter[includeRequestable]' has an invalid value : ''includeRequestable' is not a valid field name.'",
2025-12-13T08:29:34.308584989Z "source" : {
2025-12-13T08:29:34.308587270Z "parameter" : "filter[includeRequestable]"
2025-12-13T08:29:34.308589531Z }
2025-12-13T08:29:34.308591437Z } ]
2025-12-13T08:29:34.308593381Z }
2025-12-13T08:29:34.308595389Z
2025-12-13T08:29:34.308597297Z
2025-12-13T08:29:34.308600188Z 2025-12-13 00:29:34.208 xcodebuild[10889:58988] DVTServices: Could not fetch capabilities from network due to error: error = 'A parameter has an invalid value'
When I use Xcode 26.1.1 to export the same commit, eveything works and workflow sends build to AppStoreConnect, any ideas what might cause this issue? Unfortunately I need to use Xcode 26.2 if I want to use tabViewBottomAccessory(isEnabled:content:) bcs even though this api is available since iOS 26.1, it's not available in Xcode 26.1
Topic:
Developer Tools & Services
SubTopic:
Xcode Cloud
Tags:
Entitlements
Provisioning Profiles
Xcode Cloud