@@ -114,7 +114,7 @@ targets:
114114 path : Coder Desktop/Coder_Desktop.entitlements
115115 properties :
116116 com.apple.developer.networking.networkextension :
117- - packet-tunnel-provider
117+ - packet-tunnel-provider${PTP_SUFFIX}
118118 com.apple.developer.system-extension.install : true
119119 com.apple.security.app-sandbox : true
120120 com.apple.security.files.user-selected.read-only : true
@@ -125,6 +125,7 @@ targets:
125125 base :
126126 ASSETCATALOG_COMPILER_APPICON_NAME : AppIcon # Sets the app icon to "AppIcon".
127127 ASSETCATALOG_COMPILER_GLOBAL_ACCENT_COLOR_NAME : AccentColor
128+ # `CODE_SIGN_*` options are overriden during a release build
128129 CODE_SIGN_IDENTITY : " Apple Development"
129130 CODE_SIGN_STYLE : Automatic
130131 COMBINE_HIDPI_IMAGES : YES
@@ -135,6 +136,8 @@ targets:
135136 INFOPLIST_KEY_NSHumanReadableCopyright : " "
136137 SWIFT_EMIT_LOC_STRINGS : YES
137138 PRODUCT_BUNDLE_IDENTIFIER : " com.coder.Coder-Desktop"
139+ # Empty outside of release builds
140+ PROVISIONING_PROFILE_SPECIFIER : ${APP_PROVISIONING_PROFILE_ID}
138141
139142 # (ThomasK33): Install the application into the /Applications folder
140143 # so that macOS stops complaining about the app being run from an
@@ -200,12 +203,15 @@ targets:
200203 path : VPN/VPN.entitlements
201204 properties :
202205 com.apple.developer.networking.networkextension :
203- - packet-tunnel-provider
206+ # PTP_SUFFIX is populated at `xcodegen` time.
207+ - packet-tunnel-provider${PTP_SUFFIX}
204208 com.apple.security.app-sandbox : true
205209 com.apple.security.application-groups :
206210 - $(TeamIdentifierPrefix)com.coder.Coder-Desktop
207211 com.apple.security.network.client : true
208212 com.apple.security.network.server : true
213+ # TODO: Remove this
214+ com.apple.security.cs.disable-library-validation : true
209215 settings :
210216 base :
211217 ENABLE_HARDENED_RUNTIME : YES
@@ -215,6 +221,11 @@ targets:
215221 PRODUCT_NAME : " $(PRODUCT_BUNDLE_IDENTIFIER)"
216222 SWIFT_EMIT_LOC_STRINGS : YES
217223 SWIFT_OBJC_BRIDGING_HEADER : " VPN/com_coder_Coder_Desktop_VPN-Bridging-Header.h"
224+ # `CODE_SIGN_*` are overriden during a release build
225+ CODE_SIGN_IDENTITY : " Apple Development"
226+ CODE_SIGN_STYLE : Automatic
227+ # Empty outside of release builds
228+ PROVISIONING_PROFILE_SPECIFIER : ${EXT_PROVISIONING_PROFILE_ID}
218229 dependencies :
219230 - target : VPNLib
220231 embed : true
@@ -235,8 +246,6 @@ targets:
235246 DYLIB_COMPATIBILITY_VERSION : 1
236247 DYLIB_CURRENT_VERSION : 1
237248 DYLIB_INSTALL_NAME_BASE : " @rpath"
238- CODE_SIGN_IDENTITY : " Apple Development"
239- CODE_SIGN_STYLE : Automatic
240249 LD_RUNPATH_SEARCH_PATHS :
241250 - " @executable_path/../Frameworks"
242251 - " @loader_path/Frameworks"
@@ -297,4 +306,4 @@ targets:
297306 settings :
298307 base :
299308 TEST_HOST : " $(BUILT_PRODUCTS_DIR)/Coder Desktop.app/$(BUNDLE_EXECUTABLE_FOLDER_PATH)/Coder Desktop"
300- PRODUCT_BUNDLE_IDENTIFIER : com.coder.Coder-Desktop.CoderSDKTests
309+ PRODUCT_BUNDLE_IDENTIFIER : com.coder.Coder-Desktop.CoderSDKTests
0 commit comments