We would like to use Gradle to launch apps on local devices and create ipa’s for delivery.
For signing purposes, we have to configure the provisioningProfile and signingIdentity in the gradle build file, as described here: https://github.com/multi-os-engine/moe-plugin-gradle#user-content-code-signing
Our signing block looks like this:
signing {
developmentTeam 'number'
provisioningProfile project.file('profiles/someProvisioningFile.mobileprovision').absolutePath
signingIdentity 'iPhone Distribution: Company name (number)'
}
when running ./gradelw moeLaunch the following error occurs:
###########
# ERROR LOG
###########
Build settings from command line:
CODE_SIGN_IDENTITY = iPhone Distribution: Company name (number)
CONFIGURATION_BUILD_DIR = /Users/username/path/client/ios-moe/build/moe/xcodebuild/Release-iphoneos
DEVELOPMENT_TEAM = number
DSTROOT = /Users/username/path/client/ios-moe/build/moe/xcodebuild/dst
MOE_GRADLE_EXTERNAL_BUILD = YES
OBJROOT = /Users/username/path/client/ios-moe/build/moe/xcodebuild/obj
ONLY_ACTIVE_ARCH = NO
PROVISIONING_PROFILE = a136c960-f8de-4566-beb2-6873b0fde1b6
SDKROOT = iphoneos10.1
SHARED_PRECOMPS_DIR = /Users/username/path/client/ios-moe/build/moe/xcodebuild/shared_precomps
SYMROOT = /Users/username/path/client/ios-moe/build/moe/xcodebuild/sym
=== BUILD TARGET Projectname OF PROJECT Projectname WITH CONFIGURATION Release ===
Check dependencies
Projectname has conflicting provisioning settings. Projectname is automatically signed, but provisioning profile com.projectname.customer dist has been manually specified. Set the provisioning profile value to "Automatic" in the build settings editor, or switch to manual signing in the project editor.
Code signing is required for product type 'Application' in SDK 'iOS 10.1'
Code signing is required for product type 'Application' in SDK 'iOS 10.1'
** BUILD FAILED **
The following build commands failed:
Check dependencies
(1 failure)
:client:ios-moe:moeMainReleaseIphoneosXcodeBuild FAILED
FAILURE: Build failed with an exception.
If we leave the provisioningProfile and signingIdentity out ./gradlew moeIpaBuild creates an ipa file with the development profile.
We already have managed to create a deployment application archive via XCode, but we would like to configure everything via Gradle to have continuous delivery.
Any suggestions how we should configure it?
Thanks in advance