I'm trying to configure RoboVM
to build my LibGDX
project for iOS.
In my build.gradle
project(":ios") {
apply plugin: "java"
apply plugin: "robovm"
configurations { natives }
dependencies {
compile project(":core")
compile "org.robovm:robovm-rt:${roboVMVersion}"
compile "org.robovm:robovm-cocoatouch:${roboVMVersion}"
compile "com.badlogicgames.gdx:gdx-backend-robovm:$gdxVersion"
natives "com.badlogicgames.gdx:gdx-platform:$gdxVersion:natives-ios"
natives "com.badlogicgames.gdx:gdx-freetype-platform:$gdxVersion:natives-ios"
}
robovm {
// Configure robovm
iosSignIdentity = "ABCD123455442D6E878394E55925E0987654321"
iosProvisioningProfile = "/path/to/profile.mobileprovision"
iosSkipSigning = false
stdoutFifo = ""
stderrFifo = ""
}
}
I'm not sure if what I have for iosSignIdentity is correct either, those characters (well not those ones, but close) are the sequence returned by security find-identity -v -p codesigning
So far it's completely refused to see my provisioning profile file that I downloaded from Apple. The error I get is:
> No provisioning profile found matching '/path/to/profile.mobileprovision'
I've been bashing my head against this for days. Any ideas?
Rather than provide the path as you have in your question, provide the names of the provisioning profile and signing identity.
Example:
robovm {
iosSignIdentity = "iPhone Distribution: My Company Name (ABC3214QFD)"
iosProvisioningProfile = "MyApp Distribution Provisioning Profile"
}
Where do you get these names?
First, some prerequisites:
To obtain the name of the provisioning profile, see the bottom list of provisioning profiles. The one whose name you use must be a provisioning profile for App Store distribution, and it must be associated with a certificate in the member portal that is for app distribution. This certificate must also be the one you use to sign your IPA.
In my case, I created this provisioning profile in the member portal, and named it something like:
MyApp Distribution Provisioning Profile
To obtain the name of the signing identity, open the Keychain Access app on your Mac and, under Certificates, look for a certificate named like this:
iPhone Distribution: My Company Name (ABC3214QFD)
Note, in order to use this certificate you must have an associated private key on your Mac. You should see this in Keychain Access, as an expandable row under the corresponding certificate.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With