aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRoopesh Chander <roop@roopc.net>2018-08-13 00:42:16 +0530
committerRoopesh Chander <roop@roopc.net>2018-10-27 15:13:01 +0530
commit5776523bd28d545e26131928c18c6628292ffa50 (patch)
treefc1cfe20999dee6c7267b95f50d28adc6301f0fa
parentEnable Network Extensions capability (diff)
downloadwireguard-apple-5776523bd28d545e26131928c18c6628292ffa50.tar.xz
wireguard-apple-5776523bd28d545e26131928c18c6628292ffa50.zip
Use APP_ID in xcconfig rather than PRODUCT_BUNDLE_IDENTIFIER
This is required because when we add an app extension to the project, there will be two PRODUCT_BUNDLE_IDENTIFIER fields in our project file, so we cannot use xcconfig to set that key directly. Signed-off-by: Roopesh Chander <roop@roopc.net>
-rw-r--r--WireGuard/WireGuard.xcodeproj/project.pbxproj2
-rw-r--r--WireGuard/WireGuard/Config/Developer.xcconfig.template6
2 files changed, 6 insertions, 2 deletions
diff --git a/WireGuard/WireGuard.xcodeproj/project.pbxproj b/WireGuard/WireGuard.xcodeproj/project.pbxproj
index 77be3088..d2e8b508 100644
--- a/WireGuard/WireGuard.xcodeproj/project.pbxproj
+++ b/WireGuard/WireGuard.xcodeproj/project.pbxproj
@@ -298,6 +298,7 @@
"$(inherited)",
"@executable_path/Frameworks",
);
+ PRODUCT_BUNDLE_IDENTIFIER = "$(APP_ID)";
PRODUCT_NAME = "$(TARGET_NAME)";
SWIFT_VERSION = 4.0;
TARGETED_DEVICE_FAMILY = "1,2";
@@ -315,6 +316,7 @@
"$(inherited)",
"@executable_path/Frameworks",
);
+ PRODUCT_BUNDLE_IDENTIFIER = "$(APP_ID)";
PRODUCT_NAME = "$(TARGET_NAME)";
SWIFT_VERSION = 4.0;
TARGETED_DEVICE_FAMILY = "1,2";
diff --git a/WireGuard/WireGuard/Config/Developer.xcconfig.template b/WireGuard/WireGuard/Config/Developer.xcconfig.template
index 42cc57d2..961699a5 100644
--- a/WireGuard/WireGuard/Config/Developer.xcconfig.template
+++ b/WireGuard/WireGuard/Config/Developer.xcconfig.template
@@ -3,5 +3,7 @@
// You Apple developer account's Team ID
DEVELOPMENT_TEAM = <team_id>
-// The bundle identifier of this app
-PRODUCT_BUNDLE_IDENTIFIER = <app_id>
+// The bundle identifier of this app.
+// Should be an app id created at developer.apple.com
+// with Network Extensions capabilty.
+APP_ID = <app_id>