Skip to content

Commit 41945f2

Browse files
authored
Changed project to APPLICATION_EXTENSION_API_ONLY = YES (#353)
The framework still builds and tests still pass, so I think this is better to ensure that the library continues to work with the more restrictive option. This is a follow up to #352 and #351.
1 parent c634ef8 commit 41945f2

File tree

2 files changed

+14
-0
lines changed

2 files changed

+14
-0
lines changed

SnapshotTesting.xcodeproj/project.pbxproj

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -950,6 +950,7 @@
950950
0599123409D3A74965DD7DF5 /* Debug */ = {
951951
isa = XCBuildConfiguration;
952952
buildSettings = {
953+
APPLICATION_EXTENSION_API_ONLY = YES;
953954
BUNDLE_LOADER = "$(TEST_HOST)";
954955
INFOPLIST_FILE = Tests/Info.plist;
955956
LD_RUNPATH_SEARCH_PATHS = (
@@ -968,6 +969,7 @@
968969
2277B56067B75046C0A1B62F /* Debug */ = {
969970
isa = XCBuildConfiguration;
970971
buildSettings = {
972+
APPLICATION_EXTENSION_API_ONLY = YES;
971973
BUNDLE_LOADER = "$(TEST_HOST)";
972974
INFOPLIST_FILE = Tests/Info.plist;
973975
LD_RUNPATH_SEARCH_PATHS = (
@@ -986,6 +988,7 @@
986988
40A5D28387BCBCA2CC1FE11C /* Release */ = {
987989
isa = XCBuildConfiguration;
988990
buildSettings = {
991+
APPLICATION_EXTENSION_API_ONLY = YES;
989992
BUNDLE_LOADER = "$(TEST_HOST)";
990993
INFOPLIST_FILE = Tests/Info.plist;
991994
LD_RUNPATH_SEARCH_PATHS = (
@@ -1004,6 +1007,7 @@
10041007
4FA7607F66B8ABA649B6056C /* Debug */ = {
10051008
isa = XCBuildConfiguration;
10061009
buildSettings = {
1010+
APPLICATION_EXTENSION_API_ONLY = YES;
10071011
CODE_SIGN_IDENTITY = "";
10081012
COMBINE_HIDPI_IMAGES = YES;
10091013
CURRENT_PROJECT_VERSION = 1;
@@ -1031,6 +1035,7 @@
10311035
7A892D3CF9DFA14F5D83DDC6 /* Debug */ = {
10321036
isa = XCBuildConfiguration;
10331037
buildSettings = {
1038+
APPLICATION_EXTENSION_API_ONLY = YES;
10341039
BUNDLE_LOADER = "$(TEST_HOST)";
10351040
COMBINE_HIDPI_IMAGES = YES;
10361041
INFOPLIST_FILE = Tests/Info.plist;
@@ -1049,6 +1054,7 @@
10491054
97BC453D0A2FD987C257005F /* Release */ = {
10501055
isa = XCBuildConfiguration;
10511056
buildSettings = {
1057+
APPLICATION_EXTENSION_API_ONLY = YES;
10521058
CODE_SIGN_IDENTITY = "";
10531059
COMBINE_HIDPI_IMAGES = YES;
10541060
CURRENT_PROJECT_VERSION = 1;
@@ -1129,6 +1135,7 @@
11291135
CF766E2537E4426A0D7C2694 /* Debug */ = {
11301136
isa = XCBuildConfiguration;
11311137
buildSettings = {
1138+
APPLICATION_EXTENSION_API_ONLY = YES;
11321139
CODE_SIGN_IDENTITY = "";
11331140
CURRENT_PROJECT_VERSION = 1;
11341141
DEFINES_MODULE = YES;
@@ -1156,6 +1163,7 @@
11561163
D9FF7D396CC20A3E59EB1145 /* Release */ = {
11571164
isa = XCBuildConfiguration;
11581165
buildSettings = {
1166+
APPLICATION_EXTENSION_API_ONLY = YES;
11591167
CODE_SIGN_IDENTITY = "";
11601168
CURRENT_PROJECT_VERSION = 1;
11611169
DEFINES_MODULE = YES;
@@ -1183,6 +1191,7 @@
11831191
DE96DD966ECF6C6107DC8979 /* Debug */ = {
11841192
isa = XCBuildConfiguration;
11851193
buildSettings = {
1194+
APPLICATION_EXTENSION_API_ONLY = YES;
11861195
CODE_SIGN_IDENTITY = "";
11871196
CURRENT_PROJECT_VERSION = 1;
11881197
DEFINES_MODULE = YES;
@@ -1271,6 +1280,7 @@
12711280
EE2EEFC9F90E51027AEC6732 /* Release */ = {
12721281
isa = XCBuildConfiguration;
12731282
buildSettings = {
1283+
APPLICATION_EXTENSION_API_ONLY = YES;
12741284
BUNDLE_LOADER = "$(TEST_HOST)";
12751285
INFOPLIST_FILE = Tests/Info.plist;
12761286
LD_RUNPATH_SEARCH_PATHS = (
@@ -1289,6 +1299,7 @@
12891299
F5C56FCFB9CA36D38912B3F7 /* Release */ = {
12901300
isa = XCBuildConfiguration;
12911301
buildSettings = {
1302+
APPLICATION_EXTENSION_API_ONLY = YES;
12921303
CODE_SIGN_IDENTITY = "";
12931304
CURRENT_PROJECT_VERSION = 1;
12941305
DEFINES_MODULE = YES;
@@ -1316,6 +1327,7 @@
13161327
FFBA36D8171A8AF1E78CE7BE /* Release */ = {
13171328
isa = XCBuildConfiguration;
13181329
buildSettings = {
1330+
APPLICATION_EXTENSION_API_ONLY = YES;
13191331
BUNDLE_LOADER = "$(TEST_HOST)";
13201332
COMBINE_HIDPI_IMAGES = YES;
13211333
INFOPLIST_FILE = Tests/Info.plist;

project.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ targets:
1515
ENABLE_BITCODE: false
1616
FRAMEWORK_SEARCH_PATHS: $(inherited) $(PLATFORM_DIR)/Developer/Library/Frameworks
1717
SWIFT_VERSION: 5.0
18+
APPLICATION_EXTENSION_API_ONLY: 'YES'
1819
scheme:
1920
environmentVariables:
2021
SNAPSHOT_ARTIFACTS: /tmp/__SnapshotArtifacts__
@@ -26,6 +27,7 @@ targets:
2627
platform: [macOS, iOS, tvOS]
2728
settings:
2829
SWIFT_VERSION: 5.0
30+
APPLICATION_EXTENSION_API_ONLY: 'YES'
2931
sources:
3032
- path: Tests
3133
excludes:

0 commit comments

Comments
 (0)