How should I start with IOS?

No, imgur was cropping it because you used the landing page URL instead of the actual image URL. I fixed it for you.

1 Like

You need to strip it right down. Clearly some of the libraries you are using don’t work.
You don’t need DESKTOP for iOS.
Never tried lemur. All my GUI was done in XCODE with native GUI. I could never get NIFTY or TONEGOD to work in iOS so i didn’t use any jMonkey GUI.
No idea about Lemur but I’m sure it will have the same issues.
Some of the libraries you are using I don’t even recognise.
SVG???
JMEInterface???
GUAVA???
SLF4J API?

I would recommend ripping them all out and compile with the standard libraries and add them back in one at a time and find out which one fails.
If I was to guess Lemur is the culprit.

Lemur is just using JME objects. Mesh, Geometry, etc…

If you leave out the groovy stuff there is generally no special issues. It’s even using standard JME materials.

On Android, only the groovy style stuff causes any problems and they are surmountable there, I guess. Some of the groovy files just need to be merged, etc…

Edit: but if it is Lemur then it’s likely a similar “duplicate resources” thing… that’s going to be relatively common among third party jars, I think.

The real problem here is the output. Could you maybe show us line 179 of ios-impl.xml, so we can see what command exatly failed?

174-186

<target name="-make-ios-bootimage" unless="ios.images.uptodate" depends="-check-images-uptodate" description="Creates the iOS boot image and code image">
        <mkdir dir="${ios.build.libs.dir}"/>
        <delete file="${ios.build.bootimage.o}"/>
        <delete file="${ios.build.codeimage.o}"/>
        <echo>Creating iOS bootimage and codeimage for ${ios.arch}</echo>
        <exec executable="${ios.avian.bootimage-generator}" failonerror="true"> //179
            <arg line="-cp ${ios.build.classes.dir}"/>
            <arg line="-bootimage ${ios.build.bootimage.o}"/>
            <arg line="-codeimage ${ios.build.codeimage.o}"/>
        </exec>
        <touch file="${ios.images.checkfile}" verbose="false"/>
    </target>

then you should copy the commandline and try to execute it like that and see what the error is.

how did you get on?

I’m not really sure what the question is here…

I was wondering if you managed to get the basic project to compile on iOS. I’m happy to help with the iOS side and with the guide I put together. I was however, making the assumption in my guide that you had a successful compile at least before trying to get it to work on Apple devices. Let me know if you need any help once you get to that point.

Well the game itself compiles. Just not the ios part. I can’t seem to make it find jni.h

What version of Xcode do you have installed?

Send the full error log.

In the screen where you enable iOS there is a version number combo box.

The default is ‘DEFAULT’. You need to choose a specific version or it may not compile.

If I selected default it brings up a different error but it fails in the same place.

Was set to iOS 12

Well if #include <jni.h> doesn’t work it means you lack a jdk which is installed so that the header file is in the system search path.
java - JNI Headers not found from xcode - Stack Overflow maybe something like this helps?
Have you tried googleing?

Maybe you need to install a new jdk on your system if you had any?

I could swear that this include path is already configured, but maybe for java 5 and nowadays mac os ships with java 8

you might struggle to find jdk 7 now. jdk 8 should also work fine.

Download it from here:
JDK 8 u202

Don’t forget to update your JDK in Project Settings/Libraries/Manage Platforms

Leave the source binary format as JDK 7 though.
image

JDK is already installed… JDK 8 u201

It IS related to JDK. Your paths are not configured properly and I can see from your log that you have not configured the JAVA PLATFORM against your project like I suggested above or it would show the full path to your JDK which it does not!!

Below is the output you should get.

