Genero mobile development client for iOS
Set up a development environment to display app forms on an iOS device.
Installing the GMI front-end on iOS devices
To display Genero application forms on a device, the GMI front-end must be installed on the iOS device (or emulator).
- The ready-to-use "Genero Mobile Development Client" for iOS, available through the App Store.
Important: Due to AppleĀ® limitations, the Genero Mobile Development Client app is not allowed to listen to a TCP port to provide a GUI service. In order to establish the GUI front-end connection, the front-end must connect to the runtime system running on the development machine.
- A self-made GMI front-end, using the gmibuildtool to build a GMI front-end
app with your own Apple developer
account.Note: With this configuration, you can perform a classic GUI connection based on FGLSERVER.
Using the Genero Mobile Development Client for iOS
Go to the App Store. Search for "Genero Mobile". Select and install the "Genero Mobile Development Client".
Once the GMI development client is installed on the device, make sure that WIFI is enabled and start the GMI app.
--gui-listen
option.--gui-listen
fglrun option.fglrun
--gui-listen=portnum
command:fglrun --gui-listen=6500 main.42m
fgl://dev-server-hostname:6500
Then tap the [Connect] button to establish the GUI connection.
Build your own GMI front-end
In order to use the classic GUI connection mode with fglrun connecting to the mobile front-end via FGLSERVER, it is possible to create your own GMI front-end, with your own Apple certificate and provisioning profile.
The generated GMI can then be deployed on your device or simulator. The GMI front-end will listen on the port 6400, to display applications running on a server through the FGLSERVER setting.
Before creating your own GMI front-end, fullfill the prerequisites to build an iOS app as described in Building iOS apps with Genero.
- Make sure that the installed the fjs-fglgmi*.zip archive into FGLDIR.
- Go to the $FGLDIR/demo/MobileDemo/gmiclient directory.
- Delete the complete build directory if it exists (can be done with a make clean command).
- Compile the GMI front-end program files (main.42m, main.42f, etc): See Makefile for details.
- Build the GMI front-end:
- To build and install the GMI front-end on the simulator, first make sure that the simulator is
started (open -a Simulator command), then execute the make
command with the
gmi.install
rule:$ open -a Simulator $ make gmi.install
- To build and install the GMI front-end on the device plugged to your Mac, get a development
certificate and provisioning profile, then execute the make command with the
gmi.install
rule, by specifying theTARGET
, the IDENTITY and the PROVISIONING_PROFILE variables:$ make TARGET=phone IDENTITY=WKRRJZ999 \ PROVISIONING_PROFILE="~/Library/MobileDevice/Provisioning Profiles/myapp.mobileprovision" \ gmi.install
- To build and install the GMI front-end on the simulator, first make sure that the simulator is
started (open -a Simulator command), then execute the make
command with the
Once the GMI front-end is installed on the device, make sure that WIFI is enabled and start the GMI app.
The main GMI screen shows the IP address of the device and the TCP port it is listening to (0=6400).
On the development machine, define the FGLSERVER environment variable with the IP address of the device.
Now you are ready to run your app on the server and display on the iOS device.
Enabling Universal Rendering
Universal Rendering can be enabled by using the
gui.rendering
FGLPROFILE entry.