Skip to content

Commit 73f0abe

Browse files
committed
Adding entitlements needed for this app. Also enabled skip install for the framework target so xcode is happy with the archive and finds the mac app.
1 parent d872bed commit 73f0abe

2 files changed

Lines changed: 30 additions & 2 deletions

File tree

Port Map.entitlements

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
3+
<plist version="1.0">
4+
<dict>
5+
<key>com.apple.security.app-sandbox</key>
6+
<true/>
7+
<key>com.apple.security.network.client</key>
8+
<true/>
9+
<key>com.apple.security.network.server</key>
10+
<true/>
11+
</dict>
12+
</plist>

Port Map.xcodeproj/project.pbxproj

Lines changed: 18 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -217,6 +217,7 @@
217217
F29472900ED3091000DEBA97 /* natpmpc.c */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.c; path = natpmpc.c; sourceTree = "<group>"; };
218218
F29472910ED3091000DEBA97 /* testgetgateway.c */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.c; path = testgetgateway.c; sourceTree = "<group>"; };
219219
F29472920ED3091000DEBA97 /* wingettimeofday.c */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.c; path = wingettimeofday.c; sourceTree = "<group>"; };
220+
F29A3918214018FC00D70A50 /* Port Map.entitlements */ = {isa = PBXFileReference; lastKnownFileType = text.plist.entitlements; path = "Port Map.entitlements"; sourceTree = "<group>"; };
220221
F2B94C27211D7DC300A9EFC1 /* TCMSystemConfiguration.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; name = TCMSystemConfiguration.h; path = framework/TCMSystemConfiguration.h; sourceTree = "<group>"; };
221222
F2B94C28211D7DC300A9EFC1 /* TCMSystemConfiguration.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; name = TCMSystemConfiguration.m; path = framework/TCMSystemConfiguration.m; sourceTree = "<group>"; };
222223
F2C30DD0210DFB28008653EE /* Assets.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; path = Assets.xcassets; sourceTree = "<group>"; };
@@ -484,6 +485,7 @@
484485
F2C6600B0D50C34500820CAE /* Port Map */ = {
485486
isa = PBXGroup;
486487
children = (
488+
F29A3918214018FC00D70A50 /* Port Map.entitlements */,
487489
F2C660100D50C35D00820CAE /* Other sources */,
488490
F2C660160D50C36D00820CAE /* Classes */,
489491
F2C660130D50C36700820CAE /* Resources */,
@@ -658,6 +660,18 @@
658660
isa = PBXProject;
659661
attributes = {
660662
LastUpgradeCheck = 1000;
663+
TargetAttributes = {
664+
F2C65FFE0D50C2D100820CAE = {
665+
SystemCapabilities = {
666+
com.apple.HardenedRuntime = {
667+
enabled = 1;
668+
};
669+
com.apple.Sandbox = {
670+
enabled = 1;
671+
};
672+
};
673+
};
674+
};
661675
};
662676
buildConfigurationList = C01FCF4E08A954540054247B /* Build configuration list for PBXProject "Port Map" */;
663677
compatibilityVersion = "Xcode 9.3";
@@ -929,6 +943,7 @@
929943
PRODUCT_BUNDLE_IDENTIFIER = de.monkeydom.TCMPortMapper;
930944
PRODUCT_NAME = TCMPortMapper;
931945
PROVISIONING_PROFILE_SPECIFIER = "";
946+
SKIP_INSTALL = YES;
932947
};
933948
name = Debug;
934949
};
@@ -964,6 +979,7 @@
964979
PRODUCT_BUNDLE_IDENTIFIER = de.monkeydom.TCMPortMapper;
965980
PRODUCT_NAME = TCMPortMapper;
966981
PROVISIONING_PROFILE_SPECIFIER = "";
982+
SKIP_INSTALL = YES;
967983
ZERO_LINK = NO;
968984
};
969985
name = Release;
@@ -1187,12 +1203,12 @@
11871203
ASSETCATALOG_COMPILER_APPICON_NAME = PortMap;
11881204
CODE_SIGN_IDENTITY = "Mac Developer";
11891205
CODE_SIGN_STYLE = Automatic;
1206+
ENABLE_HARDENED_RUNTIME = YES;
11901207
GCC_DYNAMIC_NO_PIC = NO;
11911208
GCC_MODEL_TUNING = G5;
11921209
GCC_OPTIMIZATION_LEVEL = 0;
11931210
GCC_PRECOMPILE_PREFIX_HEADER = YES;
11941211
INFOPLIST_FILE = portmap/Info.plist;
1195-
INSTALL_PATH = "$(HOME)/Applications";
11961212
OTHER_LDFLAGS = (
11971213
"-framework",
11981214
Foundation,
@@ -1214,10 +1230,10 @@
12141230
CODE_SIGN_IDENTITY = "Mac Developer";
12151231
CODE_SIGN_STYLE = Automatic;
12161232
DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym";
1233+
ENABLE_HARDENED_RUNTIME = YES;
12171234
GCC_MODEL_TUNING = G5;
12181235
GCC_PRECOMPILE_PREFIX_HEADER = YES;
12191236
INFOPLIST_FILE = portmap/Info.plist;
1220-
INSTALL_PATH = "$(HOME)/Applications";
12211237
OTHER_LDFLAGS = (
12221238
"-framework",
12231239
Foundation,

0 commit comments

Comments
 (0)