robovm / robovm-gradle-plugin

RoboVM Gradle plugin
45 stars 24 forks source link

Support for iosProvisioningProfile and iosSignIdentity #6

Closed mattwalters closed 10 years ago

mattwalters commented 10 years ago

Hello,

I've been attempting to build my project (libgdx) with this plugin against a distribution cert and an ad hoc provisioning profile I downloaded from apple. I have put both files in the root directory of the ios project and included:

ext {
        mainClassName = "com.example.app.MainClass"
        roboVMVersion = "0.0.8"

        iosSignIdentity = "/Users/matt/code/mattwalters/example-app/ios/ios_distribution.cer"
        iosProvisioningProfile = "/Users/matt/code/mattwalters/example-app/ios/example_app_ADHOC.mobileprovision"

        propertiesFile = "/Users/matt/code/mattwalters/example-app/ios/robovm.properties"
        configFile = "/Users/matt/code/mattwalters/example-app/ios/robovm.xml"
}

in build.gradle.

I'll build using the debug option:

$ gradle clean ios:build ios:createIPA --debug | grep -A3 -B3 provisioning

but I notice these lines, indicating that the wrong credentials are being used. Should be a distribution cert and an adhoc (not a wildcard) provisioning profile.

09:47:30.654 [DEBUG] [org.gradle.api.Task] Copying Development provisioning profile: iOS Team Provisioning Profile: * (PPQ8B4TAM6.*)
09:47:30.673 [DEBUG] [org.gradle.api.Task] codesign -f -s "iPhone Developer: Matthew Walters (BDGWOPPLKV)" --entitlements /Users/matt/code/mattwalters/example-app/ios/build/robovm/ios/thumbv7/Entitlements.plist /Users/matt/code/mattwalters/example-app/ios/build/robovm/example-app.app

I believe xcode stores all of your provisioning profiles locally. This must be how the build is finding the incorrect provisioning profile, becasue it is not in the src tree at all, and to my knowledge I am not referencing it in any config file or build script. Not sure about the cert though.

Anyway, are my configs wrong or is this a bug?

Thanks