Hello,
I export xcframeworks for iOS, iOS simulator and macCatalyst with a script calling xcodebuild commands:
- archive for iphoneos
- archive for iphonesimulator
- archive for maccatalyst
- create xcframework from the three frameworks with dSyms and BSCymbolMaps.
I'm struggling with one of my projects refusing to archive for macCatalyst.
The macCatalyst archiving command is basically the following (same for all my projects):
xcodebuild archive -project $PROJECT_PATH -scheme $SCHEME -destination "generic/platform=macOS,variant=Mac Catalyst" [...]
The error I obtain is the following (formatted with xcpretty, I replaced sensitive info with ***):
▸ xcodebuild: error: Unable to find a destination matching the provided destination specifier:
▸ { generic:1, platform:macOS, variant:Mac Catalyst }
▸ Available destinations for the "***" scheme:
▸ { platform:macOS, arch:arm64, variant:Mac Catalyst, id:*** }
▸ { platform:macOS, arch:x86_64, variant:Mac Catalyst, id:*** }
▸ { platform:macOS, arch:arm64, variant:Designed for [iPad,iPhone], id:*** }
▸ { platform:iOS Simulator, id:***, OS:15.5, name:test-simulator }
▸ Ineligible destinations for the "***" scheme:
▸ { platform:iOS, id:dvtdevice-DVTiPhonePlaceholder-iphoneos:placeholder, name:Any iOS Device }
▸ { platform:iOS Simulator, id:dvtdevice-DVTiOSDeviceSimulatorPlaceholder-iphonesimulator:placeholder, name:Any iOS Simulator Device }
I compared with another project building fine, the only difference I found is the deployment targets (the project not working needs iOS 14.0+):
- Project archiving for macCatalyst:
- Project NOT archiving for macCatalyst:
In Xcode
- the "any mac" destination is available for the first project:
- but not for the second:
I have the same issue on Intel and Apple Silicon macs, with Xcode 13.2, 13.3 and 13.4.
I tried to change the deployment targets of the first project to reproduce the issue, this project still archives for macCatalyst without any issue, even though I can not find any other difference in the two projects settings, which really bugs me 😭
I tried to add name=Any Mac
in the destination, as seen here and there on the web for this issue, it did not help.
Any help would be really appreciated 🤗