gluongluon-mobilerobovm

How to testing Gluon app on iOS Simulator or Real Device?


The problem is related to my previous question when I try to execute the gluon application on iOS Device/simulator. It seem not working at all. It show me the following error:

Edited

I also checking this question, but It doesn't help me. So the question is How to make it working?

Noted I am using macOS Mojave 10.14.3 and Xcode 10.2.1

Build.gradle

buildscript {
    repositories {
        jcenter()
    }
    dependencies {
        classpath 'org.javafxports:jfxmobile-plugin:1.3.16'
    }
}
// Apply the plugin
apply plugin: 'org.javafxports.jfxmobile'

repositories {
    jcenter()
    maven {
        url 'http://nexus.gluonhq.com/nexus/content/repositories/releases'
    }
}

mainClassName = 'fr.cashmag.GluonApplication'
ext.GLUON_VERSION="5.0.2"
ext.CHARM_DOWN="3.8.6"

dependencies {
    compile "com.gluonhq:charm:$GLUON_VERSION"
    compile "com.gluonhq:charm-down-plugin-orientation:$CHARM_DOWN"
}

jfxmobile {
    downConfig {
        version = '3.8.6'
        // Do not edit the line below. Use Gluon Mobile Settings in your project context menu instead
        plugins 'display', 'lifecycle', 'orientation', 'statusbar', 'storage'
    }
    android {
        manifest = 'src/android/AndroidManifest.xml'
    }
    ios {
        infoPList = file('src/ios/Default-Info.plist')
        forceLinkClasses = [
                'com.gluonhq.**.*',
                'javax.annotations.**.*',
                'javax.inject.**.*',
                'javax.json.**.*',
                'org.glassfish.json.**.*'
        ]
    }
}

Solution

  • iOS simulator

    To solve the issue:

    Unable to find a matching device [arch=x86_64, family=iPhone, name=null, sdk=null]

    a possible solution is:

    Once the process is working you can revert the property to:

    robovm.ipaArchs=arm64:thumbv7
    

    in order to create the app for your device and for the Apple Store.

    iOS device

    To solve the issue:

    No provisioning profile and signing identity found that matches bundle ID

    you need to follow these steps, providing you are already enrolled in the Apple Developer program (otherwise you won't be able to distribute your app through the Apple Store):

    Note that you will have to use the distribution provisioning profile in the same way to sign the app you will be submitting to the Apple Store.

    EDIT

    If you are not enrolled in the Developer program, you can also use the free provisioning profile, that will let you test on your own device.

    For that, you have to follow these steps: