titanium-sdk
titanium-sdk copied to clipboard
fix(ios): fixed multiple matching destinations warning for SDK build and clean app build
Introduction:
Xcode's multiple matching destinations warnings have been a topic in the past, see discussion https://github.com/tidev/titanium-sdk/discussions/13174, and was fixed for app build by https://github.com/tidev/titanium-sdk/pull/13098.
Typical example:
--- xcodebuild: WARNING: Using the first of multiple matching destinations:
{ platform:macOS, variant:Mac Catalyst, name:Any Mac }
{ platform:iOS, id:dvtdevice-DVTiPhonePlaceholder-iphoneos:placeholder, name:Any iOS Device }
{ platform:iOS Simulator, id:dvtdevice-DVTiOSDeviceSimulatorPlaceholder-iphonesimulator:placeholder, name:Any iOS Simulator Device }
{ platform:macOS, arch:arm64, variant:Mac Catalyst, id:00006030-001E394822D9001C, name:My Mac }
{ platform:macOS, arch:x86_64, variant:Mac Catalyst, id:00006030-001E394822D9001C, name:My Mac }
{ platform:macOS, arch:arm64, variant:Designed for [iPad,iPhone], id:00006030-001E394822D9001C, name:My Mac }
{ platform:iOS Simulator, arch:arm64, id:3D0541B0-0B11-40A8-9326-A0587E91A26D, OS:15.5, name:iPad (9th generation) }
...
Currently, as false positive errors, they repeatedly cause confusion and misdirection during troubleshooting ([1], [2], [3], [4], [5]).
Edit: This may also fix xcodebuild: error: Found no destinations for the scheme ... and action clean.
Description:
- added
-destinationin shell scripts for SDK build (invokingxcodebuild archive) - added
-destinationincleanXcodeDerivedData()for cleaning in app build (invokingxcodebuild clean)- analogous to
invokeXcodeBuild()
- analogous to