Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to change the version of Xcode react-native run-ios points to?

Tags:

react-native

I've had to jump back and forth between different versions of Xcode in order to debug different React Native applications. Here's a way to make sure your $: react-native run-ios points to the right location:

$: sudo xcode-select --switch /Applications/[The version of Xcode you want here].app/

like image 303
Andres Narvaez Avatar asked Sep 20 '16 02:09

Andres Narvaez


1 Answers

Xcode -> Preferences -> Locations -> Choose Command Line Tools -> Close Xcode

react-native run-ios

enter image description here

like image 98
Giang Avatar answered Sep 20 '22 16:09

Giang