I want to create an (template) expo go app in VS Code with npm start. The (iOS) simulator opens, but the Expo Go app does not. When clicked it opens and immediately closes without any errors or warnings, neither in the terminal nor in the simulator.
I am using ruby v3.2.0, node v18.13.0, watchman 2023.01.30.00, npm 8.19.3. The dependencies in the package.json are below. I tried different versions of iOS simulators, but neither works (iPhone SE and iPhone 14). It does work on a device and in a browser. I tried reinstalling all systems and suggestions from https://blog.expo.dev/expo-sdk-43-aa9b3c7d5541.
Any ideas?
"dependencies": {
"expo": "~47.0.12",
"expo-status-bar": "~1.4.2",
"react": "18.1.0",
"react-native": "0.70.5"
},
"devDependencies": {
"#babel/core": "^7.12.9"
},
i had the same problem, if you are using a m1 macbook, you have to download rosetta because expo was created for intel chips.
Related
I have problem with running expo, newly created app (empty Hello World!). It works perfectly with android studio emulator, but when I try to open it on the IOS simulator Expo go app is being installed, but app is not starting. It looks like crash without any errors in console (expo app splash screen is visible for a moment, then app disappears).
My Xcode app is updated
My dependencies:
"expo": "~47.0.8",
"expo-status-bar": "~1.4.2",
"react": "18.1.0",
"react-native": "0.70.5"
I tried:
granting different permissions for Xcode app on my macOS
removing node_modules and package-lock.json and installing dependencies again (npm install)
removing .expo directory
using different ios simulators
uninstalling expo app on simulators and resetting them
I also followed expo documentation and I have Xcode command line tools installed (https://docs.expo.dev/workflow/ios-simulator/)
Any suggestions?
You might need to install Rosetta if you are working on an M1 MacBook, because expo was created for intel chips.
softwareupdate --install-rosetta
Expo Go app in simulator closes automatically without errors
As the title of the question says, it was working couple of days ago, but now, whatever I do, I get warn No apps connected. Sending "reload" to all React Native apps failed. Make sure your app is running in the simulator or on a phone connected via USB. especially when trying to run on iOS simulator. It works fine on android physical device, it is only on iOS simulator. My app just get stuck on splash screen and after that if I press r on metro bundler to reload, it throws this warning.
Note -> this happens with both npx react-native run-ios command and running with XCode.
What I have tried:
cleaning Pods cache, clean build, build again. (Didn't work).
reinstalling pods, build again. (Didn't work).
using different iOS simulator, same issue.
uninstalling, resinstalling app on simulator, didn't work.
Xcode scheme is set to "Debug" and not "release".
tried running yarn start --reset-cache. (Didn't work).
It is happening on all simulators (iOS only).
package.json:
"dependencies": {
...,
"react": "18.0.0",
"react-native": "0.69.2",
...,
},
What could go wrong? can someone shed some light?
If you are facing this issue after installing react-native-splash-screen the you might have placed [RNSplashScreen show]; at the top or middle of the method.
You should place this [RNSplashScreen show]; at the bottom of method before return YES;
My issue is I keep getting rejected by the Apple store for having UIWeb in my plugins. So I've upgraded all of my plugins but my issue is Google Plus won't install with cordova-ios 6.x. I can only get Google Plus installed with cordova-ios 5.1.1. The conflict is that cordova inapp browser won't install on 5.1.1, it needs 6.x or greater. I'm not sure how to resolve this issue with two different cordova plugins requiring different cordova-ios versions.
Is there an alternative to inapp browser?
Is there a way to open browser links from ionic without inapp browser?
"cordova-ios": "^6.0.0",
"cordova-plugin-androidx": "^3.0.0",
"cordova-plugin-androidx-adapter": "^1.1.3",
"cordova-plugin-device": "^2.0.3",
"cordova-plugin-firebase-analytics": "^5.0.0",
"cordova-plugin-firebase-messaging": "^5.0.1",
"cordova-plugin-geolocation": "^4.1.0",
"cordova-plugin-googleplus": "^8.5.2",
"cordova-plugin-inappbrowser": "^5.0.0",
To answer your specific question, yes there is. You can open links in the user's default browser using window.open as follows:
window.open('https://www.andreszsogon.com/', '_system');
Unfortunately the only solution I could find for this scenario was to cave to the demands of InAppBrowser.
You start by removing your existing iOS platform:
ionic cordova platforms remove ios
You then install ios#6.0.0, specifically:
ionic cordova platforms add ios#6.0.0
As a bonus side-note, if you are using Stripe you may encounter a bug where Stripe keeps popping up on app launch, that's apparently, allegedly due to spying.
I am facing some errors while running the command react-native run-ios .
Everything is fine and there are no errors in the code or libraries.
I am facing issues while building the project files.
Below is the screenshot for the same:
"react": "16.13.1",
"react-native": "0.63.4",
My simulator gets opened but the application is not getting installed.
InAppBrowser works fine on android but on iOS I get the following error:
Native: InAppBrowser is not installed or you are running on a browser. Falling back to window.open.
this.inAppBro.create('https://www.google.com', `_blank`);
on Android the URL opens fine but on iOS I get the error saying it isn't installed and I'm not sure why.
"cordova-plugin-inappbrowser": "^4.0.0",
9.0.0 (cordova-lib#9.0.1)
6.0.1
Probably the build process didn't complete correctly. Build the project again after deleting the node_modules, plugins & www folder in your root project folder. Then run ionic cordova build ios --prod
After the successful build, Go to -> platforms->iOS->"your project name folder"->Plugins and ensure that cordova-plugin-inappbrowser folder is present there