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

163 Posts
Sort by:
Post not yet marked as solved
1 Answers
35 Views
Flutter app encountered many problems when using Xcode cloud, I don't know how to configure the environment variables of flutter, problem with "Chmod +x", Is it configured in "ci_post_clone.sh"?
Posted
by danbb.
Last updated
.
Post not yet marked as solved
2 Answers
108 Views
I've done the first step for connecting the Xcode cloud with GitLab, I've followed the instructions available on this link https://developer.apple.com/documentation/xcode/connecting-xcode-cloud-to-a-self-managed-gitlab-instance But I accidentally deleted the app created on GitLab ( step 8 on link above), then I can't restart the process in Xcode Cloud. Let me show the problem better... Every time that I clink on button "Grant Access" in Xcode tool, I'm redirect to this site: When I click on blue button, it happens on GitLab settings: Because I deleted the settings. Then, I need to go back to step 1 of 2 and set up again. How can I restart the process ?
Posted
by ramoncruz.
Last updated
.
Post not yet marked as solved
0 Answers
23 Views
Hi, Having set up Xcode Cloud workflows being run from a tag, I wanted to automate release-notes generation for a release. I came up with the following script: git log --pretty=format:%s git tag -l --sort=-v:refname "{CI_TAG}*" | head -1...git tag -l --sort=-v:refname "${CI_TAG}*" | head -2 | awk '{split($0, tags, "\n")} END {print tags[1]}' > release-notes.txt Markdown messes it up a bit with a format of this script. Anyways, I ran it in with test values instead of CI_TAG and it does what I need. The script is working and generates an appropriate output to the file. However, when it's added to ci_post_xcodebuild.sh or even at Build Phases it always results with an empty release-notes.txt file. Why does it happen this way? What's going wrong?
Posted
by peachmood.
Last updated
.
Post not yet marked as solved
0 Answers
75 Views
The Situation Our SwiftUI project uses three Swift packages (hosted on GitHub in private repositories): a custom UIKit package a custom BackendKit package a custom ApplicationKit package From the filesystem perspective it looks like this: OurApplication/ CustomUIKitPackage/ CustomBackendKitPackage/ CustomApplicationKitPackage/ I added all three packages as local dependencies (because we need to edit them constantly) by dragging their folders into the project workspace. In the Xcode project navigator they are now under a Packages group. I also added remote dependencies for all three packages to the Xcode project by using their git@github.com:... URL. Access to these three private repos are already granted. The Problem With this configuration I can work on the project and on all three packages as well. I can make changes, run tests, all the stuff - No problem. Triggering an Xcode Cloud build it will always fail saying something weird of: an out-of-date resolved file was detected at /Volumes/workspace/repository/MY_PROJECT.xcworkspace/xcshareddata/swiftpm/Package.resolved, which is not allowed when automatic dependency resolution is disabled; please make sure to update the file to reflect the changes in dependencies. Running resolver because the following dependencies were added: 'CustomBackendKitPackage' (git@github.com:MY_COMPANY/CustomBackendKitPackage.git)xcodebuild: error: Could not resolve package dependencies: Removing all three local dependencies out of MY_PROJECT/Packages/*, pushing everthing to GitHub and running an Xcode Cloud build again, it works as expected. All three remote dependencies with its git@github.com:... URLs are being used correctly and the Xcode Cloud build turns green. The Question How do I configure Xcode correctly so that I have my local packages for development at the same time as Xcode Cloud uses the remote references?
Posted
by woodbytes.
Last updated
.
Post not yet marked as solved
2 Answers
80 Views
I have configured multiple test plans, I see them in the scheme editor. I have marked one as default. Now I would like to choose a specific one for the Xcode Cloud Test action, but there is only the option "Use Scheme Settings". The Test Action in the workflow The Test Plans in the Scheme
Posted Last updated
.
Post not yet marked as solved
1 Answers
79 Views
Hello, my name is David. I'm trying to test XCode Cloud with Version 14.0 beta (14A5228q) in a MacBookPro. I have an issue: as a developer with my Apple ID i have access to several companies and Apps (managed by me) in the Apple Store Connect. But when i try to do Product > XCode Cloud > Create workflow allways show the first company that i have access and cant switch to another one. Can you tell me if this is a known bug please? How can I create a Scheme but with the account/company/app that I want, please? Thank you very much and greetings.
Posted Last updated
.
Post not yet marked as solved
4 Answers
570 Views
When I try to build my iOS app using Xcode Cloud, it encounters an error when trying to resolve packages: an out-of-date resolved file was detected at [path to package.resolved], which is not allowed when automatic dependency resolution is disabled; please make sure to update the file to reflect the changes in dependencies Looking at my package.resolved file, it all seems to be in order. What can I do to fix it?
Posted Last updated
.
Post not yet marked as solved
0 Answers
46 Views
Dear developers, Can anyone helps us? Our app is not showing it's name correctly, after being downloaded. The app's name has no spaces, when it should have. Also, the language should be showing primarily as Portuguese, but is showing only as English. We don't know how to fix it. Can anyone please help us? Kind regards, Ricardo
Posted Last updated
.
Post not yet marked as solved
0 Answers
79 Views
Guys, do you happen to know how it is possible to upload iOS builds to App Store Connect by using Xcode Cloud and App Store Connect API Key instead of Apple ID? We want to upload iOS builds for our clients, but some of them have Individual type of accounts, so we were used to ask them for their login and pass (Apple ID) so we can log in and create all the developer certificates prior to build upload. But now we want to remove this step from the work flow by uploading builds to their accounts by using their App Store Connect API Key instead. They would connect to their account in our website, then we'll be able to handle everything from then on, hopefully?
Posted
by levon377.
Last updated
.
Post marked as solved
2 Answers
174 Views
What machines are used for Xcode Cloud builds? I couldn't find any information on that in the documentation. Is Xcode Cloud using M1/M2? Or is it going to use Apple CPU in the future?
Posted
by maxik.
Last updated
.
Post not yet marked as solved
0 Answers
55 Views
I run my tests on xcode cloud and I want to change different configurations when the tests run on the cloud as opposed to when the run locally. I thought environmental variables should be the way, but I'm not sure how to access them. I tried: ProcessInfo.processInfo.environment["CI"] But didn't get any result. Any ideas how can it be done?
Posted
by noamohana.
Last updated
.
Post not yet marked as solved
2 Answers
121 Views
I have recently set up Xcode Cloud but have been continually getting the following error: fatal: could not read Username for 'http://github.com': terminal prompts disabled an out of date resolve file was detected I am not entirely sure how to resolve this issue and would kindly welcome any feedback. The account used to configure Xcode Cloud was different from my personal GitHub account if that helps at all. Additionally, I also get the error: Repository Issue. Xcode Cloud is unable to connect to the repository __ . Reconnect the repository to resume builds.
Posted
by sdubois18.
Last updated
.
Post not yet marked as solved
9 Answers
508 Views
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?
Posted Last updated
.
Post not yet marked as solved
1 Answers
124 Views
Xcode Cloud is experiencing many problems with repository connection lately. Previously I had some issues with GitHub which disappeared after some time. And yesterday suddenly it stopped working with my Bitbucket repository. Now even if I try to add the repository again I always get 504 error: Why it is so unstable :(?
Posted
by maxik.
Last updated
.
Post not yet marked as solved
0 Answers
70 Views
Hello, I'm working on migrating my projects Xcode cloud and on specific release workflow i build a new version and after using agvtool i increment the version when all this finish i want to push the changes (aka version change) on git and make new tag also. The version change and git part is done on ci_post_xcodebuild.sh The issue that i have is an error on git git push --tags and git push : remote: Write access to repository not granted. fatal: unable to access 'http://github.com/REPO_NAME_REDACTED.git/': The requested URL returned error: 403 From what i see on my account, Xcode cloud asks for this permissions : Read access to code, metadata, and pull requests Read and write access to checks and commit statuses So no push permission. Do you have any idea how to make this work ? Thanks, Florin
Posted
by AngryS.
Last updated
.
Post not yet marked as solved
0 Answers
66 Views
In my xcode cloud workflow I run UI tests that check the way things are rendered. In some cases, visual effects like blur (see this for example. The UI test produces a screenshot, see in the text results) I see that xcode cloud doesn't render at all (results attached). It seems like xcode cloud doesn't run with GPU by default. Is there a way to see beautiful visual effects like translucent navigation and toolbars, blur effects and vibrancy in UI tests screenshots? Attached the rendered results (actual first, expected below).
Posted
by noamohana.
Last updated
.
Post not yet marked as solved
0 Answers
56 Views
I have two build actions in my workflow. One is for iOS build and the other one is watchOS build. iOS build is okay but watchOS build is always failed. I got message saying "xcodebuild: error: unable to find a destination matching the provided destination specifier: {generic:1, platform:watchOs Simulator}" Any help?
Posted
by kosuel.
Last updated
.
Post not yet marked as solved
0 Answers
64 Views
Hello, I'm trying to change the destination of a test action in a xcode cloud workflow. For some reason, after I choose a specific device and save, I see that it went back to the defaults: Recommended iPhones. Did anyone have the same problem? I found that I can set the destination through the portal, but also there it sometimes changes back. Any ideas? In the attached screenshot: This is what I do, I press save and it goes back to the defaults.
Posted
by noamohana.
Last updated
.
Post not yet marked as solved
1 Answers
118 Views
Hello, I'm trying to port my framework CI to xCode Cloud and i have to create the release build that contains iOS ios-arm64 and ios-arm64_x86_64-simulator architectures for being able to build the XCFramework on iOS devices and Simulators. I looked in the Archive Action in the Xcode Cloud options but the Platform selector has iOS but not not Simulator. Currently i achieved the results that i needed by adding a ci_scripts/ ci_pre_xcodebuild and working with old fashion xcodebuild archive command and works fine . Can i achieve what i want without the sh script by using predefined actions from Xcode Cloud ? Thanks, Florin
Posted
by AngryS.
Last updated
.