Access to ios simulator from runing docker container - docker

In Ionic or Expo(react-native) when youre developing your app you can run with android/ios simulator.
So in case of working on my local os it works perfectly! :)
However,If I want to develop my app via docker container, I could simply setup node env with ionic/expo cli globally installed.
So, is it possible to execute expo/ionic in simulator mode(i.e ionic run ios) inside docker but opening the xcode ios simulator on the local/host mac os?

Related

Run react-native on Ubuntu and iOS device (app was builded with xcode)

I have Mac for work with react-native and I have ubuntu pc for other tasks. I want build react-native app to my physical ios device, but work with code on my ubuntu laptop. Metro server will run on ubuntu.
I know I can change smth in schemas or another place, build app with xcode? connect ios with ubuntu laptop, run metro and I can work not on mac. But I can't find any information about it.
Anybody knows?

How to launch my Flutter app without the host computer?

I wanted to know how to launch my Flutter app without the host computer on my iOS 14+ devices. Because I disconnected to my host computer and it gave me some error, so that I don't have to go back to my Mac everytime and rebuild that app.
You can just run this command in your IDE (I did it with VSCode)
flutter run --release
It worked for me!

Can I run a React Native app on a real iOS device from Windows?

I have a Windows machine and an iPhone and I was wondering if it's possible to run React Native on iOS easily like I can on Android. If so, how can I do that?
No, you can't.
The only way is to install a virtual machine macos on windows like VMware or VirtualBox and run Xcode from it so you could run your app on IOS.

Targeting a particular device in the iOS simulator using Meteor

I'm currently developing a mobile app using Meteor v1.0 and trying to test iOS devices using the iOS Simulator.
For Cordova apps, I'm used to doing something like:
cordova emulate ios --target "iPad"
For Meteor, the alternative is:
meteor run ios
On my Mac, running the above Meteor command leads to the app being run on an iPhone 4S emulator. I'm unable to choose what device to emulate like I could when using Cordova.
I've tried switching device through the iOS Simulator after the app gets loaded initially but the app is not available on the device I switch to.
The only solution I have found is to navigate to the Cordova directory (.meteor/local/cordova-build) and run the iOS Simulator directly from Cordova.
Does anyone know a better solution by using Meteor itself or is this not currently possible? I haven't been able to find anything in the documentation. I'm open to testing it using something else but it would be nice to keep everything together with Meteor.
The current solution is to open Xcode by running meteor run ios-device and then select the correct simulator inside Xcode. Unfortunately, ios-sim (the package Meteor uses for the simulator) doesn't make it easy to select the device to simulate.
meteor run ios-device -p 3000 is what I do. Then download the phone gap app for iPad and run it on your IP:
ipconfig getifaddr en0
Then put that in on the phone gap app. So example: 192.168.0.8:3000

iOS emulator no longer running from command line using phonegap

My iOS emulator is no longer opening when I run "phonegap run ios" in the terminal on Mac OS X. I receive no error messages and:
[phonegap] Platform "ios" deployed to emulator.
[phonegap] successfully installed onto emulator
While this is currently a known bug, you can run the emulate command more directly (note you need to build separately):
phonegap local build ios
/platforms/ios/cordova/emulate
You can also run the application using the same technique:
phonegap local build ios
/platforms/ios/cordova/run
NOTE: When using this method to run the app on your phone, the task might get stuck on the splash screen. To fix this, launch the Activity Monitor on your Mac and quit any processes with the name "ios-deploy". From there you can launch the application on your phone by clicking the application icon.
Or, you can even look inside the generated /platforms/ios folder and launch XCode project directly to test in an emulator or on your device. Open project and click the RUN button.
IMPORTANT: with all of the above methods, you MUST run the build command before running:
phonegap local build ios
Not really an answer, but I can say this is a known bug. Here is the bug so you can track it:
https://issues.apache.org/jira/browse/CB-5103
I only had this problem after upgrading to 3.1. I downgraded to 3.0 and it works more reliably:
npm uninstall -g phonegap
npm install -g phonegap#3.0
Also had to delete the platform/ios dir and plugins/ios.json and then run 'phonegap build ios' and 'phonegap run ios'

Resources