From 32f24b5dd3794d87e04a2a1c380a4819faa89706 Mon Sep 17 00:00:00 2001 From: Valerii Hiora Date: Wed, 14 Dec 2016 16:55:39 +0200 Subject: [PATCH] Fixes building from carthage for app extension When an app extension was using the framework built by carthage there was a warning "linking against a dylib which is not safe for use in application extensions". This build setting makes linker much happier and mitigates the warning. --- PhoneNumberKit.xcodeproj/project.pbxproj | 2 ++ 1 file changed, 2 insertions(+) diff --git a/PhoneNumberKit.xcodeproj/project.pbxproj b/PhoneNumberKit.xcodeproj/project.pbxproj index f8097d649..d1b9ba62a 100644 --- a/PhoneNumberKit.xcodeproj/project.pbxproj +++ b/PhoneNumberKit.xcodeproj/project.pbxproj @@ -651,6 +651,7 @@ 342418791BB6E5A000EE70E7 /* Debug */ = { isa = XCBuildConfiguration; buildSettings = { + APPLICATION_EXTENSION_API_ONLY = YES; CLANG_ENABLE_MODULES = YES; "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = ""; DEFINES_MODULE = YES; @@ -671,6 +672,7 @@ 3424187A1BB6E5A000EE70E7 /* Release */ = { isa = XCBuildConfiguration; buildSettings = { + APPLICATION_EXTENSION_API_ONLY = YES; CLANG_ENABLE_MODULES = YES; "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = ""; DEFINES_MODULE = YES;