Also, does anybody have any general tips about it?
Edit: also, how do I figure out if I am running on iOS from java? For Android I use System.getProperty(“java.runtime.name”).toLowerCase().equals(“android runtime”), but how can I check if it is running on iOS?
Use the SDK and start a new iOS Project (Or was it only enabling iOS under Deployment settings?) Either way it generates an xCode Project to use later on. You just code in java and don’t care about the iOS side. Be aware that you need Mac OS.
yep. The task appears to be a massive pain in the arse to me, I personally wouldn’t want to travel down that rocky road less travelled.
Just trying to save you huge headaches down the road. But by all means don’t let my pessimism stop you from doing it, I’m very often, if not always, wrong =)
I got as far as linking.
I keep getting this error:
LD: -filelist file '../../build/iOS-arm64/libs.list' could not be opened errno=2 (no such file or directory)
Clang: error: linker command failed with exit code 1 (use -v to see invocation)
It looks like you need to switch on IOS in the Jmoneyengine SDK then compile in the SDK first.
It should build the IOS natives and project file for you. My guide assumes you have already got to that point. My guide was from the point where you are starting with XCODE.
Have you enabled IOS and allowed it download Avian and then build the natives?
I think so, i did a clean-and-build, then enabled IOS deployment. Then I waited for the saving project properties dialog to go away, and opened XCODE. Lastly, I followed your steps until the linker bit.
Are you getting these messages when building in the SDK? Especially the last message???
If so, then check if the ios-arm64, ios-arm and ios-x86_64 folders exist in the build folder?
If so, then build in the XCODE project. Note: DO NOT use CLEAN in XCODE or it will delete these folders. Only use BUILD.
build-ios:
init:
…
…
Packaging iOS classpath and resources
…
…
Creating iOS resources object file for arm
Creating iOS bootimage and codeimage for arm
…
…
Compiling native code for arm
…
…
Expanding libavian.a for arm
…
…
Create library list for arm
build-ios-arm:
init:
…
…
Creating iOS resources object file for arm64
Creating iOS bootimage and codeimage for arm64
…
…
Compiling native code for arm64
…
…
Expanding libavian.a for arm64
…
…
Create library list for arm64
build-ios-arm64:
init:
…
…
Creating iOS resources object file for x86_64
Creating iOS bootimage and codeimage for x86_64
…
…
Compiling native code for x86_64
…
…
Expanding libavian.a for x86_64
…
…
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.