Once you've set these up, you can launch your app on an Android Virtual Device by running npm run android, or on the iOS Simulator by running npm run ios (macOS only). If you want to run your app on the iOS Simulator or an Android Virtual Device, please refer to the instructions for "React Native CLI Quickstart" to learn how to install Xcode or set up your Android development environment. Running your app on a simulator or virtual deviceĮxpo Go allows you to run your React Native app on a physical device without installing iOS and Android native SDKs. If you're curious to learn more about React Native, check out the Introduction to React Native. If you have a problem with Expo, before creating a new issue, please see if there's an existing issue about it in the Expo issues. You can also ask for help on the Expo Discord. Now what?Įxpo also has docs you can reference if you have questions specific to the tool. That's it!Ĭongratulations! You've successfully run and modified your first React Native app. The application should reload automatically once you save your changes. Open App.js in your text editor of choice and edit some lines. Now that you have successfully run the app, let's modify it. On iOS, use the built-in QR code scanner of the default iOS Camera app. On Android, use the Expo Go app to scan the QR code from your terminal to open your project. Install the Expo Go app on your iOS or Android phone and connect to the same wireless network as your computer. Users//Applications/Xcode.This will start a development server for you. Softwareupdate -install "Command Line Tools for Xcode-13.2"Ĭlosed Terminal and reopen /usr/bin/xcodebuild -version Title: Command Line Tools for Xcode, Version: 12.5, Size: 470820K,> Recommended: YES, Title: Command Line Tools for Xcode, Version: 12.5, Size: 470966K,> Recommended: YES, Label: Command Line Tools for Xcode-12.5. Title: Command Line Tools for Xcode, Version: 13.2, Size: 577329K,> Recommended: YES, Label: Command Line Tools for Xcode-13.2.Title: Command Line Tools for Xcode, Version: 12.4, Size: 440392K,> Recommended: YES, Label: Command Line Tools for Xcode-12.4.Software Update found the following new or updated software: THEN try Update to a specific version of CLTįirst, remove the existing CLT with sudo rm -rf /Library/Developer/CommandLineToolsĬheck which CLT updates available softwareupdate -list Try sudo xcode-select -switch /Library/Developer/CommandLineTools/ Pkgutil -pkg-info=_Executables | grep versionīut this is good to identify the version $ /usr/bin/xcodebuild -version Sudo xcode-select -s /Users//Applications/Xcode.app Go to Terminal and use the path in xcode-select Select the appropriate Command Line Tools Xcode> Preferences> Locations shows available CLT and the location (path) of each. Open /Applications/Xcode.app Check the CLT in XCode It takes a while to download, then a while longer to validate the application. Xip -expand /Applications/Xcode_13.2.1.xip Get the specific version of Xcodeĭownload a specific version of Xcode as a xip from (I downloaded Xcode_13.2.1.xip) Warning: A newer Command Line Tools release is available. Please update to Xcode 13.2.1 (or delete it). I have always used App store to install and update Xcode on my (2014) Macbook Pro but today after all updates brew doctor was still complaining about Xcode I found that brew complains about Xcode or Command Line Tools, and so following details how to install specific version of either. Options to select Command Line Tools is in Xcode > Preferences > Locations, including the path for each. This is where the system thinks your CLT are xcode-select -print-path One can have multiple installations of Xcode and multiple installations of Command Line Tools. So when you know for sure the commandline tools are installed (because, for instance, xcode-select -install tells you so) but none of the other methods works, check softwareupdate -history! Display Name Version DateĬommand Line Tools for Xcode 12.1, 22:38:33Ĭommand Line Tools for Xcode 12.3, 16:38:27 Which listed 12.3 as the last version it updated. How I finally found out what version of the XCode Commandline Tools is installed I stumbled upon the command: softwareupdate -history However I knew that my version must be out of date as the installer for one of homebrew packages told me so! Softwareupdate -list told me everything was up to date. Xcode-select -version only gave me the version of xcode-select itself, with no clue as to the commandline tools version. Not having XCode installed (and having no need for it), I could not look in settings dialogs of that either. pkgutil didn't give me the package of the XCode Commandline Tools, with none of the suggested package names. None of the available answers to get the version worked. I had XCode Commandline Tools installed for sure, but not XCode itself.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |