TLDR: how can I get Resolve Bundle Graphs to succeed when operating Xcode 16 beneath Fastlane? Is there some choice to scan
I’m lacking or some setup/config I must do previous to operating scan
?
My firm is utilizing Fastlane to run exams after we open PR’s. It is failing whereas making an attempt to resolve bundle graphs for SPM / Swift Bundle Supervisor packages.
With Xcode 15, this runs nice:
desc """
Builds a Debug configuration of the app and runs its exams.
- Instance utilization: `fastlane take a look at`
"""
lane :take a look at do
places(message: "about to scan for exams ☺️")
scan(
workspace: "MyWonderfulApp.xcworkspace",
scheme: "MyWonderfulApp",
configuration: "Debug",
cloned_source_packages_path: "~/SourcePackages",
clear: true,
reset_simulator: true,
gadget: "iPhone 15" - or "iPhone 16" if we're beneath Xcode 16
)
places(message: "executed scanning for exams")
finish
And the log appears to be like one thing like this:
[16:29:47]: Driving the lane 'ios take a look at' 🚀
[16:29:47]: ------------------
[16:29:47]: --- Step: scan ---
[16:29:47]: ------------------
[16:29:47]: Resolving Swift Bundle Supervisor dependencies...
[16:29:47]: $ xcodebuild -resolvePackageDependencies -workspace MyGreatApp.xcworkspace -scheme MyGreatApp -configuration Debug -clonedSourcePackagesDirPath ~/SourcePackages
[16:29:47]: ▸ Command line invocation:
[16:29:47]: ▸ /Functions/Xcode_15.4.app/Contents/Developer/usr/bin/xcodebuild -resolvePackageDependencies -workspace MyGreatApp.xcworkspace -scheme MyGreatApp -configuration Debug -clonedSourcePackagesDirPath "~/SourcePackages"
[16:29:47]: ▸ Consumer defaults from command line:
[16:29:47]: ▸ IDEClonedSourcePackagesDirPathOverride = /Customers/runner/SourcePackages
[16:29:47]: ▸ IDEPackageSupportUseBuiltinSCM = YES
[16:29:52]: ▸ Resolve Bundle Graph /
[16:29:52]: ▸ Fetching from [email protected]:care-dot-com/ios-xc-alamofire.git
[16:29:55]: ▸ Fetching from https://github.com/Salesforce-Async-Messaging/Swift-Bundle-ServiceChat
With Xcode 16 nonetheless, we by no means get to the “Resolved supply packages” line within the console log. It instances out after our default timeout of 40 and even 60 minutes.
[16:57:37]: ▸ Command line invocation:
[16:57:37]: ▸ /Functions/Xcode_16.2.app/Contents/Developer/usr/bin/xcodebuild -resolvePackageDependencies -onlyUsePackageVersionsFromResolvedFile
[16:57:37]: ▸ Consumer defaults from command line:
[16:57:37]: ▸ IDEPackageOnlyUseVersionsFromResolvedFile = YES
[16:57:37]: ▸ IDEPackageSupportUseBuiltinSCM = YES
[16:57:40]: ▸ Resolve Bundle Graph
[16:57:40]: ▸ Fetching from https://github.com/Veriff/veriff-ios-spm/
...
...
...
[16:58:29]: ▸ Creating working copy of bundle ‘swift-syntax’
[16:58:29]: ▸ Trying out 510.0.2 of bundle ‘swift-syntax’
Error: The operation was canceled. // 40 to 60 minutes later, resulting from timeout
I’ve seen comparable inquiries to this posted elsewhere, with no solutions. Hopefully any person someplace has jumped over and clear up this downside.