Skip to content

Commit 86e18af

Browse files
committed
Build WooFoundation framework using app extension safe APIs
The build process has been warning us about Experiments, Networking, and WooFoundation not being "safe" to link in App Extension targets. Setting this build setting to true seems to address the issue. The warning was like: ``` warning build: Linking against a dylib which is not safe for use in application extensions: /path/to/DerivedData/WooCommerce/Build/Products/Debug-iphonesimulator/Networking.framework/Networking ```
1 parent 64384f8 commit 86e18af

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

WooFoundation/WooFoundation.xcodeproj/project.pbxproj

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -548,6 +548,7 @@
548548
isa = XCBuildConfiguration;
549549
baseConfigurationReference = 81B8569CD52D20EAE64EE737 /* Pods-WooFoundation.release-alpha.xcconfig */;
550550
buildSettings = {
551+
APPLICATION_EXTENSION_API_ONLY = YES;
551552
CODE_SIGN_STYLE = Automatic;
552553
CURRENT_PROJECT_VERSION = 1;
553554
DEFINES_MODULE = YES;
@@ -709,6 +710,7 @@
709710
isa = XCBuildConfiguration;
710711
baseConfigurationReference = 99861FECBD0975C25DA03D80 /* Pods-WooFoundation.debug.xcconfig */;
711712
buildSettings = {
713+
APPLICATION_EXTENSION_API_ONLY = YES;
712714
CODE_SIGN_STYLE = Automatic;
713715
CURRENT_PROJECT_VERSION = 1;
714716
DEFINES_MODULE = YES;
@@ -741,6 +743,7 @@
741743
isa = XCBuildConfiguration;
742744
baseConfigurationReference = D64F2A76E9373989B3F181FC /* Pods-WooFoundation.release.xcconfig */;
743745
buildSettings = {
746+
APPLICATION_EXTENSION_API_ONLY = YES;
744747
CODE_SIGN_STYLE = Automatic;
745748
CURRENT_PROJECT_VERSION = 1;
746749
DEFINES_MODULE = YES;

0 commit comments

Comments
 (0)