Skip to content
This repository was archived by the owner on Sep 16, 2020. It is now read-only.

Is there an option for iOS simulator only? #82

Open
piosystems opened this issue May 19, 2020 · 5 comments
Open

Is there an option for iOS simulator only? #82

piosystems opened this issue May 19, 2020 · 5 comments

Comments

@piosystems
Copy link

Using client-maven-plugin, is there an option to build for iOS simulator only, without having to register a physical device using Xcode?

@odbuser2
Copy link

This would be supported in the maven-client-plugin by setting the target to ios-sim:

    <build>
        <plugins>
            <plugin>
                <groupId>com.gluonhq</groupId>
                <artifactId>client-maven-plugin</artifactId>
                <version>${client.plugin.version}</version>
                <configuration>
                    <!-- Uncomment to run on iOS: -->
                    <!--<target>ios</target>--> 
                    <!-- Uncomment to run on iOS simulator: -->
                    <target>ios-sim</target> 
                    <mainClass>${mainClassName}</mainClass>
                    <graalvmHome>{path to graal 20.1.0 with native image and llvm installed}</graalvmHome>
                </configuration>
            </plugin>
        </plugins>
    </build>

But it's not supported yet b/c you'll get an error like this:

java.lang.RuntimeException: Error downloading zips: Error: ~/.gluon/substrate/labs-staticjdk-ios-x86_64-gvm-15-ea+3.zip does not exist

They haven't created the static jdk zip for the ios sim which runs on x86-64.

This is not explained in https://docs.gluonhq.com/client/ nor https://github.com/gluonhq/client-maven-plugin/.

It used to work. Documentation and consistent cross platform support is not there yet... 1 thing is fixed and 10 other things are broken or changed. Lots of moving parts.

@piosystems
Copy link
Author

Is there an online documentation that contains information on the various configurations that can be applied to client-maven-plugin?

@jperedadnr
Copy link
Collaborator

all contain up-to-date information with the supported platforms and targets.

Platforms: Linux, Mac OS, Windows, iOS and Android
Possible target values: host (default, for Linux, Mac OS, Windows), ios (iOS), android (Android).

This is it for now. What it is not there it is not supported yet or experimental.

@piosystems
Copy link
Author

all contain up-to-date information with the supported platforms and targets.

Platforms: Linux, Mac OS, Windows, iOS and Android
Possible target values: host (default, for Linux, Mac OS, Windows), ios (iOS), android (Android).

This is it for now. What it is not there it is not supported yet or experimental.

Your feedback seems to imply that previous gluon mobile examples that are based on gradle (see https://github.com/gluonhq/gluon-samples) are now obsolete. Will there be replacement example equivalents, based on client-maven-plugin?

@jperedadnr
Copy link
Collaborator

Samples are being migrated here: https://github.com/gluonhq/gluon-samples/tree/substrate (few more pending https://github.com/gluonhq/gluon-samples/pulls). Work in progress for the rest.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants