From 5776523bd28d545e26131928c18c6628292ffa50 Mon Sep 17 00:00:00 2001 From: Roopesh Chander Date: Mon, 13 Aug 2018 00:42:16 +0530 Subject: 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 --- WireGuard/WireGuard.xcodeproj/project.pbxproj | 2 ++ WireGuard/WireGuard/Config/Developer.xcconfig.template | 6 ++++-- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/WireGuard/WireGuard.xcodeproj/project.pbxproj b/WireGuard/WireGuard.xcodeproj/project.pbxproj index 77be308..d2e8b50 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 42cc57d..961699a 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 = -// The bundle identifier of this app -PRODUCT_BUNDLE_IDENTIFIER = +// The bundle identifier of this app. +// Should be an app id created at developer.apple.com +// with Network Extensions capabilty. +APP_ID = -- cgit v1.2.3-59-g8ed1b