From 3cc8538db39b03ca0ad9d2b3dc5e2ee0cd6bf9c2 Mon Sep 17 00:00:00 2001 From: Shin Yamamoto Date: Fri, 31 May 2019 13:34:07 +0900 Subject: [PATCH 1/2] Use wholemodule compilation mode on Debug --- Framework/FloatingPanel.xcodeproj/project.pbxproj | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Framework/FloatingPanel.xcodeproj/project.pbxproj b/Framework/FloatingPanel.xcodeproj/project.pbxproj index 5b0d6e94..ae1c8fa7 100644 --- a/Framework/FloatingPanel.xcodeproj/project.pbxproj +++ b/Framework/FloatingPanel.xcodeproj/project.pbxproj @@ -490,6 +490,7 @@ PRODUCT_NAME = "$(TARGET_NAME:c99extidentifier)"; SKIP_INSTALL = YES; SWIFT_ACTIVE_COMPILATION_CONDITIONS = DEBUG; + SWIFT_COMPILATION_MODE = wholemodule; SWIFT_OPTIMIZATION_LEVEL = "-Onone"; SWIFT_VERSION = 4.0; TARGETED_DEVICE_FAMILY = "1,2"; @@ -517,6 +518,7 @@ PRODUCT_BUNDLE_IDENTIFIER = com.scenee.FloatingPanel; PRODUCT_NAME = "$(TARGET_NAME:c99extidentifier)"; SKIP_INSTALL = YES; + SWIFT_COMPILATION_MODE = wholemodule; SWIFT_VERSION = 4.0; TARGETED_DEVICE_FAMILY = "1,2"; }; @@ -686,6 +688,7 @@ PRODUCT_NAME = "$(TARGET_NAME:c99extidentifier)"; SKIP_INSTALL = YES; SWIFT_ACTIVE_COMPILATION_CONDITIONS = "DEBUG __FP_LOG"; + SWIFT_COMPILATION_MODE = wholemodule; SWIFT_OPTIMIZATION_LEVEL = "-Onone"; SWIFT_VERSION = 4.0; TARGETED_DEVICE_FAMILY = "1,2"; From 624e3f75532b6d13af27b85d8a1dbb297ff85385 Mon Sep 17 00:00:00 2001 From: Shin Yamamoto Date: Fri, 31 May 2019 13:34:21 +0900 Subject: [PATCH 2/2] Set APPLICATION_EXTENSION_API_ONLY to YES by default --- FloatingPanel.podspec | 1 - Framework/FloatingPanel.xcodeproj/project.pbxproj | 3 +++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/FloatingPanel.podspec b/FloatingPanel.podspec index 67116621..9d0eb7f8 100644 --- a/FloatingPanel.podspec +++ b/FloatingPanel.podspec @@ -14,7 +14,6 @@ The new interface displays the related contents and utilities in parallel as a u s.source = { :git => "https://github.com/SCENEE/FloatingPanel.git", :tag => "v#{s.version}" } s.source_files = "Framework/Sources/*.swift" s.swift_version = "4.0" - s.pod_target_xcconfig = { 'APPLICATION_EXTENSION_API_ONLY' => 'YES' } s.framework = "UIKit" diff --git a/Framework/FloatingPanel.xcodeproj/project.pbxproj b/Framework/FloatingPanel.xcodeproj/project.pbxproj index ae1c8fa7..10e685ef 100644 --- a/Framework/FloatingPanel.xcodeproj/project.pbxproj +++ b/Framework/FloatingPanel.xcodeproj/project.pbxproj @@ -471,6 +471,7 @@ 545DB9D62151169500CA77B8 /* Debug */ = { isa = XCBuildConfiguration; buildSettings = { + APPLICATION_EXTENSION_API_ONLY = YES; CLANG_ENABLE_MODULES = YES; CODE_SIGN_IDENTITY = ""; CODE_SIGN_STYLE = Automatic; @@ -500,6 +501,7 @@ 545DB9D72151169500CA77B8 /* Release */ = { isa = XCBuildConfiguration; buildSettings = { + APPLICATION_EXTENSION_API_ONLY = YES; CLANG_ENABLE_MODULES = YES; CODE_SIGN_IDENTITY = ""; CODE_SIGN_STYLE = Automatic; @@ -669,6 +671,7 @@ 54E79AE0224F6C9800717BC6 /* Test */ = { isa = XCBuildConfiguration; buildSettings = { + APPLICATION_EXTENSION_API_ONLY = YES; CLANG_ENABLE_MODULES = YES; CODE_SIGN_IDENTITY = ""; CODE_SIGN_STYLE = Automatic;