I'm trying to do an xcodebuild
and archive my app from the command line. However, for some reason My Mac
shows up as a valid run scheme for my iOS app. And that's why running this will throw.
xcodebuild: error: Failed to build workspace MyApp with scheme 'My-iOS-App.
Reason: The run destination My Mac is not valid for Running the scheme ''My-iOS-App'.
Any ideas as to how I can fix this?
Make sure none of your targets (including tests) have SUPPORTS_MACCATALYST
property set to YES
.
If any of the targets have this property, My Mac
destination will show up.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With