Build on iOS

0
I am trying to build Mendix Native app on iOS for the first time.on XCode , Build is successful.When I run on Emulator of iPhone 17 , it asks for Mendix RunTime URL , and after that it thows error that Development server is not running and it is looking at url at<Mendix RunTime>:8083However metro is running on localhost:8081 I have enabled Release mode on the Scheme. Why would the app still look for Metro on Remote Server ?Any configuration that I missing.
asked
2 answers
0

Hi Murali,

This is expected behavior when using the Native Mobile Developer App.


The app bundle is served from the Mendix Runtime on port 8083, while the Metro bundler typically runs on 8081. The app needs to connect to both during development.


A few things to check:

  • Make sure your Mendix Runtime is running.
  • Ensure your Mac and the iPhone simulator/device are on the same network (if you're using a physical device).
  • Instead of manually entering the runtime URL, scan the QR code from Mendix Studio Pro. This automatically configures the correct IP address and ports.
  • If you're using a simulator, ensure the Runtime is reachable from the simulator.


If you're building a Release build and it still tries to connect to the development server, verify that you're actually running the Release scheme and not the Developer App. For production builds, the JavaScript bundle should be embedded in the app and should not depend on Metro.


Kindly mark this as the accepted answer if it helps.

answered
0

Hi KK,


Running on Emulator , so , both the Metro and the Emulator on the same Mac.


My Mendix Runtime is hosted on Azure over FQDN ffmonmtest.xxx.com , and this accessible from the browser of the Emulator.


Why would Mendix attempt to append the port :8083 to the mendix RunTime ?


I am attaching the error stack.


answered