]> git.ipfire.org Git - thirdparty/wireguard-apple.git/commitdiff
Enable Network Extensions capability
authorRoopesh Chander <roop@roopc.net>
Sun, 12 Aug 2018 18:56:09 +0000 (00:26 +0530)
committerRoopesh Chander <roop@roopc.net>
Sat, 27 Oct 2018 09:43:01 +0000 (15:13 +0530)
Signed-off-by: Roopesh Chander <roop@roopc.net>
WireGuard/WireGuard.xcodeproj/project.pbxproj
WireGuard/WireGuard/WireGuard.entitlements [new file with mode: 0644]

index fe63975390ffee4e02e248fbf308f6266aca9e1f..77be3088ff1f5daa6ec731ccde82ec5193d4f845 100644 (file)
@@ -11,6 +11,7 @@
                6FF4AC1F211EC472002C96EB /* Assets.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 6FF4AC1E211EC472002C96EB /* Assets.xcassets */; };
                6FF4AC22211EC472002C96EB /* LaunchScreen.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 6FF4AC20211EC472002C96EB /* LaunchScreen.storyboard */; };
                6FF4AC2F211F1F57002C96EB /* MainViewController.swift in Sources */ = {isa = PBXBuildFile; fileRef = 6FF4AC2E211F1F57002C96EB /* MainViewController.swift */; };
+               6FF4AC472120B9E0002C96EB /* NetworkExtension.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 6FF4AC462120B9E0002C96EB /* NetworkExtension.framework */; };
 /* End PBXBuildFile section */
 
 /* Begin PBXFileReference section */
@@ -21,6 +22,8 @@
                6FF4AC23211EC472002C96EB /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = "<group>"; };
                6FF4AC2B211EC776002C96EB /* Developer.xcconfig */ = {isa = PBXFileReference; lastKnownFileType = text.xcconfig; name = Developer.xcconfig; path = Config/Developer.xcconfig; sourceTree = "<group>"; };
                6FF4AC2E211F1F57002C96EB /* MainViewController.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = MainViewController.swift; sourceTree = "<group>"; };
+               6FF4AC462120B9E0002C96EB /* NetworkExtension.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = NetworkExtension.framework; path = System/Library/Frameworks/NetworkExtension.framework; sourceTree = SDKROOT; };
+               6FF4AC482120B9E0002C96EB /* WireGuard.entitlements */ = {isa = PBXFileReference; lastKnownFileType = text.plist.entitlements; path = WireGuard.entitlements; sourceTree = "<group>"; };
 /* End PBXFileReference section */
 
 /* Begin PBXFrameworksBuildPhase section */
@@ -28,6 +31,7 @@
                        isa = PBXFrameworksBuildPhase;
                        buildActionMask = 2147483647;
                        files = (
+                               6FF4AC472120B9E0002C96EB /* NetworkExtension.framework in Frameworks */,
                        );
                        runOnlyForDeploymentPostprocessing = 0;
                };
@@ -39,6 +43,7 @@
                        children = (
                                6FF4AC16211EC46F002C96EB /* WireGuard */,
                                6FF4AC15211EC46F002C96EB /* Products */,
+                               6FF4AC452120B9E0002C96EB /* Frameworks */,
                        );
                        sourceTree = "<group>";
                };
@@ -53,6 +58,7 @@
                6FF4AC16211EC46F002C96EB /* WireGuard */ = {
                        isa = PBXGroup;
                        children = (
+                               6FF4AC482120B9E0002C96EB /* WireGuard.entitlements */,
                                6FF4AC17211EC46F002C96EB /* AppDelegate.swift */,
                                6FF4AC2E211F1F57002C96EB /* MainViewController.swift */,
                                6FF4AC1E211EC472002C96EB /* Assets.xcassets */,
                        path = WireGuard;
                        sourceTree = "<group>";
                };
+               6FF4AC452120B9E0002C96EB /* Frameworks */ = {
+                       isa = PBXGroup;
+                       children = (
+                               6FF4AC462120B9E0002C96EB /* NetworkExtension.framework */,
+                       );
+                       name = Frameworks;
+                       sourceTree = "<group>";
+               };
 /* End PBXGroup section */
 
 /* Begin PBXNativeTarget section */
                                TargetAttributes = {
                                        6FF4AC13211EC46F002C96EB = {
                                                CreatedOnToolsVersion = 9.4.1;
+                                               SystemCapabilities = {
+                                                       com.apple.NetworkExtensions.iOS = {
+                                                               enabled = 1;
+                                                       };
+                                               };
                                        };
                                };
                        };
                        isa = XCBuildConfiguration;
                        buildSettings = {
                                ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
+                               CODE_SIGN_ENTITLEMENTS = WireGuard/WireGuard.entitlements;
                                CODE_SIGN_STYLE = Automatic;
                                INFOPLIST_FILE = WireGuard/Info.plist;
                                LD_RUNPATH_SEARCH_PATHS = (
                        isa = XCBuildConfiguration;
                        buildSettings = {
                                ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
+                               CODE_SIGN_ENTITLEMENTS = WireGuard/WireGuard.entitlements;
                                CODE_SIGN_STYLE = Automatic;
                                INFOPLIST_FILE = WireGuard/Info.plist;
                                LD_RUNPATH_SEARCH_PATHS = (
diff --git a/WireGuard/WireGuard/WireGuard.entitlements b/WireGuard/WireGuard/WireGuard.entitlements
new file mode 100644 (file)
index 0000000..ffab33e
--- /dev/null
@@ -0,0 +1,10 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
+<plist version="1.0">
+<dict>
+       <key>com.apple.developer.networking.networkextension</key>
+       <array>
+               <string>packet-tunnel-provider</string>
+       </array>
+</dict>
+</plist>