init:
deps-clean:
Updating property file: /Users/anthonywilshaw/Documents/JME/Engine/jmonkeyengine/BasicGame11/build/built-clean.properties
Deleting directory /Users/anthonywilshaw/Documents/JME/Engine/jmonkeyengine/BasicGame11/build
clean:
Building jar: /Users/anthonywilshaw/Documents/JME/Engine/jmonkeyengine/BasicGame11/build/assets.jar
init:
deps-jar:
Updating property file: /Users/anthonywilshaw/Documents/JME/Engine/jmonkeyengine/BasicGame11/build/built-jar.properties
Created dir: /Users/anthonywilshaw/Documents/JME/Engine/jmonkeyengine/BasicGame11/build/classes
Created dir: /Users/anthonywilshaw/Documents/JME/Engine/jmonkeyengine/BasicGame11/build/empty
Created dir: /Users/anthonywilshaw/Documents/JME/Engine/jmonkeyengine/BasicGame11/build/generated-sources/ap-source-output
Compiling 1 source file to /Users/anthonywilshaw/Documents/JME/Engine/jmonkeyengine/BasicGame11/build/classes
warning: [options] bootstrap class path not set in conjunction with -source 1.7
1 warning
compile:
Created dir: /Users/anthonywilshaw/Documents/JME/Engine/jmonkeyengine/BasicGame11/dist
Copying 1 file to /Users/anthonywilshaw/Documents/JME/Engine/jmonkeyengine/BasicGame11/build
Copy libraries to /Users/anthonywilshaw/Documents/JME/Engine/jmonkeyengine/BasicGame11/dist/lib.
Building jar: /Users/anthonywilshaw/Documents/JME/Engine/jmonkeyengine/BasicGame11/dist/MyGame.jar
To run this application from the command line without Ant, try:
/Library/Java/JavaVirtualMachines/jdk1.8.0_202.jdk/Contents/Home/bin/java -jar "/Users/anthonywilshaw/Documents/JME/Engine/jmonkeyengine/BasicGame11/dist/MyGame.jar"
build-ios:
init:
Created dir: /Users/anthonywilshaw/Documents/JME/Engine/jmonkeyengine/BasicGame11/build/ios-classpath/build
Compiling 1 source file to /Users/anthonywilshaw/Documents/JME/Engine/jmonkeyengine/BasicGame11/build/ios-classpath/build
Copying 1 file to /Users/anthonywilshaw/Documents/JME/Engine/jmonkeyengine/BasicGame11/build/ios-classpath/build
Created dir: /Users/anthonywilshaw/Documents/JME/Engine/jmonkeyengine/BasicGame11/build/ios-classpath/classpath
Packaging iOS classpath and resources
ProGuard, version 5.2.1
Reading program directory [/Users/anthonywilshaw/Library/Application Support/jmonkeyplatform/v3.2.0-stable-sdk1/avian-openjdk/classpath]
Reading program directory [/Users/anthonywilshaw/Documents/JME/Engine/jmonkeyengine/BasicGame11/build/ios-classpath/build]
Reading program jar [/Users/anthonywilshaw/Documents/JME/Engine/jmonkeyengine/BasicGame11/dist/lib/assets.jar]
Reading program jar [/Users/anthonywilshaw/Documents/JME/Engine/jmonkeyengine/BasicGame11/dist/lib/gson-2.8.1.jar]
Reading program jar [/Users/anthonywilshaw/Documents/JME/Engine/jmonkeyengine/BasicGame11/dist/lib/j-ogg-all-1.0.0.jar]
Reading program jar [/Users/anthonywilshaw/Documents/JME/Engine/jmonkeyengine/BasicGame11/dist/lib/jinput-2.0.5.jar]
Reading program jar [/Users/anthonywilshaw/Documents/JME/Engine/jmonkeyengine/BasicGame11/dist/lib/jinput-platform-2.0.5-natives-linux.jar]
Reading program jar [/Users/anthonywilshaw/Documents/JME/Engine/jmonkeyengine/BasicGame11/dist/lib/jinput-platform-2.0.5-natives-osx.jar]
Reading program jar [/Users/anthonywilshaw/Documents/JME/Engine/jmonkeyengine/BasicGame11/dist/lib/jinput-platform-2.0.5-natives-windows.jar]
Reading program jar [/Users/anthonywilshaw/Documents/JME/Engine/jmonkeyengine/BasicGame11/dist/lib/jme3-bullet-3.2.0-stable.jar]
Reading program jar [/Users/anthonywilshaw/Documents/JME/Engine/jmonkeyengine/BasicGame11/dist/lib/jme3-core-3.2.0-stable.jar]
Reading program jar [/Users/anthonywilshaw/Documents/JME/Engine/jmonkeyengine/BasicGame11/dist/lib/jme3-effects-3.2.0-stable.jar]
Reading program jar [/Users/anthonywilshaw/Documents/JME/Engine/jmonkeyengine/BasicGame11/dist/lib/jme3-ios-3.2.0-stable.jar]
Reading program jar [/Users/anthonywilshaw/Documents/JME/Engine/jmonkeyengine/BasicGame11/dist/lib/jme3-jogg-3.2.0-stable.jar]
Reading program jar [/Users/anthonywilshaw/Documents/JME/Engine/jmonkeyengine/BasicGame11/dist/lib/jme3-networking-3.2.0-stable.jar]
Reading program jar [/Users/anthonywilshaw/Documents/JME/Engine/jmonkeyengine/BasicGame11/dist/lib/jme3-plugins-3.2.0-stable.jar]
Reading program jar [/Users/anthonywilshaw/Documents/JME/Engine/jmonkeyengine/BasicGame11/dist/lib/jme3-terrain-3.2.0-stable.jar]
Reading program jar [/Users/anthonywilshaw/Documents/JME/Engine/jmonkeyengine/BasicGame11/dist/lib/jutils-1.0.0.jar]
Reading program jar [/Users/anthonywilshaw/Documents/JME/Engine/jmonkeyengine/BasicGame11/dist/lib/lwjgl-2.9.3.jar]
Reading program jar [/Users/anthonywilshaw/Documents/JME/Engine/jmonkeyengine/BasicGame11/dist/lib/lwjgl-platform-2.9.3-natives-linux.jar]
Reading program jar [/Users/anthonywilshaw/Documents/JME/Engine/jmonkeyengine/BasicGame11/dist/lib/lwjgl-platform-2.9.3-natives-osx.jar]
Reading program jar [/Users/anthonywilshaw/Documents/JME/Engine/jmonkeyengine/BasicGame11/dist/lib/lwjgl-platform-2.9.3-natives-windows.jar]
Reading program jar [/Users/anthonywilshaw/Documents/JME/Engine/jmonkeyengine/BasicGame11/dist/MyGame.jar]
Preparing output jar [/Users/anthonywilshaw/Documents/JME/Engine/jmonkeyengine/BasicGame11/build/ios-classpath/resources.jar]
Preparing output directory [/Users/anthonywilshaw/Documents/JME/Engine/jmonkeyengine/BasicGame11/build/ios-classpath/classpath] (filtered)
  Copying resources from program directory [/Users/anthonywilshaw/Library/Application Support/jmonkeyplatform/v3.2.0-stable-sdk1/avian-openjdk/classpath]
  Copying resources from program directory [/Users/anthonywilshaw/Documents/JME/Engine/jmonkeyengine/BasicGame11/build/ios-classpath/build]
  Copying resources from program jar [/Users/anthonywilshaw/Documents/JME/Engine/jmonkeyengine/BasicGame11/dist/lib/assets.jar]
