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

193 Posts
Sort by:
Post not yet marked as solved
1 Replies
410 Views
Hi. I have not already understand the role of iOS distribution managed certificate. When I export inHouse or adhoc ipa file from Xcode Organizer, the package doesn't use managed certificate, so it useless. I read following document about managed certificate, but I still have not clear that role. When exactly will the certificate be used? About Cloud managed certificate https://help.apple.com/developer-account/#/dev8e84490b9
Posted
by y.okano.
Last updated
.
Post not yet marked as solved
2 Replies
857 Views
In the "Resolve package dependencies" step I see this error occur: Scheme <scheme-name> is not currently configured for the build action. I cannot reproduce locally. When I run the command: xcodebuild -resolvePackageDependencies it finishes fine. I'm on Xcode 13.4.1 and MacOS 12.4.1 Other things I've tried: Verified scheme is in the workspace (not the project) Deleted all schemes and auto created schemes again Recreating the build action in the scheme Enabled all actions in the scheme
Posted
by ben.ford.
Last updated
.
Post not yet marked as solved
0 Replies
65 Views
I encountered this error 2023-01-24T22:14:41.500565325Z Installing ri documentation for cocoapods-catalyst-support-0.2.1 2023-01-24T22:14:41.500827390Z Done installing documentation for colored2, concurrent-ruby, i18n, tzinfo, zeitwerk, activesupport, nap, fuzzy_match, httpclient, algoliasearch, ffi, ethon, typhoeus, netrc, public_suffix, addressable, cocoapods-core, claide, cocoapods-deintegrate, cocoapods-downloader, cocoapods-plugins, cocoapods-search, cocoapods-trunk, cocoapods-try, molinillo, atomos, nanaimo, rexml, xcodeproj, escape, fourflusher, gh_inspector, ruby-macho, cocoapods, cocoapods-catalyst-support after 50 seconds 2023-01-24T22:14:41.500997230Z 35 gems installed 2023-01-24T22:14:42.023353910Z [in /Volumes/workspace/repository] 2023-01-24T22:14:42.023798292Z 2023-01-24T22:14:42.024448317Z [!] Invalid `Podfile` file: cannot load such file -- cocoapods-catalyst-support. 2023-01-24T22:14:42.024714192Z 2023-01-24T22:14:42.024976712Z # from /Volumes/workspace/repository/Podfile:1 2023-01-24T22:14:42.025200239Z # ------------------------------------------- 2023-01-24T22:14:42.025463448Z > require 'cocoapods-catalyst-support' 2023-01-24T22:14:42.025663811Z # 2023-01-24T22:14:42.025900158Z # ------------------------------------------- from my post-clone script, which is #!/bin/sh # ci_post_clone.sh export GEM_HOME="$HOME/.gem" gem install bundler brew install cocoapods gem install cocoapods-catalyst-support # Install dependencies managed with CocoaPods. pod install
Posted
by Curiosity.
Last updated
.
Post not yet marked as solved
3 Replies
57 Views
I am getting an error on Xcode Build The bundle version must be higher than the previously uploaded version. I am at a loss. My bundle version is set at 20. The latest version uploaded has bundle version 18. The project is clearly higher than the most recently uploaded version. What am I doing wrong? I tried setting the Bundle version in both the General tab for the target, in the Build Settings and in the Info.plist. Which takes precedence? Fastlane reports the current build version as 18 on TestFlight. Confusingly, throughout Xcode, Bundle Version is variously referred to as both 'Bundle Version' and 'Current Project Version', and is 'Build' on App Store Connect. App Store Version is variously referred to as 'Version', 'Bundle version string (Short)', and 'Marketing Version'.
Posted Last updated
.
Post not yet marked as solved
1 Replies
815 Views
I'm installing texturepacker in ci_post_clone.sh script using below command in Xcode Cloud workflow. ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)" < /dev/null 2> /dev/null ; brew install caskroom/cask/brew-cask 2> /dev/null brew install --cask texturepacker But I'm getting sudo warning in log. ==> Downloading https://www.codeandweb.com/download/texturepacker/6.0.2/TexturePacker-6.0.2.dmg ==> Installing Cask texturepacker sudo: a terminal is required to read the password; either use the -S option to read from standard input or configure an askpass helper sudo: a password is required sudo: a terminal is required to read the password; either use the -S option to read from standard input or configure an askpass helper sudo: a password is required sudo: a terminal is required to read the password; either use the -S option to read from standard input or configure an askpass helper sudo: a password is required sudo: a terminal is required to read the password; either use the -S option to read from standard input or configure an askpass helper sudo: a password is required ==> Purging files for version 6.0.2 of Cask texturepacker Error: Permission denied @ dir_s_mkdir - /usr/local/Caskroom How can i fix this issue? Any idea or suggestions would be appreciated. Thank You
Posted Last updated
.
Post not yet marked as solved
3 Replies
698 Views
Is it possible to set up Xcode Cloud so it distributes the app to different bundle id? (for example, mock, test and release environment) Right at the moment we are only limited to deploy TestFlight for the bundle ID that configured Xcode Cloud? I would really like to be able automate several different build with different bundle id's... When i try to archive using Xcode Cloud to a different bundle id that the one configuring Xcode Cloud i get the following errors: ITMS-90054: This bundle is is invalid. ITMS-90345: Metadata.Info.plist Mismatch. When I archive manually it works perfectly fine.
Posted Last updated
.
Post not yet marked as solved
0 Replies
93 Views
When building in Xcode Cloud it allows setting a schema but is missing Configuration. We have: Debug, Release. configuration: "Debug", scheme: "MyApp" I noticed in scheme it has several types: Build Run - Debug Test - Debug Profile - Release Analyze - Debug Archive - Release For XCode to work right what should these be set to? This seems to not be documented. In React Native they recommend "Run to be Release". Is it ok to change that for Xcode Cloud? Info: Building an app for distribution in the App Store requires using the Release scheme in Xcode. Apps built for Release will automatically disable the in-app Developer menu, which will prevent your users from inadvertently accessing the menu in production. It will also bundle the JavaScript locally, so you can put the app on a device and test whilst not connected to the computer. To configure your app to be built using the Release scheme, go to Product → Scheme → Edit Scheme. Select the Run tab in the sidebar, then set the Build Configuration dropdown to Release.
Posted
by billnbell.
Last updated
.
Post not yet marked as solved
5 Replies
1.6k Views
Running into an issue where there seems to be no functional way to reset the build to 1 whenever we make a new version. I've bumped up the patch version of the app, but there seems to be no way to reset the build to 1 when using Xcode cloud. Any attempts to do so in the Xcode Cloud settings portion of appstore connect are hit with a "The number entered must be greater than the latest Xcode Cloud build number". But resetting to 1 will NEVER satisfy this requirement. The number will always be lower than the previous build number we used in Xcode cloud, because that was for a previous version. Is this even possible? Example: I want to go from 1.2.2 (501) to 1.2.3 (1) on an app already being managed by Xcode Cloud
Posted Last updated
.
Post not yet marked as solved
1 Replies
100 Views
I have an app that relies on a REST like API and want to be able to set a default value for the server but also be able to override that value via environment variables at build time. The idea is that by default it would make calls to localhost but when I run UI Tests on Xcode cloud I'd point it at a test server and then when I hit the phase to archive the binary I'd provide it with either the staging server or production server. Of course the other question is is this the best way to do it or should I be using schemes instead, though that would code the addresses into the project and I like the ability to change the url outside of the project
Posted
by ztolley.
Last updated
.
Post not yet marked as solved
1 Replies
410 Views
Hi, I'm writing here because I'm having some difficulties with the Xcode Cloud API. I'm trying to start a build on Xcode Cloud through API on a specific branch. I have tried to structure the body of the requests using the sourceBranchOrTag relationship, but I keep running into 409/422 HTML codes. Currently this is my body: { "data": { "type": "ciBuildRuns", "attributes": {}, "relationships": { "workflow": { "data": { "type": "ciWorkflows", "id": WORKFLOW_ID } }, "sourceBranchOrTag": { "data": { "type": "CiGitRefKind", "id": "develop", "attributes": { "kind": "branch" } } } } } } I have tried different combinations, but to no avail. Looking at the documentation there is no clear way on how to structure the scmGitReferences object required in the body, does anyone have an example of a body like this one? Extra: Also the documentation is really bad at explaining how query parameters works. Some more practical examples would help a ton. (e.g. filtering the list of builds of a workflow by executionProgress=RUNNING seems impossible?) Thanks for your time and have a great day, Davide
Posted
by davideb94.
Last updated
.
Post not yet marked as solved
0 Replies
92 Views
It is great that we can set the schema in Xcode Cloud - but what about Variant? Release, Debug, etc? That would really help us sending builds to browserstack etc since it requires debug IPAs.
Posted
by billnbell.
Last updated
.
Post not yet marked as solved
1 Replies
85 Views
We need the ability to get the Xcode Cloud next-build-number and set the next-build-number via API. Can you please add this or show us how to do this? The UX does it this way: : https://appstoreconnect.apple.com/ci/api/teams/TEAM_GUID/products/PROD_GUID/next-build-number
Posted
by billnbell.
Last updated
.
Post not yet marked as solved
1 Replies
179 Views
Hello, I have a repo with only packages (includes snapshot tests). Is there a possibility to add package to the Xcode Cloud (package does not contain a application - it's only design system)
Posted Last updated
.
Post not yet marked as solved
1 Replies
556 Views
I work on a lot of projects that are multi-platform projects using codebases based in ReactNative or NativeScript, both which could benefit from the cloud build for the iOS based applications. Is there a plan to add programmatic access to Xcode Cloud Build to allow access to the build pipeline from something like a GitHub action?
Posted
by zchapple.
Last updated
.
Post marked as solved
3 Replies
673 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
17 Replies
2.0k 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
1 Replies
229 Views
Hello, I'm trying to upload my code coverage to an external service. I've created a workflow on Xcode Cloud that build and run my test + a ci_post_xcodebuild script that uploads my Project.xcresult to an external service My problem here is that I need the repository source code the moment I upload my coverage file. I have two steps in my workflow: Build tests (Which contain the sources but not the coverage results) Run tests (Which contain the coverage result but not the sources) I found this in the Apple documentation: Lastly, it should be noted that in a test action, multiple environments are used to build and run your tests. Only the environment that is used for building your tests will have your source code cloned into it by default. The environments that run your tests won't have source code cloned into them. They'll only have the ci_scripts folder made available on them. As a result, the post-clone script won't run in these environments and your custom scripts and any of their dependencies, such as other shell scripts and small tools, must be entirely contained within the ci_scripts folder. Source: https://developer.apple.com/videos/play/wwdc2021/10269/ I feel a bit stuck here maybe Xcode cloud is not the way to go for this but I was wondering if by any way I could still check out my project sources after the test execution.
Posted
by jbo14.
Last updated
.
Post not yet marked as solved
4 Replies
675 Views
When Building with XCode Cloud I receive errors reading Cocoapods xcfilelist files. The errors are as follows: Unable to load contents of file list: '/Target Support Files/Pods-<Project Name>/Pods-Anytune-frameworks-Release-output-files.xcfilelist' Unable to load contents of file list: '/Target Support Files/Pods-Anytune/Pods-<Project Name>-resources-Release-output-files.xcfilelist' When building through Xcode (Product > Build) everything works, however this is not the case with Xcode Cloud. I have verified that the xcfilelist paths exist on my machine, however with Xcode Cloud they are unable to load. I have also tried cleaning, updating and rebuilding my Cocoapods to no avail. This issue exists on stackoverflow. Link is found here. The solutions here did not work for me. Any help would be appreciated.
Posted Last updated
.
Post not yet marked as solved
2 Replies
651 Views
I'm trying to create the first Xcode Cloud workflow to my project. App is set in the App Store Connect (App Id created manually, code signing is set to Automatic). On the Grant Access to Your Source Code if fails. When I press Grant Access it opens App Store Connect, spinns progress indicator for some time and then displays an error: Connecting Xcode Cloud with your source control provider was incomplete. Request is for another user. I'm on Xcode 14 Beta 6
Posted
by OgreSwamp.
Last updated
.