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

86 results found
Sort by:
Post not yet marked as solved
31 Views

Artifacts URL

Hello here, Is there a way to retrieve Xcode Cloud generated artifacts URLs. Would be great to have some available environment variable on that. Thanks
Asked Last updated
.
Post not yet marked as solved
31 Views

Xcode Cloud taking an extraordinary amount of time to run my unit tests

I have a project with over 600 tests. While that sounds like a lot, I can see the metrics about how long it takes to run those tests. (it's about 14 seconds). But when I create a job in Xcode Cloud to run these unit tests, I get very sub-optimal results. On a job that's never run (so no cached data) it took about 1hr 15 minutes. test-without-building takes an extraordinary amount of time. (1396 seconds). And if it's brand new build (no cached data) it also runs a command named build-for-testing, and that takes even longer (2626 seconds). Is there any documentation suggesting why these operations would take so long to complete? It doesn't take anywhere near this long on my own machine.
Asked Last updated
.
Post not yet marked as solved
447 Views

Xcode Cloud cannot build app with multiple targets and CocoaPods

I'm trying to build my app SolarWatch on Xcode Cloud. The setup was amazing. Everything setup and ready to go within 5 minutes. But my builds fail consistently where Xcode Cloud errors out when running the following build step and results in the attached error log screenshot. Tried both with release and beta environments. Any help appreciated. Run command: 'source /Volumes/Task/ci_build.env && source /Volumes/Task/ci_plan.env && xcodebuild archive -workspace /Volumes/workspace/repository/SolarWatch.xcworkspace -scheme SolarWatch -destination generic/platform=iOS -archivePath /Volumes/workspace/build.xcarchive -derivedDataPath /Volumes/workspace/DerivedData -resultBundleVersion 3 -resultBundlePath /Volumes/workspace/resultbundle.xcresult -resultStreamPath /tmp/resultBundleStream3a2d7024-571e-4e16-969d-5b570b91d2a8.json -IDEPostProgressNotifications=YES CODE_SIGN_IDENTITY=- AD_HOC_CODE_SIGNING_ALLOWED=YES COMPILER_INDEX_STORE_ENABLE=NO -hideShellScriptEnvironment'
Asked
by ekurutepe.
Last updated
.
Post not yet marked as solved
197 Views

Xcode Cloud not working with local packages

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..
Asked
by Joebayld.
Last updated
.
Post not yet marked as solved
29 Views

XCode Cloud can't access to Azure git repository

Hi to all, we are trying to use XCode Cloud to build up code hosted on Azure git repositories. At the moment, after the initial setup steps for the CI, when we need to provide authentication to the repository, we obtain an error on ADO when flow try to contact https://dev.azure.com/settings/apps/new From the documentation (https://developer.apple.com/documentation/xcode/source-code-management-setup) we understood that ADO is not supported as coderepo: there is some workaround to let this work? There's someone in this situation?
Asked
by Coach85.
Last updated
.
Post not yet marked as solved
363 Views

An internal error occurred while this artifact was being saved.

Builds worked fine until yesterday, and now we're getting this error about the logs. Seems the build goes fine, just no logs artifacts are generated: Save artifacts 5.5s Upload ERN Build 200101 Logs for ERN archive 0.2s An internal error occurred while this artifact was being saved. Upload ERN Build 200101 XCResult for ERN archive.xcresult 0.0s Upload ERN Build 200101 Archive for ERN on iOS.xcarchive 0.0s Upload ERN 5.6.0 app-store 0.0s Upload ERN 5.6.0 ad-hoc 0.0s Upload ERN 5.6.0 development 0.0s Anyone else experienced this?
Asked
by bigolo007.
Last updated
.
Post not yet marked as solved
33 Views

Mac Catalyst unit test fail to run

I'm just starting out with Xcode Cloud and trying to get a simple example running. I've got a basic 'Hello World' project with a couple of unit tests that I'm building for iPhone, iPad and Mac Catalyst. Running unit tests locally works fine on both iOS and Mac. My Xcode Cloud workflow has an action for iOS unit tests and Mac unit tests. The iOS tests run fine but the test bundle for Mac fails to load with this message: HelloWorldOCL (5739) encountered an error (Failed to load the test bundle. If you believe this error represents a bug, please attach the result bundle at /Volumes/workspace/resultbundle.xcresult. (Underlying Error: The bundle “HelloWorldOCLTests” couldn’t be loaded. The bundle couldn’t be loaded. Try reinstalling the bundle. dlopen(/Volumes/workspace/TestProducts/Debug-maccatalyst/HelloWorldOCL.app/Contents/PlugIns/HelloWorldOCLTests.xctest/Contents/MacOS/HelloWorldOCLTests, 0x0109): tried: '/Volumes/workspace/TestProducts/Debug-maccatalyst/HelloWorldOCLTests' (no such file), '/System/iOSSupport/Volumes/workspace/TestProducts/Debug-maccatalyst/HelloWorldOCL.app/Contents/PlugIns/HelloWorldOCLTests.xctest/Contents/MacOS/HelloWorldOCLTests' (no such file), '/Volumes/workspace/TestProducts/Debug-maccatalyst/HelloWorldOCL.app/Contents/PlugIns/HelloWorldOCLTests.xctest/Contents/MacOS/HelloWorldOCLTests' (code signature in <9E48F794-E3BB-38B4-BFE5-3C5932331003> '/Volumes/workspace/TestProducts/Debug-maccatalyst/HelloWorldOCL.app/Contents/PlugIns/HelloWorldOCLTests.xctest/Contents/MacOS/HelloWorldOCLTests' not valid for use in process: mapped file has no Team ID and is not a platform binary (signed with custom identity or adhoc?)), '/usr/lib/HelloWorldOCLTests' (no such file))) The project setup is pretty basic. Code signing is set to automatic with the team specified. It all works locally, so I'm not quite sure how to proceed. Any suggestions welcome. Thanks!
Asked
by jaylyerly.
Last updated
.
Post not yet marked as solved
83 Views

Building multiple build configurations using Xcode Cloud

Is there a way I can have multiple build/archive actions on my Xcode Cloud workflow that passes in the -configuration flag to the xcodebuild command. I want to build 2 or more build configurations in my workflows.
Asked
by iFlames.
Last updated
.
Post marked as Apple Recommended
312 Views

is xcode cloud failing?

When i start my workflows, after few minutes i can see some messages like them: The Archive - iOS action could not complete due to an error. Something went wrong and the Xcode Cloud team has been notified to investigate. The error may not occur on rebuild. or The Test - iOS action could not complete due to an error. Something went wrong and the Xcode Cloud team has been notified to investigate. The error may not occur on rebuild. or The Analyze - iOS action could not complete due to an error. Something went wrong and the Xcode Cloud team has been notified to investigate. The error may not occur on rebuild. Any idea? Thanks!
Asked Last updated
.
Post marked as Apple Recommended
179 Views

Builds queueing forever...

I have a project that has stopped building on xcode cloud. The project depends on several large binary swift packages that are downloaded, including one that is > 100 mb. I think it's since these packages got bigger that the CI builds stopped working, but there is nothing in the logs, it just doesn't start the build as far as I can see. Is there a limit that I am hitting that means my builds don't get started?
Asked
by olilarkin.
Last updated
.
Post not yet marked as solved
74 Views

Xcode Cloud Builds Stuck

We've got builds from different workflows stuck in a perpetual queued state since last Friday. It loos like a build has been going for 3 days now, keeping the rest queued. It's just a health check build for a very small fix PR, so I don't think anything in the code should've triggered this. Is there a global issue with Xcode Cloud over the last weekend?
Asked
by WPAlex.
Last updated
.
Post marked as solved
519 Views

Xcode Cloud source control integration

Will Xcode Cloud report the build status' back to the source control provider? Will it be possible to get any other build results to e.g. Github? Having everything integrated into Xcode is great, but it's often beneficial to have the status or other information outside. E.g. if the source control is set up in a way that it allows merging the pull requests only after there is a passing build or when the code coverage passes certain threshold.
Asked
by kirill.
Last updated
.
Post marked as solved
478 Views

Cannot update Package.resolved because automatic resolution is disabled

I'm trying to build my project with Xcode Cloud but run into this problem: Cannot update Package.resolved because automatic resolution is disabled The log shows this line prior to that: Set default com.apple.dt.Xcode IDEDisableAutomaticPackageResolution to true Any idea how to fix this?
Asked
by anhdo.
Last updated
.
Post not yet marked as solved
149 Views

Xcode cloud build fails for React-Native 0.66.x app

While local builds and builds on virtual machines as e.g. GitHub Actions work well, our native iOS apps do not build with Xcode cloud. The failure is as following - the config files are available in local builds. I wonder why Xcode cloud has trouble finding or opening them? 2021-11-27T10:58:30.190661Z /Volumes/workspace/repository/ios/Pods/Target Support Files/Pods-TreecounterApp/Pods-TreecounterApp.release.xcconfig:1:1: error: unable to open file (in target "TreecounterApp" in project "TreecounterApp") 2021-11-27T10:58:30.190714Z /Volumes/workspace/repository/ios/Pods/Target Support Files/Pods-TreecounterApp/Pods-TreecounterApp.release.xcconfig:1:1: error: unable to open file (in target "TreecounterApp" in project "TreecounterApp") 2021-11-27T10:58:30.190763Z /Volumes/workspace/repository/ios/Pods/Target Support Files/Pods-TreecounterApp/Pods-TreecounterApp.release.xcconfig:1:1: error: unable to open file (in target "TreecounterApp" in project "TreecounterApp") 2021-11-27T10:58:30.190820Z 2021-11-27T10:58:30.191118Z Result bundle written to path: 2021-11-27T10:58:30.191243Z /Volumes/workspace/resultbundle.xcresult 2021-11-27T10:58:30.191297Z 2021-11-27T10:58:30.191345Z ** ARCHIVE FAILED **
Asked Last updated
.
Post not yet marked as solved
159 Views

Cannot add BitBucket Server access token when creating first workflow

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!
Asked
by hiim.
Last updated
.