openbakery / gradle-xcodePlugin

gradle plugin for building Xcode Projects for iOS, watchOS, macOS or tvOS
Apache License 2.0
457 stars 127 forks source link

signed xcarchive? #405

Closed paleozogt closed 2 years ago

paleozogt commented 5 years ago

With Xcode 10.0 and xcode-plugin 0.15.3, the package target does not create signed xcarchives.

If I run Archive from Xcode and inspect the .xcarchive, I can see _CodeSignature and embedded.mobileprovision files. However, if I run the gradle "package" target and inspect the .xcarchive, I don't see these files.

This can cause problems if the .xcarchive is then handed off to another party, and they use Xcode to export an IPA. The resulting IPA won't install due to Application is missing the application-identifier entitlement errors.

Here is my build.gradle:

plugins {
    id "org.openbakery.xcode-plugin" version "0.15.3"
}

xcodebuild {
    scheme = "IOSHelloWorld"
    target = "IOSHelloWorld"
    configuration = 'Release'
    simulator = 'false'
    type = "iOS"
    bitcode = true

    signing {
        def keystoreDir = file("${rootProject.projectDir}/keystore")
        mobileProvisionURI = "file://$keystoreDir/helloworld.mobileprovision"
        certificateURI = "file://$keystoreDir/helloworld.p12"
        certificatePassword = file("$keystoreDir/helloworld.pass").text
    }
}