I've installed the React Native Tools extension for Visual Studio Code. I thought this included the iOS and Android emulators for me to test my React Native app but when I run
React Native: run ios
I get an error that reads
Running the contributed command:'reactNative.runIos' failed.
Do I install these emulators separately?
iOS Simulator is distributed with Xcode. You can download it on developer.apple.com (accessible with a free AppleID) or from the Mac App Store.
It is only available on macOS, with Xcode 8+ requiring macOS El Capitan or newer.
If you want to get IOS Simulator in VS Code, install Xcode and open it, then go to Preference > Location and there you will see Command Line Tool. Just click the drop-down button and save something like Xcode 11(Version) and save it. Also, I recommend getting IOS and Andriod Simulator in VS Code.
Related
I'd like to know how I can develop using linux (for example debian 9) and use my iPhone to see what I am developing.
I don't want to use macOS to do this and the best would be to see the result under Android and iOS without simulator, directly on phones.
Thanks for help !
If you want to stuck with Linux OS. You can test you app on android variant only (on both emulator or physical device)
In order to test your app on iOS you need to have a mac machine to generate / build the project.
If you don't have a mac system you can go with Expo SDK.
Expo is a free and open source toolchain built around React Native to help you build native iOS and Android projects using JavaScript and React.
You can easily get started here
I am new in react-native. I want to build an android and iOS application by using react-native. I used the Windows 10 to build the react-native project and it is ok when I run the android app using Android SDK or real device but cannot on iOS devices. I have researched this problem and know that I need to use macOS to run the iOS apps. Is it possible to build iOS apps using any iOS simulator on Windows 10?
for exporting ios apps you must have a MAC system(X-code) or you can do it in windows with VMvare that have a virtual Mac system ,and in next step you must have a developer account then other steps are simple :)
The best way to develop in react native if you did not have access to MAC OSX environment is to use EXPO as it will ensured the app could run on android and iOS.
The second option would be using private cloud Mac like MacStadium.
I want to write an application targeted at both iOS and Android. Is it possible to develop a React Native app on Windows using a network connected Mac? For example, using Visual Studio Code on Windows and debugging on a network connected Mac?
I'm using Atom and IDE to make react-native app.
To test on iOS, maybe you could use this but the best would be to have a iPhone with you, to install your app and use Code Push to auto update the app on your phone. The other solution would be to install an macOS Emulator on your computer.
I face a big problem with titanium appcelerator, this morning i work as usual on my app dev, sundenly i am not able to run my project as this picture shows :
When i click on run i just have "Package" and iOs and android simulator are gone.
I tried rebooting the studio, my mac but nothing.
I use : Appcelerator Studio, build: 4.6.0.201605201934 and xcode Version 7.3.1 (7D1014)
Thanks for your help.
To steps you can try:
Did you try to run your project via CLI ?
Try to locate your sdk in Studio go to settings->platforms->set titanium sdk home (if it is already set, set it again)
I have installed the SDK's for 6.x and 7.0 in xcode and I'd like to test my app on ios6 in the simulator using titanium studio.
After poking around for some time I still can't find a way to select a different iOS version in my run configurations. As you can see, SDK's are installed and I can select them in the simulator itself, but the only way to test the app is by launching 7.0 (Titanium won't launch anything else).
Manually switching between versions and relaunching the app from titanium doesn't help either.
Looks like Titanium Studio has problem with simulator settings. Compiling project from console with titanium build -p ios will run your app on simulator with current settings. Also you can use additional flags to force different type of simulator:
--retina use the retina version of the iOS Simulator
--sim-64bit in combination with --retina flag & --tall flag, start the 64-bit tall version of the retina simulator
--tall in combination with --retina flag, start the tall version of the retina device