Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

The run destination My Mac is not valid for Running the scheme 'My-iOS-App'

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?

like image 381
user4992124 Avatar asked Apr 09 '19 11:04

user4992124


1 Answers

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.

like image 92
BoygeniusDexter Avatar answered Nov 16 '22 03:11

BoygeniusDexter