\n
But when i try to open my react native project in Xcode simulator from terminal using npm run ios
it says,
"Xcode needs to be installed (don't worry, you won't have to use it), would you like to continue to the App Store? › (Y/n)"
\n\nBy the way, I am a new mac user so, i don't know much about it yet. So, any kind of help will be appreciated.
\n","author":{"@type":"Person","name":"Usman Shahid"},"upvoteCount":18,"answerCount":4,"acceptedAnswer":{"@type":"Answer","text":"My bad, i have not selected the installed command line tools in Xcode. If anybody got this issue then make sure you also select the installed command line tools. Simply open Xcode, go to preference -> locations -> command line tools.
\n","author":{"@type":"Person","name":"Usman Shahid"},"upvoteCount":45}}}Reputation: 761
i have download and installed the Xcode 12.4 from apple site (not apple store) because I am using macOS Catalina 10.15.7 and the latest Xcode version right now requires at-least BigSur 11.0. I have also installed the latest Xcode command line tools.
But when i try to open my react native project in Xcode simulator from terminal using npm run ios
it says,
"Xcode needs to be installed (don't worry, you won't have to use it), would you like to continue to the App Store? › (Y/n)"
By the way, I am a new mac user so, i don't know much about it yet. So, any kind of help will be appreciated.
Upvotes: 18
Views: 18045
Reputation: 539
If you're having this issue, running the command below in the terminal will also fix it for you.
sudo xcode-select -s /Applications/Xcode.app
Upvotes: 35
Reputation: 149
If you're getting this error while trying to run an app into the iOS simulator:
"Xcode must be fully installed before you can continue. Continue to the App Store?"
There are two things that needs to be checked before running an app into the simulator.
1. Command Line Tools
Open Xcode, go to settings → locations → select command line tools.
Refer to the screenshots below.
2. Agree to the Terms of Xcode
Run the below command in your terminal & you're ready to use simulator.
sudo xcode-select -s /Applications/Xcode.app/Contents/Developer
Upvotes: 6
Reputation: 432
Upvotes: 3
Reputation: 761
My bad, i have not selected the installed command line tools in Xcode. If anybody got this issue then make sure you also select the installed command line tools. Simply open Xcode, go to preference -> locations -> command line tools.
Upvotes: 45