In order to build react native on iOS, I used the following command on the command line (VSCode) and I've tried to use the following command on the command line (VSCode) to build react native iOS and it doesn't work.
react-native run-ios --device "device name"
The application is installed successfully, but it is not reflected in the actual device.
info Installing and launching your app on "iPhone"
success Installed the app on the device.
I did this site as well as referring to it, but it didn't work.
[https://stackoverflow.com/questions/38495793/run-react-native-application-on-ios-device-directly-from-command-line]
I'd like to implement an iOS actual device build with VScode.
If you know of a similar situation or how to deal with it, please let me know.
[Version information]
react-native: 0.61.5
VSCode 1.51.0
Xcode 12.1
iOS 14.1
Related
I am building flutter app with Passbase integration. I have followed all steps from here: https://docs.passbase.com/flutter and in Android it works fine. However in iOS app is not building. VSCode shows this:
Xcode build done. 11.9s
Failed to build iOS app
Error output from Xcode build:
↳
Exited (sigterm)
Could not build the precompiled application for the device.
Error launching application on iPhone.
And Xcode shows this:
Maybe it is because I run latest flutter version 1.20.4 and Passbase says that they have tested it with 1.17.5...
Any ideas what to do?
If you are using Passbase plugin version 1.9.5, you need to use Xcode 12.0. Or use plugin version 1.9.4 instead. The only change between these versions is that 1.9.5 was built using Xcode 12.0.
I have react native cli application and when I tried to run it on simulator using npx react-native run-ios command it builds app successfully, bundler gets started and it shows 100% complete of bundler process but on simulator app is not being installed.
Note: simulator opens automatically but app not installed. When I use Xcode to run app it is working fine
Can you please help me with this.
Video
Thanks
Finally I get it working by clearing all cash using DevCleaner(From app store) also deleted all core simulators and added few again. I specified name of simulator as well with command as npx react-native run-ios --simulator="iPhone 11"
enter image description hereI'm new to react native, I'm following the official React native's website to init a new project, try to run IOS. But, failed with the error below.
React-Native version 0.59
XCode 10.2
error Failed to build iOS project. We ran "xcodebuild" command but it
exited with error code 65. To debug build logs further, consider
building your app with Xcode.app, by opening HelloWorld.xcodeproj
When I run react-native run-ios --simulator="iPhone 7"
Error as below:
info Command PhaseScriptExecution failed with a nonzero exit code
info
error Failed to build iOS project. We ran "xcodebuild" command but it exited with error code 65. To debug build logs further, consider building your app with Xcode.app, by opening HelloWorld.xcodeproj
Starting the simulator : Once you have your React Native project initialized, you can run react-native run-ios inside the newly created project directory. If everything is set up correctly, you should see your new app running in the iOS Simulator shortly.
Specifying a device : You can specify the device the simulator should run with the --simulator flag, followed by the device name as a string. The default is "iPhone X". If you wish to run your app on an iPhone 4s, just run react-native run-ios --simulator="iPhone 4s".
The device names correspond to the list of devices available in Xcode. You can check your available devices by running xcrun simctllist devices from the console.
In my case, I was specifying a simulator, but I had a different simulator open. Targeting the one that was opened, or simply closing it fixed the issue.
try this and see if it works or not.
first go to to ios folder of the project in terminal.
for that you can use terminal in visual studio code.
cd ios then
pod install
go back (to app directory)
cd ..
npm install
npm start
take a new terminal then,
npx react-native run-ios
I'm making an iOS app in Cordova on MacOS.
When I run cordova emulate ios the app builds and it opens the emulator for iPhone X iOS 11.4 but it never install the app in the emulator. It just shows the emulator home screen. It just stops there.
Why is it getting here and not going any further?
UPDATE:
Now after trying to start the emulation again a second time, it gives the following error:
An error was encountered processing the command (domain=NSPOSIXErrorDomain, code=2):
Failed to install the requested application
An application bundle was not found at the provided path.
Provide a valid path to the desired application bundle.
I have the same issue. I have resolved by building the app with cordova. then get myapp.app and run it over the emulator. you can follow the below steps:
run iOS simulator
install Xcode
Open emulator
build the app after adding platform iOS
run the app with the emulator
install ios sims
npm install -g ios-sim#next
List available simulators
xcrun simctl list
https://www.anexinet.com/blog/install-app-ios-simulator/
xcrun simctl install XXXXXXX-YYYYYY-XXXX-ZZZZ-XXXXXXXXX ~/path_to_app/myapp.app
More info
https://github.com/aymansalama/cordova-build-macos
I have a problem for my IOS running Ionic V1 project.
I use last version of Xcode : V8.3.3
My Ionic CLI is V2.0.0
My Ionic Project is V1.0
My Device Iphone 6 IOS 10.3.2
My app is running fine on browser, and is running fine on emulator ios. Also my app is running fine on android device. Problem comes when I run on IOS device.
Through Xcode, I had many erros with provisionning profiles but now I don't have anymore and I use the Iphone Developer for signing certificate. I have no warning. But when I lanch "Run" command on device through Xcode, the app installs without any warnings and launch a blank screen with no error or output on the output console log of xcode.
So Xcode running devices gives me a blank app screen with no error.
Through "Ionic Run IOS" or "Ionic Run Ios --device" or "Ionic run ios -l -s --device" I have an error 65 Xcode : build failed with this error :
Check dependencies
signing for "MyApp" requires a development team. Select a development team in the project editor.
Code signing is required for product type 'Application' in SDK 'IOS 10.3'.
I have been looking on the web for days without any issue.
Please would someone help me to make this app working as I can publish it then with no blank screen..
Regards