Xcode Cloud

RSS for tag

Automate workflows to test, analyze, build, and distribute your app, and integrate them with other developer tools, such as TestFlight and App Store Connect.

Xcode Cloud Documentation

Posts under Xcode Cloud tag

169 Posts
Sort by:
Post not yet marked as solved
3 Replies
496 Views
Today, playing with Xcode cloud I came across a really nasty, undesirable effect of executing steps in an undocumented order. I had a project with a brand new workflow, I had it linked to my SCM (gitlab self-hosted) and it worked. Today, it didn't work so I thought, OK, this thing is beta and something must not be working that well, let's reset everything and start over. I deleted the workflow, then cleared the Xcode cloud data (this removes everything from your Xcode cloud tabs on your product and, unfortunately, from your profile as well). Then proceed to navigate to your profile to unlink the SCM connection and it appears to be empty. Because of this, I removed my application in gitlab (which is the token provider for oath) to start again, thinking I did something wrong and I want to follow the steps brand new again. I went to Xcode, tried to create a new workflow and link my source control provider and... I get a "continue to authorise your repository" button, which is now broken because that application doesn't exist. The question is, does anybody know of a way to unlink my SCM from my account? The Xcode cloud tab under my profile tells me I need to create a workflow to access anything from there, but I am completely unable to complete that creation as the workflow requires it to be connected to a self hosted instance. This was extremely easy to get wrong.
Posted
by
Post not yet marked as solved
1 Replies
839 Views
Hi, My name is Bin, software engineer at VBreathe in Sydney. We have a mobile app developed in Ionic Angular framework and managed to use xcode cloud to build and deploy the app to TestFlight. It worked well, but the speed is a bit slow, takes around 1 hour to finish the build. After checking the logs, the ci_post_clone.sh script took over 20 minutes to finish, because it installs bunch of tools and node packages, which are necessary to build the app. My question is that is there a way to cache these tools and node packages on xcode cloud, so no need to download & install them in every build? Cheers, Bin
Posted
by
Post not yet marked as solved
0 Replies
191 Views
When we provide gitlab API key & secret in xcode cloud using an appstoreconnect account, will other appstoreconnect user be able to access that source code using that key/secret info?
Posted
by
ksf
Post not yet marked as solved
0 Replies
280 Views
Hey i have been trying to test out Xcode cloud integration with our project code base hosted in bitbucket cloud. But i can seem to get ti to work correctly. Eg : i have set up a work flow for Every Change to pull request and added a target branch, but the work flow doesn't get triggered at all. Only when i do a manual In addition some for the Xcode 13 source code management features don't seem to work like viewing and raising pull requests etc. As you can seen below no option for create pull request Is butbucket cloud fully supported or am i missing something here
Posted
by
Post not yet marked as solved
0 Replies
265 Views
It is not clear on what architecture Xcode cloud executes Mac tests. Ideally, I would like to run a test on both platforms and compare the results. Am I missing something or is this just not there yet?
Posted
by
Post not yet marked as solved
0 Replies
187 Views
Hello, We got invited to the Xcode Cloud beta and I added one of our projects. It looks like the archive succeeds but it always reports an error. How can I get this looked at? Thank you
Posted
by
Post not yet marked as solved
0 Replies
289 Views
When I first create workflow, I want to connect my source code to bitbucket server, but I was stuck in connecting step, just look the images below. I keep getting 500 error. How can I connect to Github or Gitlab? I can't find a way to switch or change, please help me, thank you.
Posted
by
Post not yet marked as solved
1 Replies
307 Views
I am trying to run macOS unit test on XCode Cloud, but failed with following message. It runs smoothly locally on my Mac. Tests macOS-Runner (29166) encountered an error (Failed to check for UI testing permission for the test runner process. If you believe this error represents a bug, please attach the result bundle at /Volumes/workspace/resultbundle.xcresult. (Underlying Error: Unable to run UI Tests because Xcode Helper does not have permission to use Accessibility. To enable UI testing, go to the Security & Privacy pane in System Preferences, select the Privacy tab, then select Accessibility, and add Xcode Helper to the list of applications allowed to use Accessibility))
Posted
by
Post marked as solved
2 Replies
625 Views
I have uploaded iOS and macOS builds with Xcode Cloud, and I can't pass "ready to submit" status. A internal testing group is grayed and I can't select it. External testing group don't show. Trying to add an individual and hit "submit to review" I get "There was an error processing your request. Please try again."
Posted
by
Post not yet marked as solved
10 Replies
1k Views
Frequently when Xcode builds our app we end up (after two hours) getting a build failure: The archive action was stopped because it has exceeded the maximum time allowed to run. Actions are limited to 120 minutes. Other times, it completely successfully in about 35 minutes. It seems to randomly happen. Is this a known issue?
Posted
by
Post not yet marked as solved
1 Replies
526 Views
I see that the cache function is not working. I want to cache some build folders, cocoapods,...Please help me. Thanks!
Posted
by
Post not yet marked as solved
3 Replies
1.5k Views
Hello! I am trying to use the new Xcode 13 Cloud Signing feature (authenticationKeyPath & friends) to archive (and eventually upload) my iOS app via a CI service (GitHub actions in this case). My xcodebuild invocation is as such: xcrun xcodebuild archive \ -workspace '/path/to/MyApp.xcworkspace' \ -scheme 'MyApp - App Store' \ -archivePath '/path/to/output.xcarchive' \ -allowProvisioningUpdates \ -authenticationKeyID 'KEY_ID_HERE' \ -authenticationKeyIssuerID 'ISSUER_ID_HERE' \ -authenticationKeyPath '/complete/path/to/key.p8' \ -destination 'generic/platform=iOS,name=Any iOS Device' The first run on CI with this invocation succeeds! The second run (i.e. on a clean machine) outputs this error: error: Revoke certificate: Your account already has an Apple Development signing certificate for this machine, but its private key is not installed in your keychain. Xcode can create a new one after revoking your existing certificate. (in target 'MyApp' from project 'MyApp') The "Certificates, Identifiers, & Profiles" page does, indeed, list a certificate created by the API key in question. If I revoke this certificate, the next build succeeds and the one after that fails. I thought the idea with Cloud Signing was to keep from manually installing certificates & provisioning profiles. Am I misunderstanding something? Is there a modification I can make to this command to make it succeed? Do I need to manually create & install development certificate? Xcode version: 13.2 beta 2 macOS version: 11 (macOS 12 is not yet supported on GitHub actions) API key: has admin role (As a sidenote: I have tried Xcode Cloud, but it suffers random failures & long build times, plus it won't work for all my apps. So that's not currently a viable alternative for me.)
Posted
by
Post not yet marked as solved
1 Replies
547 Views
So I have a problem setting up Xcode Cloud workflow. I have a Mapbox SDK in my project and in order for spm to install Mapbox SDK it needs to have password in the .netrc file. I have a ci_post_clone script which looks like this: touch ~/.netrc echo "machine api.mapbox.com\n\   login mapbox\n\   password MY_TOKEN" >\ ~/.netrc It successfully runs: But when it tries to resolve the packages it fails due to Mapbox not being able to find the password in .netrc file for some reason. I guess the .netrc file can be edited by using sudo only, but there should be a workaround, if you know of some please help! I understand that it's not quite an error of Xcode cloud but I think there should be a way to edit .netrc in the workflow. Thank you!
Posted
by
Post not yet marked as solved
2 Replies
407 Views
When setting up my first workflow, I am prompted to grant XCode Cloud access to our BitBucket Server. I press Grant and appstore connect opens up and prompts me to enter a personal access token. After adding that token and pressing register, the button spins for a bit, then stops and an error in the Javascript console appears (500-Aborted). We've added the necessary IPs to our Firewall whitelist but still no luck. Does anyone know how to solve this? Thanks!
Posted
by
Post marked as solved
1 Replies
360 Views
Our company is using GitHub Enterprise, and we must use VPN to connect to the organization or any repo. Because of this, Xcode Cloud seems to not be able to identify our GitHub URL. The URL doesn't end with github.com, so I can see just Unknown label on Grant Access window. So that I can't do next step like create GitHub app for repo. What should I do? Is there any support for this? or will be?
Posted
by
Post not yet marked as solved
1 Replies
339 Views
Trying to get XCUI testing builds running. Test Fails with a screenshot showing the "Use Bluetooth" popup but app is not visible in it, only icon on the springboard. Perusing the logs the only helpful line I can find is: *** Terminating app due to uncaught exception 'Halted', reason: 'Protection is missing from non-development build' *** I could not find any information about this crash via Google. I originally had done a Debug build, tried with a Release build and same result. The crash report didn't really have anything useful either, excerpt: Exception Type: EXC_CRASH (SIGABRT) Exception Codes: 0x0000000000000000, 0x0000000000000000 Exception Note: EXC_CORPSE_NOTIFY Triggered by Thread: 0 Application Specific Information: abort() called Thread 0 name: Dispatch queue: com.apple.main-thread Is this related to the entitlements and Data Protection? Any other ideas?
Posted
by
Post not yet marked as solved
2 Replies
498 Views
Hi, I'm trying out Xcode Cloud but can't get it to build in my scenario. The use case is the following: My project has multiple swift packages that depend on each other. "App" has a local package dependency called "SPMKit". "SPMKit" has a local package dependency called "SPMKit2". The issue I run into is if "SPMKit2" has any dependencies, it doesn't resolve in Xcode Cloud. Are local dependencies like this not supported in Xcode Cloud? All the packages are in the same directory as my app. I'd like to not have to put each package in it's own git..
Posted
by
Post not yet marked as solved
0 Replies
208 Views
We are deploying development builds on a staging environment with multiple feature branches. Using testflight is very handy for our team, but we have a real issue in identifying which build is using which branch. Currently, I have to manually write in the "Test Details" for every build that i upload if i want to let other testflight users from the team know what feature is on what build. This would be easily solved by having an option to automatically use the branch name as the default "Test Details" message, so they can easily be identified in Testflight among the builds list. Is there any plan to add such an option?
Posted
by
Post not yet marked as solved
1 Replies
308 Views
Xcode Cloud seems to be stuck at Xcode 13.2 beta 2 even if the release candidate (13C90) came a week ago and got realeased yesterday. It builds fine but the builds are rejected by App Store Connect because they were built with an obsolete version. Any tricks to convince Xcode Cloud to use the Xcode 13.2 (13C90)?
Posted
by
Post not yet marked as solved
0 Replies
244 Views
We're getting this error with Xcode Cloud, it is failing due to SSL issues while it's passing locally and works fine on another CI platforms with Instabug’s deployment server. Here's the error xcodebuild: error: Could not resolve package dependencies: failed downloading 'https://ios-releases.instabug.com/release/Instabug/10.11.0/archive.zip' which is required by binary target 'Instabug': downloadError("Error Domain=NSURLErrorDomain Code=-1200 \"An SSL error has occurred and a secure connection to the server cannot be made.\" UserInfo={NSErrorFailingURLStringKey=https://ios-releases.instabug.com/release/Instabug/10.11.0/archive.zip, NSLocalizedRecoverySuggestion=Would you like to connect to the server anyway?, _kCFStreamErrorDomainKey=3, _NSURLErrorFailingURLSessionTaskErrorKey=LocalDownloadTask <E64EE5B2-BC4A-4181-A386-6AC2BBD8FBF6>.<1>, _NSURLErrorRelatedURLSessionTaskErrorKey=(\n \"LocalDownloadTask <E64EE5B2-BC4A-4181-A386-6AC2BBD8FBF6>.<1>\"\n), NSLocalizedDescription=An SSL error has occurred and a secure connection to the server cannot be made., NSErrorFailingURLKey=https://ios-releases.instabug.com/release/Instabug/10.11.0/archive.zip, NSUnderlyingError=0x600001f31f80 {Error Domain=kCFErrorDomainCFNetwork Code=-1200 \"(null)\" UserInfo={_kCFStreamPropertySSLClientCertificateState=0, _kCFNetworkCFStreamSSLErrorOriginalValue=-9836, _kCFStreamErrorDomainKey=3, _kCFStreamErrorCodeKey=-9836, _NSURLErrorNWPathKey=satisfied (Path is satisfied), viable, interface: utun3, ipv4, dns}}, _kCFStreamErrorCodeKey=-9836}") fatalError
Posted
by