Fix provisioning profile value in Xcode project template

This commit is contained in:
Joshua Granick
2016-12-07 15:42:16 -08:00
parent 4102f59578
commit 2574600ac1
2 changed files with 8 additions and 0 deletions

View File

@@ -134,6 +134,12 @@ class IOSPlatform extends PlatformTarget {
context.OBJC_ARC = false;
context.KEY_STORE_IDENTITY = project.config.getString ("ios.identity");
if (project.config.exists ("ios.provisioning-profile")) {
context.IOS_PROVISIONING_PROFILE = PathHelper.tryFullPath (project.config.getString ("ios.provisioning-profile"));
}
if (project.config.exists ("ios.team-id")) {
context.DEVELOPMENT_TEAM_ID = project.config.getString ("ios.team-id");

View File

@@ -260,6 +260,7 @@
CLANG_WARN__DUPLICATE_METHOD_MATCH = YES;
::end::
"CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "::config.ios.identity::";
::if (IOS_PROVISIONING_PROFILE)::PROVISIONING_PROFILE = "::IOS_PROVISIONING_PROFILE::";::end::
COPY_PHASE_STRIP = NO;
GCC_C_LANGUAGE_STANDARD = gnu99;
GCC_DYNAMIC_NO_PIC = NO;
@@ -291,6 +292,7 @@
CLANG_WARN__DUPLICATE_METHOD_MATCH = YES;
::end::
"CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "::config.ios.identity::";
::if (IOS_PROVISIONING_PROFILE)::PROVISIONING_PROFILE = "::IOS_PROVISIONING_PROFILE::";::end::
/* COMPRESS_PNG_FILES = NO; */
COPY_PHASE_STRIP = YES;
GCC_C_LANGUAGE_STANDARD = gnu99;