简体   繁体   中英

Running RoboVM/libgdx iOS app

I'm trying to develop an iOS app using RoboVM and libgdx. So far, I've just created a simple project, and have been trying to get it to run on iOS. So far, the farthest I've gotten is running this command:

robovm -verbose -arch x86 -os ios -cp robovm/lib/robovm-objc.jar:robovm/lib/robovm-cocoatouch.jar -jar <project>.jar

This generates a directory with a file called Info.plist , a file called <package_name>.<main_class> , and a lib directory. The file called <package_name>.<main_class> is a Mach-O executable i386. How would I go about running the file, and how would I go about uploading it to an iPhone as an app? There doesn't seem to be much documentation on RoboVM, and I've never really used a mac before, so I apologize if I'm missing something obvious.

Edit: To clarify, I want to both know how to run the app that was generated by RoboVM after I ran the command above, and to know how to upload that app to an iPhone to run it there. Preferably, I'd like to do this all without the RoboVM eclipse plugin.

Did you use the setup UI of libgdx? If so you can easy run the project:

iOS RoboVM: Right click the robovm project, Run As -> iOS Device App to run on a connected device, or Run As -> iOS Simulator App to run on the iOS simulator. If you run on a device, you need to provision it to be able to deploy to it! [Link about how to start developing with libgdx]

Install roboVM plugin for eclipse. Create the Projects with the setup UI . (Core and RoboVM) And rightclick the robo project Run As -> iOS and it should work.

You do not run it with commandline if you use libgdx. You are missing alot of lib and backend stuff from libgdx which need to be compiled too.

Moreover if you want to upload it to a device you need an Provision .

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM