[iOS] Multiple issues (and solutions/workarounds) trying to run jme3 app

OK, I finally found out, it was proguard changing the class which is loaded though reflection. There’s a proguard keep line defined in ios.properties but for some weird reason it’s ignored, so I added it directly to avian proguard file instead

I’m now facing other issues I’ll post here also just in case it’s usefull for anyone else

EDIT:

I’m getting the following error:

**Loaded Common/MatDefs/Misc/Unshaded.j3md with J3MLoader**
**dyld: lazy symbol binding failed: Symbol not found: _objc_alloc_init**
**Referenced from: /Users/user/Library/Developer/CoreSimulator/Devices/13F125B3-1E0D-4DC3-BD04-B5F31D111A95/data/Containers/Bundle/Application/74B1660E-D315-4C7F-9140-3BAFDB4E058B/jme-ios.app/jme-ios**
**Expected in: /Library/Developer/CoreSimulator/Profiles/Runtimes/iOS 12.0.simruntime/Contents/Resources/RuntimeRoot/usr/lib/libobjc.A.dylib**
**dyld: Symbol not found: _objc_alloc_init**
**Referenced from: /Users/user/Library/Developer/CoreSimulator/Devices/13F125B3-1E0D-4DC3-BD04-B5F31D111A95/data/Containers/Bundle/Application/74B1660E-D315-4C7F-9140-3BAFDB4E058B/jme-ios.app/jme-ios**
**Expected in: /Library/Developer/CoreSimulator/Profiles/Runtimes/iOS 12.0.simruntime/Contents/Resources/RuntimeRoot/usr/lib/libobjc.A.dylib**

At least in my case it was caused by using a simulator with ios version 12.0 or lower. Solved by just using a newer release. 12.4 or newer worked flawlessly, well… at least it rendered the blue cube

4 Likes