Warning: can't write resource [META-INF/MANIFEST.MF] (Duplicate zip entry [assets.jar:META-INF/MANIFEST.MF])
  Copying resources from program jar [/Users/anthonywilshaw/Documents/JME/Engine/jmonkeyengine/BasicGame11/dist/lib/gson-2.8.1.jar]
Warning: can't write resource [META-INF/MANIFEST.MF] (Duplicate zip entry [gson-2.8.1.jar:META-INF/MANIFEST.MF])
  Copying resources from program jar [/Users/anthonywilshaw/Documents/JME/Engine/jmonkeyengine/BasicGame11/dist/lib/j-ogg-all-1.0.0.jar]
Warning: can't write resource [META-INF/MANIFEST.MF] (Duplicate zip entry [j-ogg-all-1.0.0.jar:META-INF/MANIFEST.MF])
Warning: can't write resource [META-INF/services/javax.sound.sampled.spi.AudioFileReader] (Duplicate zip entry [j-ogg-all-1.0.0.jar:META-INF/services/javax.sound.sampled.spi.AudioFileReader])
  Copying resources from program jar [/Users/anthonywilshaw/Documents/JME/Engine/jmonkeyengine/BasicGame11/dist/lib/jinput-2.0.5.jar]
Warning: can't write resource [META-INF/MANIFEST.MF] (Duplicate zip entry [jinput-2.0.5.jar:META-INF/MANIFEST.MF])
  Copying resources from program jar [/Users/anthonywilshaw/Documents/JME/Engine/jmonkeyengine/BasicGame11/dist/lib/jinput-platform-2.0.5-natives-linux.jar]
  Copying resources from program jar [/Users/anthonywilshaw/Documents/JME/Engine/jmonkeyengine/BasicGame11/dist/lib/jinput-platform-2.0.5-natives-osx.jar]
  Copying resources from program jar [/Users/anthonywilshaw/Documents/JME/Engine/jmonkeyengine/BasicGame11/dist/lib/jinput-platform-2.0.5-natives-windows.jar]
  Copying resources from program jar [/Users/anthonywilshaw/Documents/JME/Engine/jmonkeyengine/BasicGame11/dist/lib/jme3-bullet-3.2.0-stable.jar]
Warning: can't write resource [META-INF/MANIFEST.MF] (Duplicate zip entry [jme3-bullet-3.2.0-stable.jar:META-INF/MANIFEST.MF])
  Copying resources from program jar [/Users/anthonywilshaw/Documents/JME/Engine/jmonkeyengine/BasicGame11/dist/lib/jme3-core-3.2.0-stable.jar]
Warning: can't write resource [META-INF/MANIFEST.MF] (Duplicate zip entry [jme3-core-3.2.0-stable.jar:META-INF/MANIFEST.MF])
  Copying resources from program jar [/Users/anthonywilshaw/Documents/JME/Engine/jmonkeyengine/BasicGame11/dist/lib/jme3-effects-3.2.0-stable.jar]
Warning: can't write resource [META-INF/MANIFEST.MF] (Duplicate zip entry [jme3-effects-3.2.0-stable.jar:META-INF/MANIFEST.MF])
  Copying resources from program jar [/Users/anthonywilshaw/Documents/JME/Engine/jmonkeyengine/BasicGame11/dist/lib/jme3-ios-3.2.0-stable.jar]
Warning: can't write resource [META-INF/MANIFEST.MF] (Duplicate zip entry [jme3-ios-3.2.0-stable.jar:META-INF/MANIFEST.MF])
  Copying resources from program jar [/Users/anthonywilshaw/Documents/JME/Engine/jmonkeyengine/BasicGame11/dist/lib/jme3-jogg-3.2.0-stable.jar]
Warning: can't write resource [META-INF/MANIFEST.MF] (Duplicate zip entry [jme3-jogg-3.2.0-stable.jar:META-INF/MANIFEST.MF])
  Copying resources from program jar [/Users/anthonywilshaw/Documents/JME/Engine/jmonkeyengine/BasicGame11/dist/lib/jme3-networking-3.2.0-stable.jar]
Warning: can't write resource [META-INF/MANIFEST.MF] (Duplicate zip entry [jme3-networking-3.2.0-stable.jar:META-INF/MANIFEST.MF])
  Copying resources from program jar [/Users/anthonywilshaw/Documents/JME/Engine/jmonkeyengine/BasicGame11/dist/lib/jme3-plugins-3.2.0-stable.jar]
Warning: can't write resource [META-INF/MANIFEST.MF] (Duplicate zip entry [jme3-plugins-3.2.0-stable.jar:META-INF/MANIFEST.MF])
  Copying resources from program jar [/Users/anthonywilshaw/Documents/JME/Engine/jmonkeyengine/BasicGame11/dist/lib/jme3-terrain-3.2.0-stable.jar]
Warning: can't write resource [META-INF/MANIFEST.MF] (Duplicate zip entry [jme3-terrain-3.2.0-stable.jar:META-INF/MANIFEST.MF])
  Copying resources from program jar [/Users/anthonywilshaw/Documents/JME/Engine/jmonkeyengine/BasicGame11/dist/lib/jutils-1.0.0.jar]
Warning: can't write resource [META-INF/MANIFEST.MF] (Duplicate zip entry [jutils-1.0.0.jar:META-INF/MANIFEST.MF])
  Copying resources from program jar [/Users/anthonywilshaw/Documents/JME/Engine/jmonkeyengine/BasicGame11/dist/lib/lwjgl-2.9.3.jar]
Warning: can't write resource [META-INF/MANIFEST.MF] (Duplicate zip entry [lwjgl-2.9.3.jar:META-INF/MANIFEST.MF])
  Copying resources from program jar [/Users/anthonywilshaw/Documents/JME/Engine/jmonkeyengine/BasicGame11/dist/lib/lwjgl-platform-2.9.3-natives-linux.jar]
Warning: can't write resource [META-INF/MANIFEST.MF] (Duplicate zip entry [lwjgl-platform-2.9.3-natives-linux.jar:META-INF/MANIFEST.MF])
  Copying resources from program jar [/Users/anthonywilshaw/Documents/JME/Engine/jmonkeyengine/BasicGame11/dist/lib/lwjgl-platform-2.9.3-natives-osx.jar]
Warning: can't write resource [META-INF/MANIFEST.MF] (Duplicate zip entry [lwjgl-platform-2.9.3-natives-osx.jar:META-INF/MANIFEST.MF])
  Copying resources from program jar [/Users/anthonywilshaw/Documents/JME/Engine/jmonkeyengine/BasicGame11/dist/lib/lwjgl-platform-2.9.3-natives-windows.jar]
Warning: can't write resource [META-INF/MANIFEST.MF] (Duplicate zip entry [lwjgl-platform-2.9.3-natives-windows.jar:META-INF/MANIFEST.MF])
  Copying resources from program jar [/Users/anthonywilshaw/Documents/JME/Engine/jmonkeyengine/BasicGame11/dist/MyGame.jar]
