I am part of a personal team where I have admin credentials. The account holder created a workflow when initializing Xcode Cloud but I can't see it in my App Store Connect. So I tried to create another workflow but when I do, I get the error "User does not exist". This is very annoying for us.
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.
Post
Replies
Boosts
Views
Activity
Having an issue today where archives on Xcode Cloud are failing at the Code Signing step. The error reported by Xcode Cloud has been one of the 2 following:
502 error from developerservices2.apple.com
Unexpected character 'u' (I assume this is in some way related to the HTTP failure above, but please correct me if I'm wrong)
Sometimes they even appear together, with the HTTP error as a warning and the unexpected character as the error
I assume this is some kind of Xcode Cloud / developer tools outage. I saw another post on the forum from 3 weeks ago that reported the same errors coming from Xcode Cloud. I also saw that there is a "Resolved Outage" with Xcode Cloud from 8/19 (maybe that is related)?
Has anyone found a way around this? Any updates on when this will be resolved? It has been happening for us consistently since the first Xcode Cloud archive that we ran today (around 10AM EDT).
I am using Xcode Cloud to build my Mac Catalyst app for Developer ID Distribution as a DMG package that must be codesigned and notarized. I have a ci_post_xcodebuild.sh script that runs after the Archive action.
This needs to perform the following tasks:
Produce a DMG from the provided exported archive located at CI_DEVELOPER_ID_SIGNED_APP_PATH
Codesign that DMG using the same certificate identity that Xcode Cloud used when automatic code signing the exported archive using cloud signing.
Notarize that code signed dmg with the notary service
Generate a Sparkle appcast.xml file
Upload the DMG and appcast.xml file to s3
The issue I am having is that I do not have access to the cloud signing keychain identity that Xcode Cloud uses to automatically codesign the exported archive.
I check for identities and none are found. Running:
security find-identity -v -p codesigning
There are no code signing identities available. Make sure you have a "Developer ID (Application)" certificate (with the private key) installed on your Mac with Keychain Access.
How can I access the cloud signing identity in this script so I can sign my DMG file before notarizing it?
I am currently experimenting with installing my own certificate in the build server keychain and run my own archive + export commands after the Build action completes. This is not ideal.
Thanks,
Andrew
I have registered a webhook URL but for every event triggered, my webhook URL does not receive any POST request.
In my App Store Connect Xcode Cloud > Webhook Setting, I can see all the webhook failed to send, they all returned `Unexpected response code for CONNECT: 403
`
I tried testing my webhook URL from Postman, it works fine, but not from Xcode Cloud Webhook.
Recently I noticed that when I build and archive my app with Xcode Cloud, it fails due to code signing issue. But that's weird because I have all development and distribution certificates. Does anyone have any idea how to solve this?
Hi all,
I have a UI Automation Test suite with a large number of test cases, that typically takes me 7 hours to run. When I setup the workflow on XCode cloud, I received the following error - "Build has exceeded the maximum allotted time. Each build can run for up to 120 minutes. If a build has not yet finished at this time, all incomplete actions will be cancelled."
Is there any way to extend the build time?
What is a build? I have two actions in my workflow. Build Action (that took 3 minutes) and the test step that took 2 hour 4 minutes. Am not clear how the 120 minute window is calculated.
My app requires NodeJS to build (a Cordova app). Can I even use XCode Cloud to build it? Can I run Docker containers, or can I install NodeJS via a prebuild script?
(BTW I'm only looking into this service as alternative to my existing Gitlab-CI + fastlane because I have been unable to automate my iOS app build due to all the signing/provisioning BS that apple requires! )
Hi,
I am trying to setup a workflow for my project and I am not able to get to the "Grant Access" step. After I click "Next" on the workflow, I see a "Grant Access to Your Source Code" window with "Loading source code repositories" message and a loading spinner. I see an error "This operation could not be completed". Clicking OK will just show me the previous Loading message.
My XCode is configured with our GitHub account. The lack of any error or steps for resolution is not helping. How do I proceed?
Hello, I am getting the following error in Xcode Cloud:
/Volumes/workspace/repository/macos/Runner.xcodeproj: error: No signing certificate "Mac Development" found: No "Mac Development" signing certificate matching team ID "22649D52Q5" with a private key was found. (in target 'Runner' from project 'Runner')
I have automatic signing turned on in Xcode and the program compiles/runs fine in Xcode.
Below is my ci_post_clone.sh script
#!/bin/sh
# Fail this script if any subcommand fails.
set -e
# The default execution directory of this script is the ci_scripts directory.
cd $CI_PRIMARY_REPOSITORY_PATH # change working directory to the root of your cloned (cloud) repo.
# Install Flutter using git.
git clone https://github.com/flutter/flutter.git --depth 1 -b stable $HOME/flutter
export PATH="$PATH:$HOME/flutter/bin"
# Install Flutter artifacts for iOS (--ios), or macOS (--macos) platforms.
flutter precache --macos
# Install Flutter dependencies.
flutter pub get
# Install CocoaPods using Homebrew.
HOMEBREW_NO_AUTO_UPDATE=1 # disable homebrew's automatic updates.
brew install cocoapods
# Install CocoaPods dependencies.
cd macos
pod deintegrate
pod update
cd ..
# Install Flutter dependencies.
flutter pub get
dart run build_runner build -d
# flutter build macos
flutter build macos --release
The Archive - iOS action could not complete due to an error. The error may not occur on rebuild.
I am using xcode cloud with version xcode 15.
I can build successfully but archive gets fail . Even don't getting any error. Please help me.Thanks in advance.
Hi,
There is a status check in XCode Cloud and I've been trying to upload new builds from local machine to testFlight.
Archive success
Uploading success
However TEST FLIGHT is not showing new builds.
Do you face such an issue ?
We have all of our CD except for deploys in another provider for the moment. From that provider (Github Actions), we want to use the API to kick off a deploy/archive workflow. We're using the new manual start condition that gets called if everything else in our pipeline passes. However, it's not clear how to specify which branch to run the workflow on. I know you can get the ScmGitReference when the workflow is already running on a branch based off of other start conditions, but I want to allow the deploy to run on any branch, theoretically, and control whether the deploy workflow gets kicked off or not from my third-party location. How do I do this?
Hi, When a workflow is started, its taking more than an hour to start the actual archive and in all this time its stuck in the queue. When it starts after more than an hour, the archive is also taking more than 30 minutes and once this whole process reaches 2 hours, it just fails with this error,
Build has exceeded the maximum allotted time. Each build can run for up to 120 minutes. If a build has not yet finished at this time, all incomplete actions will be cancelled.
I have been using Xcode cloud for long time now but never experienced such behavior before. What is the issue?
Hello!
I am new to creating workflows in Xcode cloud. I have a problem I'm trying to solve.
In my ci_post_clone script I trigger a job in github. I need to keep track of the generated id in order to shut down the job in my ci_post_xcodebuild script.
What is the best way to do that? I tried assigning to a env variable and outputting the value to a file but it seems like ci_post_xcodebuild runs in a fresh env and can't find my variable.
Any help would be really appreciated.
We are experiencing an ongoing issue with Xcode Cloud where builds take up to 90 minutes to queue and then take more than the maximum timeout to finish, leading to an error. Typically the Test Actions will finish the xcodebuild command, but then fail to begin executing tests. No errors are displayed in the logs.
I'm waiting over 1 hour 20 minutes to start build task
When exporting an archive....
NSLocalizedDescription=Communication with Apple failed, NSLocalizedRecoverySuggestion=A non-HTTP 200 response was received (504) for URL https://developerservices2.apple.com/services/QH65B2/listTeams.action?clientId=[redacted]
I'm using Xcode Cloud for release builds and unit tests, and it works fine. Recently, I added some XCUITests, but to run it the way I need I started to use this mock server. Basically, the idea is you define before each test what responses you want to get for specific requests. It works like a charm locally. But if I want to run it in Xcode Cloud, it looks like the server has failed to launch. The mock server is a separately launched binary file. I think this is because this permission I get when launch it locally.
So, my question is how to allow this kind of permission in Xcode Cloud to make my UITests works correctly?
You can find a detailed instruction how server is launched on a github page I provided.
The answer to my question is probably very simple but I've spent twelve hours trying to find it myself and I am at my wit's end. Searching the web shows multiple sufferers from, and multiple answers to, this same problem from at least ten years ago.
I've a SwiftUI macOS/iOS app that is not finished but at a stage where I want to get it ready for TestFlight. I set it up on App State Connect and set Xcode Cloud to build it on GitHub commits.
The first build revealed some obvious omissions, easily fixed, then I hit this one, for macOS: Missing required icon. The application bundle does not contain an icon in ICNS format, containing both a 512x512 and a 512x512@2x image.
[In passing, I'll note the app, passes muster for the iOS platform]
I make a 1024x1024 PNG .. convert it to ICNS with GraphicConverter .. convert it again with iconutil to a iconset and add it to my app. I do a regular build in Xcode and, there it is, my .icns file in the app bundle.
I commit to fire off another Xcode Cloud build, but get the same error. Especially frustrating because I can see the ".. application bundle does contain an icon in ICNS format, containing both a 512x512 and a 512x512@2x image".
It's hard to debug from an abundantly obvious incorrect diagnostic, but I do have to get past this and start fiddling with assorted settings .. ten builds later, still no joy.
I did notice that my Info.plist file (autogenerated) doesn't contain the string "icon" and that, for example, Mail.app has:
<key>CFBundleIconFile</key>
<string>ApplicationIcon</string>
<key>CFBundleIconName</key>
<string>ApplicationIcon</string>
If the build process checks for an icon based on the Info.plist contents then the reported error could be more correct, ".. application bundle's Info.plist file makes no reference to an icon in ICNS format .."
One possible complication is that my app includes embedded custom fonts and so it need a Fonts.plist file for them. I set that file as my INFOPLIST_FILE
<key>UIAppFonts</key>
<array>
<string>Zerlina.otf</string>
<string>Gorton-Condensed.otf</string>
<string>Gorton-Normal-180.otf</string>
<string>Gorton-Normal-120.otf</string>
</array>
<key>ATSApplicationFontsPath</key>
<string>.</string>
The contents of Fonts.plist are copied to the final Info.plist. Maybe that defeated some of the Info autogeneration? I see no setting for CFBundleIconFile so can't add it myself.
I'm confident pressing "Submit" on this will suddenly clear my mental murk but, for now, I need help .. thanks for any ..
Hey,
Being on MacOS Beta, I would like to use Xcloud Cloud for submitting my App.
It's an VisionOS App, but when I trying to build with Xcode Cloud, I get this error :
Missing package product 'RealityKitContent'
How can I resolve it ?
Thanks, PAB.