How do I create ad-hoc distribution with RoboVM and Maven?

69 views
Skip to first unread message

Lenny Primak

unread,
Feb 10, 2015, 11:47:10 AM2/10/15
to rob...@googlegroups.com
I am relatively new to iOS development and completely new to RoboVM, but an expert Java and Groovy developer.

Here is what I can do:
- I can successfully deploy native (Swift) apps to the device (iPhone) using my ad-hoc profile via Xcode.
- I can successfully run my RoboVM app using simulator with maven: (mvn robovm:iphone-sim)

What I cannot yet do but need to:

- I cannot deploy RoboVM app to the device using ad-hoc installation.

When I am trying to deploy RoboVM app using  mvn robovm:create-ipa to the device, it fails to load on the iPhone, 
probably because it needs UDID of the device.

My question is how do I associate a maven IPA build with a profile that's on the developer.apple.com so the UDIDs on the
apple developer site are inserted into the IPA that's generated by RoboVM Maven plugin?
A step-by-step recipe would be much appreciated as I am not familiar with the RoboVM and iPhone /  app store terminology.

Thank you very much for your help.


Lenny Primak

unread,
Feb 10, 2015, 11:07:33 PM2/10/15
to rob...@googlegroups.com
I have solved this problem by putting the following in pom.xml:

iosProvisioningProfile and iosSignIdentity elements worked.

      <plugin>
        <groupId>org.robovm</groupId>
        <artifactId>robovm-maven-plugin</artifactId>
        <version>1.0.0-beta-03</version>
        <configuration>
///
          <iosProvisioningProfile>XC Ad Hoc: *</iosProvisioningProfile>
          <iosSignIdentity>iPhone Distribution: Lenny PRIMAK</iosSignIdentity>
        </configuration>
      </plugin>
Reply all
Reply to author
Forward
0 new messages