Warning: can't write resource [META-INF/MANIFEST.MF] (Duplicate zip entry [MyGame.jar:META-INF/MANIFEST.MF])
Expanding: /Users/anthonywilshaw/Documents/JME/Engine/jmonkeyengine/BasicGame11/build/ios-classpath/classpath/MyGame.jar into /Users/anthonywilshaw/Documents/JME/Engine/jmonkeyengine/BasicGame11/build/ios-classpath/classpath
Expanding: /Users/anthonywilshaw/Documents/JME/Engine/jmonkeyengine/BasicGame11/build/ios-classpath/classpath/gson-2.8.1.jar into /Users/anthonywilshaw/Documents/JME/Engine/jmonkeyengine/BasicGame11/build/ios-classpath/classpath
Expanding: /Users/anthonywilshaw/Documents/JME/Engine/jmonkeyengine/BasicGame11/build/ios-classpath/classpath/j-ogg-all-1.0.0.jar into /Users/anthonywilshaw/Documents/JME/Engine/jmonkeyengine/BasicGame11/build/ios-classpath/classpath
Expanding: /Users/anthonywilshaw/Documents/JME/Engine/jmonkeyengine/BasicGame11/build/ios-classpath/classpath/jme3-bullet-3.2.0-stable.jar into /Users/anthonywilshaw/Documents/JME/Engine/jmonkeyengine/BasicGame11/build/ios-classpath/classpath
Expanding: /Users/anthonywilshaw/Documents/JME/Engine/jmonkeyengine/BasicGame11/build/ios-classpath/classpath/jme3-core-3.2.0-stable.jar into /Users/anthonywilshaw/Documents/JME/Engine/jmonkeyengine/BasicGame11/build/ios-classpath/classpath
Expanding: /Users/anthonywilshaw/Documents/JME/Engine/jmonkeyengine/BasicGame11/build/ios-classpath/classpath/jme3-ios-3.2.0-stable.jar into /Users/anthonywilshaw/Documents/JME/Engine/jmonkeyengine/BasicGame11/build/ios-classpath/classpath
Expanding: /Users/anthonywilshaw/Documents/JME/Engine/jmonkeyengine/BasicGame11/build/ios-classpath/classpath/jme3-jogg-3.2.0-stable.jar into /Users/anthonywilshaw/Documents/JME/Engine/jmonkeyengine/BasicGame11/build/ios-classpath/classpath
Expanding: /Users/anthonywilshaw/Documents/JME/Engine/jmonkeyengine/BasicGame11/build/ios-classpath/classpath/jme3-plugins-3.2.0-stable.jar into /Users/anthonywilshaw/Documents/JME/Engine/jmonkeyengine/BasicGame11/build/ios-classpath/classpath
Expanding: /Users/anthonywilshaw/Documents/JME/Engine/jmonkeyengine/BasicGame11/build/ios-classpath/classpath/jme3-terrain-3.2.0-stable.jar into /Users/anthonywilshaw/Documents/JME/Engine/jmonkeyengine/BasicGame11/build/ios-classpath/classpath
Created dir: /Users/anthonywilshaw/Documents/JME/Engine/jmonkeyengine/BasicGame11/build/ios-arm/libs
Creating iOS resources object file for arm
Creating iOS bootimage and codeimage for arm
class count 3804 string count 14634 call count 27715
heap size 12777712 code size 9419440
Compiling native code for arm
/Users/anthonywilshaw/Documents/JME/Engine/jmonkeyengine/BasicGame11/ios/src/JmeAppHarness.m:53:5: warning: 'UIAlertView' is deprecated: first deprecated in iOS 9.0 - UIAlertView is deprecated. Use UIAlertController with a preferredStyle of UIAlertControllerStyleAlert instead [-Wdeprecated-declarations]
    UIAlertView *alert = [[UIAlertView alloc] initWithTitle : @"Message"
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS11.3.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIAlertView.h:26:12: note: 'UIAlertView' has been explicitly marked deprecated here
@interface UIAlertView : UIView
/Users/anthonywilshaw/Documents/JME/Engine/jmonkeyengine/BasicGame11/ios/src/JmeAppHarness.m:53:40: warning: 'UIAlertView' is deprecated: first deprecated in iOS 9.0 - UIAlertView is deprecated. Use UIAlertController with a preferredStyle of UIAlertControllerStyleAlert instead [-Wdeprecated-declarations]
    UIAlertView *alert = [[UIAlertView alloc] initWithTitle : @"Message"
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS11.3.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIAlertView.h:26:12: note: 'UIAlertView' has been explicitly marked deprecated here
@interface UIAlertView : UIView
2 warnings generated.
/Users/anthonywilshaw/Documents/JME/Engine/jmonkeyengine/BasicGame11/ios/src/com_jme3_audio_android_AndroidOpenALSoftAudioRenderer.c:44:33: warning: format specifies type 'int' but the argument has type 'void *' [-Wformat]
    fprintf(stderr, "NULL: %d", NULL);
                           ~~   ^~~~
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/clang/9.1.0/include/stddef.h:105:16: note: expanded from macro 'NULL'
#  define NULL ((void*)0)
               ^~~~~~~~~~
/Users/anthonywilshaw/Documents/JME/Engine/jmonkeyengine/BasicGame11/ios/src/com_jme3_audio_android_AndroidOpenALSoftAudioRenderer.c:45:44: warning: format specifies type 'int' but the argument has type 'ALCcontext *' (aka 'struct ALCcontext_struct *') [-Wformat]
    fprintf(stderr, "Created context: %d", ctx);
                                      ~~   ^~~
/Users/anthonywilshaw/Documents/JME/Engine/jmonkeyengine/BasicGame11/ios/src/com_jme3_audio_android_AndroidOpenALSoftAudioRenderer.c:46:49: warning: format specifies type 'int' but the argument has type 'ALCcontext **' (aka 'struct ALCcontext_struct **') [-Wformat]
    fprintf(stderr, "Created context addr: %d", &ctx);
                                           ~~   ^~~~
/Users/anthonywilshaw/Documents/JME/Engine/jmonkeyengine/BasicGame11/ios/src/com_jme3_audio_android_AndroidOpenALSoftAudioRenderer.c:83:60: warning: format specifies type 'int' but the argument has type 'ALCdevice *' (aka 'struct ALCdevice_struct *') [-Wformat]
        fprintf(stderr, "alcGetContextsDevice device: %d", device);
                                                      ~~   ^~~~~~
/Users/anthonywilshaw/Documents/JME/Engine/jmonkeyengine/BasicGame11/ios/src/com_jme3_audio_android_AndroidOpenALSoftAudioRenderer.c:84:65: warning: format specifies type 'int' but the argument has type 'ALCdevice **' (aka 'struct ALCdevice_struct **') [-Wformat]
        fprintf(stderr, "alcGetContextsDevice device addr: %d", &device);
                                                           ~~   ^~~~~~~
/Users/anthonywilshaw/Documents/JME/Engine/jmonkeyengine/BasicGame11/ios/src/com_jme3_audio_android_AndroidOpenALSoftAudioRenderer.c:150:1: warning: control may reach end of non-void function [-Wreturn-type]
}
6 warnings generated.
/Users/anthonywilshaw/Documents/JME/Engine/jmonkeyengine/BasicGame11/ios/src/jme-ios.m:184:5: warning: 'UIAlertView' is deprecated: first deprecated in iOS 9.0 - UIAlertView is deprecated. Use UIAlertController with a preferredStyle of UIAlertControllerStyleAlert instead [-Wdeprecated-declarations]
    UIAlertView *alert = [[UIAlertView alloc] initWithTitle : @"Error"
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS11.3.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIAlertView.h:26:12: note: 'UIAlertView' has been explicitly marked deprecated here
@interface UIAlertView : UIView
/Users/anthonywilshaw/Documents/JME/Engine/jmonkeyengine/BasicGame11/ios/src/jme-ios.m:184:40: warning: 'UIAlertView' is deprecated: first deprecated in iOS 9.0 - UIAlertView is deprecated. Use UIAlertController with a preferredStyle of UIAlertControllerStyleAlert instead [-Wdeprecated-declarations]
    UIAlertView *alert = [[UIAlertView alloc] initWithTitle : @"Error"
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS11.3.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIAlertView.h:26:12: note: 'UIAlertView' has been explicitly marked deprecated here
@interface UIAlertView : UIView
2 warnings generated.
Expanding libavian.a for arm
Deleting: /Users/anthonywilshaw/Documents/JME/Engine/jmonkeyengine/BasicGame11/build/ios-arm/libs/__.SYMDEF
Create library list for arm
build-ios-arm:
init:
Created dir: /Users/anthonywilshaw/Documents/JME/Engine/jmonkeyengine/BasicGame11/build/ios-arm64/libs
Creating iOS resources object file for arm64
Creating iOS bootimage and codeimage for arm64
class count 3804 string count 14634 call count 27715
heap size 20323376 code size 10086840
Compiling native code for arm64
/Users/anthonywilshaw/Documents/JME/Engine/jmonkeyengine/BasicGame11/ios/src/JmeAppHarness.m:53:5: warning: 'UIAlertView' is deprecated: first deprecated in iOS 9.0 - UIAlertView is deprecated. Use UIAlertController with a preferredStyle of UIAlertControllerStyleAlert instead [-Wdeprecated-declarations]
    UIAlertView *alert = [[UIAlertView alloc] initWithTitle : @"Message"
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS11.3.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIAlertView.h:26:12: note: 'UIAlertView' has been explicitly marked deprecated here
@interface UIAlertView : UIView
/Users/anthonywilshaw/Documents/JME/Engine/jmonkeyengine/BasicGame11/ios/src/JmeAppHarness.m:53:40: warning: 'UIAlertView' is deprecated: first deprecated in iOS 9.0 - UIAlertView is deprecated. Use UIAlertController with a preferredStyle of UIAlertControllerStyleAlert instead [-Wdeprecated-declarations]
    UIAlertView *alert = [[UIAlertView alloc] initWithTitle : @"Message"
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS11.3.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIAlertView.h:26:12: note: 'UIAlertView' has been explicitly marked deprecated here
@interface UIAlertView : UIView
2 warnings generated.
/Users/anthonywilshaw/Documents/JME/Engine/jmonkeyengine/BasicGame11/ios/src/JmeIosGLES.m:555:9: warning: cast to 'GLvoid *' (aka 'void *') from smaller integer type 'jint' (aka 'int') [-Wint-to-void-pointer-cast]
        (GLvoid *)offset
/Users/anthonywilshaw/Documents/JME/Engine/jmonkeyengine/BasicGame11/ios/src/JmeIosGLES.m:1733:9: warning: cast to 'GLvoid *' (aka 'void *') from smaller integer type 'jint' (aka 'int') [-Wint-to-void-pointer-cast]
        (GLvoid *)(offset)
2 warnings generated.
/Users/anthonywilshaw/Documents/JME/Engine/jmonkeyengine/BasicGame11/ios/src/com_jme3_audio_android_AndroidOpenALSoftAudioRenderer.c:44:33: warning: format specifies type 'int' but the argument has type 'void *' [-Wformat]
    fprintf(stderr, "NULL: %d", NULL);
                           ~~   ^~~~
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/clang/9.1.0/include/stddef.h:105:16: note: expanded from macro 'NULL'
#  define NULL ((void*)0)
               ^~~~~~~~~~
/Users/anthonywilshaw/Documents/JME/Engine/jmonkeyengine/BasicGame11/ios/src/com_jme3_audio_android_AndroidOpenALSoftAudioRenderer.c:45:44: warning: format specifies type 'int' but the argument has type 'ALCcontext *' (aka 'struct ALCcontext_struct *') [-Wformat]
    fprintf(stderr, "Created context: %d", ctx);
                                      ~~   ^~~
/Users/anthonywilshaw/Documents/JME/Engine/jmonkeyengine/BasicGame11/ios/src/com_jme3_audio_android_AndroidOpenALSoftAudioRenderer.c:46:49: warning: format specifies type 'int' but the argument has type 'ALCcontext **' (aka 'struct ALCcontext_struct **') [-Wformat]
    fprintf(stderr, "Created context addr: %d", &ctx);
                                           ~~   ^~~~
/Users/anthonywilshaw/Documents/JME/Engine/jmonkeyengine/BasicGame11/ios/src/com_jme3_audio_android_AndroidOpenALSoftAudioRenderer.c:83:60: warning: format specifies type 'int' but the argument has type 'ALCdevice *' (aka 'struct ALCdevice_struct *') [-Wformat]
        fprintf(stderr, "alcGetContextsDevice device: %d", device);
                                                      ~~   ^~~~~~
/Users/anthonywilshaw/Documents/JME/Engine/jmonkeyengine/BasicGame11/ios/src/com_jme3_audio_android_AndroidOpenALSoftAudioRenderer.c:84:65: warning: format specifies type 'int' but the argument has type 'ALCdevice **' (aka 'struct ALCdevice_struct **') [-Wformat]
        fprintf(stderr, "alcGetContextsDevice device addr: %d", &device);
                                                           ~~   ^~~~~~~
/Users/anthonywilshaw/Documents/JME/Engine/jmonkeyengine/BasicGame11/ios/src/com_jme3_audio_android_AndroidOpenALSoftAudioRenderer.c:150:1: warning: control may reach end of non-void function [-Wreturn-type]
}
6 warnings generated.
/Users/anthonywilshaw/Documents/JME/Engine/jmonkeyengine/BasicGame11/ios/src/jme-ios.m:184:5: warning: 'UIAlertView' is deprecated: first deprecated in iOS 9.0 - UIAlertView is deprecated. Use UIAlertController with a preferredStyle of UIAlertControllerStyleAlert instead [-Wdeprecated-declarations]
    UIAlertView *alert = [[UIAlertView alloc] initWithTitle : @"Error"
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS11.3.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIAlertView.h:26:12: note: 'UIAlertView' has been explicitly marked deprecated here
@interface UIAlertView : UIView
/Users/anthonywilshaw/Documents/JME/Engine/jmonkeyengine/BasicGame11/ios/src/jme-ios.m:184:40: warning: 'UIAlertView' is deprecated: first deprecated in iOS 9.0 - UIAlertView is deprecated. Use UIAlertController with a preferredStyle of UIAlertControllerStyleAlert instead [-Wdeprecated-declarations]
    UIAlertView *alert = [[UIAlertView alloc] initWithTitle : @"Error"
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS11.3.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIAlertView.h:26:12: note: 'UIAlertView' has been explicitly marked deprecated here
@interface UIAlertView : UIView
2 warnings generated.
Expanding libavian.a for arm64
Deleting: /Users/anthonywilshaw/Documents/JME/Engine/jmonkeyengine/BasicGame11/build/ios-arm64/libs/__.SYMDEF
Create library list for arm64
build-ios-arm64:
init:
Created dir: /Users/anthonywilshaw/Documents/JME/Engine/jmonkeyengine/BasicGame11/build/ios-x86_64/libs
Creating iOS resources object file for x86_64
Creating iOS bootimage and codeimage for x86_64
class count 3804 string count 14634 call count 27715
heap size 20323376 code size 9918672
Compiling native code for x86_64
/Users/anthonywilshaw/Documents/JME/Engine/jmonkeyengine/BasicGame11/ios/src/JmeAppHarness.m:53:5: warning: 'UIAlertView' is deprecated: first deprecated in iOS 9.0 - UIAlertView is deprecated. Use UIAlertController with a preferredStyle of UIAlertControllerStyleAlert instead [-Wdeprecated-declarations]
    UIAlertView *alert = [[UIAlertView alloc] initWithTitle : @"Message"
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator11.3.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIAlertView.h:26:12: note: 'UIAlertView' has been explicitly marked deprecated here
@interface UIAlertView : UIView
/Users/anthonywilshaw/Documents/JME/Engine/jmonkeyengine/BasicGame11/ios/src/JmeAppHarness.m:53:40: warning: 'UIAlertView' is deprecated: first deprecated in iOS 9.0 - UIAlertView is deprecated. Use UIAlertController with a preferredStyle of UIAlertControllerStyleAlert instead [-Wdeprecated-declarations]
    UIAlertView *alert = [[UIAlertView alloc] initWithTitle : @"Message"
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator11.3.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIAlertView.h:26:12: note: 'UIAlertView' has been explicitly marked deprecated here
@interface UIAlertView : UIView
2 warnings generated.
/Users/anthonywilshaw/Documents/JME/Engine/jmonkeyengine/BasicGame11/ios/src/JmeIosGLES.m:555:9: warning: cast to 'GLvoid *' (aka 'void *') from smaller integer type 'jint' (aka 'int') [-Wint-to-void-pointer-cast]
        (GLvoid *)offset
/Users/anthonywilshaw/Documents/JME/Engine/jmonkeyengine/BasicGame11/ios/src/JmeIosGLES.m:1733:9: warning: cast to 'GLvoid *' (aka 'void *') from smaller integer type 'jint' (aka 'int') [-Wint-to-void-pointer-cast]
        (GLvoid *)(offset)
2 warnings generated.
/Users/anthonywilshaw/Documents/JME/Engine/jmonkeyengine/BasicGame11/ios/src/com_jme3_audio_android_AndroidOpenALSoftAudioRenderer.c:44:33: warning: format specifies type 'int' but the argument has type 'void *' [-Wformat]
    fprintf(stderr, "NULL: %d", NULL);
                           ~~   ^~~~
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/clang/9.1.0/include/stddef.h:105:16: note: expanded from macro 'NULL'
#  define NULL ((void*)0)
               ^~~~~~~~~~
/Users/anthonywilshaw/Documents/JME/Engine/jmonkeyengine/BasicGame11/ios/src/com_jme3_audio_android_AndroidOpenALSoftAudioRenderer.c:45:44: warning: format specifies type 'int' but the argument has type 'ALCcontext *' (aka 'struct ALCcontext_struct *') [-Wformat]
    fprintf(stderr, "Created context: %d", ctx);
                                      ~~   ^~~
/Users/anthonywilshaw/Documents/JME/Engine/jmonkeyengine/BasicGame11/ios/src/com_jme3_audio_android_AndroidOpenALSoftAudioRenderer.c:46:49: warning: format specifies type 'int' but the argument has type 'ALCcontext **' (aka 'struct ALCcontext_struct **') [-Wformat]
    fprintf(stderr, "Created context addr: %d", &ctx);
                                           ~~   ^~~~
/Users/anthonywilshaw/Documents/JME/Engine/jmonkeyengine/BasicGame11/ios/src/com_jme3_audio_android_AndroidOpenALSoftAudioRenderer.c:83:60: warning: format specifies type 'int' but the argument has type 'ALCdevice *' (aka 'struct ALCdevice_struct *') [-Wformat]
        fprintf(stderr, "alcGetContextsDevice device: %d", device);
                                                      ~~   ^~~~~~
/Users/anthonywilshaw/Documents/JME/Engine/jmonkeyengine/BasicGame11/ios/src/com_jme3_audio_android_AndroidOpenALSoftAudioRenderer.c:84:65: warning: format specifies type 'int' but the argument has type 'ALCdevice **' (aka 'struct ALCdevice_struct **') [-Wformat]
        fprintf(stderr, "alcGetContextsDevice device addr: %d", &device);
                                                           ~~   ^~~~~~~
/Users/anthonywilshaw/Documents/JME/Engine/jmonkeyengine/BasicGame11/ios/src/com_jme3_audio_android_AndroidOpenALSoftAudioRenderer.c:150:1: warning: control may reach end of non-void function [-Wreturn-type]
}
6 warnings generated.
/Users/anthonywilshaw/Documents/JME/Engine/jmonkeyengine/BasicGame11/ios/src/jme-ios.m:184:5: warning: 'UIAlertView' is deprecated: first deprecated in iOS 9.0 - UIAlertView is deprecated. Use UIAlertController with a preferredStyle of UIAlertControllerStyleAlert instead [-Wdeprecated-declarations]
    UIAlertView *alert = [[UIAlertView alloc] initWithTitle : @"Error"
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator11.3.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIAlertView.h:26:12: note: 'UIAlertView' has been explicitly marked deprecated here
@interface UIAlertView : UIView
/Users/anthonywilshaw/Documents/JME/Engine/jmonkeyengine/BasicGame11/ios/src/jme-ios.m:184:40: warning: 'UIAlertView' is deprecated: first deprecated in iOS 9.0 - UIAlertView is deprecated. Use UIAlertController with a preferredStyle of UIAlertControllerStyleAlert instead [-Wdeprecated-declarations]
    UIAlertView *alert = [[UIAlertView alloc] initWithTitle : @"Error"
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator11.3.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIAlertView.h:26:12: note: 'UIAlertView' has been explicitly marked deprecated here
@interface UIAlertView : UIView
2 warnings generated.
Expanding libavian.a for x86_64
Deleting: /Users/anthonywilshaw/Documents/JME/Engine/jmonkeyengine/BasicGame11/build/ios-x86_64/libs/__.SYMDEF
Create library list for x86_64
build-ios-x86_64:
The needed native iOS libraries have been built, open the XCode project at ios/project to run the application on iOS.
jar:
BUILD SUCCESSFUL (total time: 1 minute 14 seconds)```
1 Like

Firstly, use the -verbose compiler switch because it doesn’t actually show any error message or why it failed.

Secondly, what happened to the BASICGAME project? You have gone back to your full app I see.

Don’t try to run before you can walk.

Didn’t even notice i wasn’t using basicgame… I just hit the clean + build button :roll_eyes:

Same issue(jni.h), even when i fixed JDK to actual location