Unable to install react native application on my iOS device - javascript

I have built a React Native app on Mac OS. I can build the app on device, but when I eject the cable, the app is disappeared. I want this app to stay in my phone permanently but it doesn't.

You need to create a production build of your app to make it "stay".
Visit this link https://facebook.github.io/react-native/docs/running-on-device
Select iOS & Mac OS
Scroll down to 3. Build app for release and follow the instructions there.
You can then use the release file to install the app permanently on your device.

For me, I had the previous version of the app still running in the background when trying to install. I quit the app in the background and the installation succeeded.

Related

How to run Electron Application as a Windows Service

I have an Electron Desktop App currently being started via npm run start
I want to turn this into a windows service so that it will start up automatically upon login. Is there any way to do this?
You want to Google "Run and RunOnce Registry Keys."

Different of React Native Android and React Native IOS

i'm new in mobile development
I wasn't never using MacOS before, and now i'm trying to build a crossplatform mobile app using React Native
The android mobile app is already built and run normally
But for now i'm trying to develop the app into ios mobile app use MacOS inside VMWare
And i have some question for it
Can i instantly copy my project which was built at windows OS(Android) to MacOS then run it?
Do i need to do extra things if i i can only copy my project from Windows OS to MacOS?
What is cd ios && pod install and what time should i run this script?
Why windows can't be used for developing ios app?
Can i connect my VMWare MacOS directly to my iPhone directly using WiFi?
Sorry i'm still a newbie and please apologize me if i have an unnecessary questions

How to generate apk of react native app without Android Studio

I have developed a react native app without installing Android Studio. Though I have installed some tools which were absolutely needed for the development.
My Android folder structure is something like this:
Android
.temp
build-tools
cmdline-tools
emulator
licences
patcher
platforms
platform-tools
tools
.knownPackages
Now that I have completed making my app with react native, I want to build an apk (valid and signed) of that and upload it to google drive as of now and share it with my friends, But the problem is, my potato cannot support Android Studio
I could have used expo, but everyone who wants to install my app will have to install expo client app first which is a problem
I hope my sisters and brothers will help me, I am completely new to android-development.
Thanks.
EDIT:-
I was using a real android device for development till now
This solution is for React-Native CLI , don't know it will work with EXPO.
first generate keystore file using in terminal go to java bin folder and then run this
keytool -genkeypair -v -keystore my-upload-key.keystore -alias my-key-alias -keyalg RSA -keysize 2048 -validity 10000
after that paste that generated keystore file in your android app folder
after that you have to add configuration in your gradlw.properties file
MYAPP_UPLOAD_STORE_FILE=my-upload-key.keystore
MYAPP_UPLOAD_KEY_ALIAS=my-key-alias
MYAPP_UPLOAD_STORE_PASSWORD=*****
MYAPP_UPLOAD_KEY_PASSWORD=*****
and also change in app/build.gradle file :
...
android {
...
defaultConfig { ... }
signingConfigs {
release {
if (project.hasProperty('MYAPP_UPLOAD_STORE_FILE')) {
storeFile file(MYAPP_UPLOAD_STORE_FILE)
storePassword MYAPP_UPLOAD_STORE_PASSWORD
keyAlias MYAPP_UPLOAD_KEY_ALIAS
keyPassword MYAPP_UPLOAD_KEY_PASSWORD
}
}
}
buildTypes {
release {
...
signingConfig signingConfigs.release
}
}
}
...
then
$ cd android
$ ./gradlew bundleRelease
for better guidence visit :
https://reactnative.dev/docs/signed-apk-android
If you are using Expo managed flow then you dont need any IDE for build creation, not even macOS machine for ipa, just couple of commands and your build will be ready in 30 min depending upon queue on turtle server.
If you are working with bareflow or React CLI then. you will. be needing assistance of IDE for build creation of both platforms and mac machine for iOS.
For help on commands for build creation on expo managed flow, use this link
Creating android build from Android studio, you can take help from here
Regarding your concern related to build sharing, expo gives you a link from where people can download the APK or IPA. That would ease out the problem related to build sharing

Can NativeScript SideKick run iOS apps on Windows?

I have been recently experimenting with NativeScript and I have come across NativeScript SideKick which is suppose to build iOS apps in Windows using a cloud feature.
NativeScript SideKick
But how can you run this build in an iOS emulator on Windows, has anyone tried this before?
According to #JenLooper in this video 9.25s, she states that it is/will by possible but building app via cloud
Yes and NO.
YES
Using the cloud build feature you can build for iOS and run this build on a connected iOS device AND/OR publish to the iOS App store.
NO
There is currently no emulator fo IOS that will run on windows.

Cordova/Phonegap app is not showing the changes I've made in the jade files

I'm using grunt to show my changes that I've made in sublime text. But whenever i use cordova prepare, cordova build android, and cordova run android it only shows the previous version of the app on the emulator and my android device.
my changes were not navigating to the cordova folder because I didn't run grunt build-ios in the command line.

Categories

Resources