diff options
author | Jake Petroules <jake.petroules@petroules.com> | 2014-01-16 09:25:15 -0500 |
---|---|---|
committer | Joerg Bornemann <joerg.bornemann@digia.com> | 2014-01-16 15:43:23 +0100 |
commit | 008992106eea60f0a63efc0978399c454fdab2ca (patch) | |
tree | 541b625ebc2f332442bc9bd123eef430aeb4ce11 | |
parent | 7cf2294241eac6b0a649a88a4f67394d282432c9 (diff) |
Clean up prepare script of IPA Rule.
Change-Id: Icafcf2edbb92217643a81fd747e803139f950424
Reviewed-by: Joerg Bornemann <joerg.bornemann@digia.com>
-rw-r--r-- | share/qbs/modules/cpp/ios-gcc.qbs | 16 |
1 files changed, 10 insertions, 6 deletions
diff --git a/share/qbs/modules/cpp/ios-gcc.qbs b/share/qbs/modules/cpp/ios-gcc.qbs index 18f0ba6ad..875852bf6 100644 --- a/share/qbs/modules/cpp/ios-gcc.qbs +++ b/share/qbs/modules/cpp/ios-gcc.qbs @@ -56,18 +56,22 @@ DarwinGCC { prepare: { var signingIdentity = product.moduleProperty("cpp", "signingIdentity"); if (!signingIdentity) - throw "The name of a valid Signing identity should be stored in cpp.signingIdentity to build package."; + throw "The name of a valid signing identity must be set using " + + "cpp.signingIdentity in order to build an IPA package."; + var provisioningProfile = product.moduleProperty("cpp", "provisioningProfile"); if (!provisioningProfile) throw "The path to a provisioning profile must be set using " + "cpp.provisioningProfile in order to build an IPA package."; - args = ["-sdk", "iphoneos", "PackageApplication", "-v", - product.buildDirectory + "/" + product.targetName + ".app", - "-o", outputs.ipa[0].fileName, "--sign", signingIdentity, - "--embed", provisioningProfile]; + + var args = ["-sdk", "iphoneos", "PackageApplication", "-v", + product.buildDirectory + "/" + BundleTools.wrapperName(product), + "-o", outputs.ipa[0].fileName, "--sign", signingIdentity, + "--embed", provisioningProfile]; + var command = "/usr/bin/xcrun"; var cmd = new Command(command, args) - cmd.description = "creating ipa"; + cmd.description = "creating ipa, signing with " + signingIdentity; cmd.highlight = "codegen"; cmd.workingDirectory = product.buildDirectory; return cmd; |