Questions tagged [xcode-cloud]

Use this tag with questions about Xcode Cloud, Apple's CI/CD platform.

80 questions
3
votes
2 answers

Xcode Cloud project with CocoaPods shell script builds locally but fails on cloud

I am currently testing Xcode Cloud as a member of Apple's private beta program and encountered an issue when trying to Archive / Build (any action) on the cloud for my project. The project is a fairly basic SwiftUI app with CocoaPods dependencies. I…
Pranav Kasetti
  • 8,770
  • 2
  • 50
  • 71
3
votes
1 answer

This product could not be added to Xcode Cloud Missing Data: product

I'm trying to create my first Xcode Cloud Workflow. I've clicked Product -> Xcode Cloud -> Create Workflow -> Next (through an introduction page). Xcode won't allow me to select a product, and when I double click it I get this error message: This…
Niall Kehoe
  • 416
  • 5
  • 17
3
votes
3 answers

Xcode Cloud Testing fails to archive project

I have errors with Xcode cloud testing while archiving. Issues are all related to CocoaPods dependencies: unable to open file (in target "Alamofire" in project "Pods") missing module map file: '/Volumes/workspace/repository/Pods/Target Support…
xGoPox
  • 674
  • 8
  • 23
2
votes
0 answers

Is there a way to require Xcode Cloud workflow to pass for GitHub Pull Request to merge?

We are testing feasibility of migrating from GitHub Actions to Xcode Cloud for our CI/CD needs, and with GitHub Actions we could require that at least, say, the build & test workflow needed to succeed in order for a Pull Request to be merged, but I…
BJ Miller
  • 1,536
  • 12
  • 16
2
votes
0 answers

Xcode Cloud API. How can I create or update environment variables in a workflow using the API?

I have been assigned a task to automate the process of updating environment variables for a workflow in Xcode Cloud. After reviewing the API documentation, I discovered an object that can update a workflow, which is the…
maxibra
  • 21
  • 1
2
votes
1 answer

Xcode Cloud Workflow, initial creation, cannot change Primary Repository

Trying to to create a workflow for Xcode Cloud in Xcode. The issue I am having is that I am unable to complete the workflow creation, which i believe to be due to the following issue: The primary repository path is going to some derived data path…
daredevil1234
  • 1,303
  • 1
  • 10
  • 34
2
votes
1 answer

Xcode Cloud Build Number vs Target Build Number

Is it best practice to keep the target build number (ie CURRENT_PROJECT_VERSION) the same as Xcode Cloud's build number (ie CI_BUILD_NUMBER)? If so, is there any way to be able to do that in an automated way? Would it happen inside 1 of the 3 Xcode…
Wilson Desimini
  • 722
  • 5
  • 10
2
votes
1 answer

Xcode Cloud Build Error : "Unable to open target file"

I have tried to implement Xcode Cloud. Getting this error while generating the build. Tried solution: Pod deintegrate and pod install again. But it's not resolved. Please suggest me a solution for this.
Shangari C
  • 792
  • 1
  • 5
  • 17
2
votes
0 answers

Xcode Cloud Fails to export archive: Command exited with non-zero exit-code: 70

I'm using Xcode Version 13.4.1. I have a project that builds an iOS app successfully in Xcode cloud. However, I am getting errors when trying to execute the archiving action. It seems archiving for app-store distribution works but fails archiving…
2
votes
0 answers

Post Testflight Execution in Xcode Cloud

Is there a way to execute code after the app has been uploaded successfully to Testflight? I am trying to post the patch notes of the update into Slack. I would be fine if there is a way to put the patch notes into the "What's New" section for the…
Tarek
  • 783
  • 10
  • 31
2
votes
3 answers

React native app not building on Xcode-Cloud

React native app not building on Xcode-Cloud getting following error Run command: 'source /Volumes/Task/ci_build.env && source /Volumes/Task/ci_plan.env && xcodebuild archive -workspace /Volumes/workspace/repository/ios/dxapp.xcworkspace -scheme…
Prasanth S
  • 3,725
  • 9
  • 43
  • 75
1
vote
0 answers

How can I pass Xcode Cloud environment variables to Xcode project when building the project using Xcode Cloud?

I am tasked with passing environment variables from the Xcode Cloud server to the Xcode project while building it with Xcode Cloud. When I build the app locally, I fetch environment variables from the scheme. Then in the codebase, this is how…
jamryu
  • 668
  • 10
  • 24
1
vote
0 answers

Can a workflow decide dynamically whether to run an “Archive” step?

I have an iOS app that uses Xcode Cloud as its CI system. I have a workflow configured so that whenever any branch is updated, Xcode Cloud runs the Test and Archive actions and pushes the resulting binary to TestFlight. I don’t actually need or want…
bdesham
  • 15,430
  • 13
  • 79
  • 123
1
vote
1 answer

How do you get Xcode Cloud to download Git LFS images?

I am trying to run Xcode Cloud on my unit tests, which include a large number of snapshot tests using png images that are all stored using Git LFS. But when I run the tests on Xcode Cloud, the logs indicate that the images aren't on disk, implying…
shim
  • 9,289
  • 12
  • 69
  • 108
1
vote
2 answers

How to change build configuration in Xcode Cloud pipeline?

For CI/CD we are using Xcode Cloud. My application have three build configurations: Debug, Stage and Release. In the Xcode Cloud we have set up two pipelines: Stage and Release. Default build configuration for archive state is Release. Image…
Ramis
  • 13,985
  • 7
  • 81
  • 100