From 01595dd64812947822a88215574468dc8e341109 Mon Sep 17 00:00:00 2001 From: David Tong Date: Fri, 16 Aug 2019 15:50:58 +0700 Subject: [PATCH 1/7] - Upgrade swift 4.0 --- RxCoreMotion.xcodeproj/project.pbxproj | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/RxCoreMotion.xcodeproj/project.pbxproj b/RxCoreMotion.xcodeproj/project.pbxproj index 4eccebc..c7fef9e 100644 --- a/RxCoreMotion.xcodeproj/project.pbxproj +++ b/RxCoreMotion.xcodeproj/project.pbxproj @@ -160,6 +160,7 @@ developmentRegion = English; hasScannedForEncodings = 0; knownRegions = ( + English, en, Base, ); @@ -330,7 +331,7 @@ SKIP_INSTALL = YES; SWIFT_ACTIVE_COMPILATION_CONDITIONS = DEBUG; SWIFT_OPTIMIZATION_LEVEL = "-Onone"; - SWIFT_VERSION = 3.0; + SWIFT_VERSION = 4.0; TARGETED_DEVICE_FAMILY = "1,2"; VERSIONING_SYSTEM = "apple-generic"; VERSION_INFO_PREFIX = ""; @@ -361,7 +362,7 @@ PRODUCT_BUNDLE_IDENTIFIER = rx.swift.RxCoreMotion; PRODUCT_NAME = "$(TARGET_NAME)"; SKIP_INSTALL = YES; - SWIFT_VERSION = 3.0; + SWIFT_VERSION = 4.0; TARGETED_DEVICE_FAMILY = "1,2"; VERSIONING_SYSTEM = "apple-generic"; VERSION_INFO_PREFIX = ""; From ab6ba70b67f68782c7a8b218311d9dc9081ed275 Mon Sep 17 00:00:00 2001 From: Khanh Nguyen Date: Thu, 22 Aug 2019 14:36:47 +0700 Subject: [PATCH 2/7] + support watchos --- Cartfile.resolved | 2 +- RxCoreMotion.xcodeproj/project.pbxproj | 2 ++ .../xcshareddata/IDEWorkspaceChecks.plist | 8 ++++++++ 3 files changed, 11 insertions(+), 1 deletion(-) create mode 100644 RxCoreMotion.xcodeproj/project.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist diff --git a/Cartfile.resolved b/Cartfile.resolved index 6900f77..b751e3d 100644 --- a/Cartfile.resolved +++ b/Cartfile.resolved @@ -1 +1 @@ -github "ReactiveX/RxSwift" "3.3.1" +github "ReactiveX/RxSwift" "5.0.1" diff --git a/RxCoreMotion.xcodeproj/project.pbxproj b/RxCoreMotion.xcodeproj/project.pbxproj index c7fef9e..7afad9b 100644 --- a/RxCoreMotion.xcodeproj/project.pbxproj +++ b/RxCoreMotion.xcodeproj/project.pbxproj @@ -257,6 +257,7 @@ MTL_ENABLE_DEBUG_INFO = YES; ONLY_ACTIVE_ARCH = YES; SDKROOT = iphoneos; + SUPPORTED_PLATFORMS = "iphonesimulator iphoneos watchsimulator watchos"; SWIFT_OPTIMIZATION_LEVEL = "-Onone"; SWIFT_VERSION = 3.0; }; @@ -298,6 +299,7 @@ IPHONEOS_DEPLOYMENT_TARGET = 8.0; MTL_ENABLE_DEBUG_INFO = NO; SDKROOT = iphoneos; + SUPPORTED_PLATFORMS = "iphonesimulator iphoneos watchsimulator watchos"; SWIFT_OPTIMIZATION_LEVEL = "-Owholemodule"; SWIFT_VERSION = 3.0; VALIDATE_PRODUCT = YES; diff --git a/RxCoreMotion.xcodeproj/project.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist b/RxCoreMotion.xcodeproj/project.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist new file mode 100644 index 0000000..18d9810 --- /dev/null +++ b/RxCoreMotion.xcodeproj/project.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist @@ -0,0 +1,8 @@ + + + + + IDEDidComputeMac32BitWarning + + + From 8b47e822a4626cc835c0a7f743b9143e1150321d Mon Sep 17 00:00:00 2001 From: Khanh Nguyen Date: Thu, 22 Aug 2019 15:11:58 +0700 Subject: [PATCH 3/7] + Add new target for watch os --- RxCoreMotion copy-Info.plist | 24 +++ RxCoreMotion.xcodeproj/project.pbxproj | 173 ++++++++++++++++++ .../xcschemes/RxCoreMotion-watchOS.xcscheme | 80 ++++++++ 3 files changed, 277 insertions(+) create mode 100644 RxCoreMotion copy-Info.plist create mode 100644 RxCoreMotion.xcodeproj/xcshareddata/xcschemes/RxCoreMotion-watchOS.xcscheme diff --git a/RxCoreMotion copy-Info.plist b/RxCoreMotion copy-Info.plist new file mode 100644 index 0000000..95d9477 --- /dev/null +++ b/RxCoreMotion copy-Info.plist @@ -0,0 +1,24 @@ + + + + + CFBundleDevelopmentRegion + en + CFBundleExecutable + $(EXECUTABLE_NAME) + CFBundleIdentifier + $(PRODUCT_BUNDLE_IDENTIFIER) + CFBundleInfoDictionaryVersion + 6.0 + CFBundleName + $(PRODUCT_NAME) + CFBundlePackageType + FMWK + CFBundleShortVersionString + 1.1.1 + CFBundleVersion + $(CURRENT_PROJECT_VERSION) + NSPrincipalClass + + + diff --git a/RxCoreMotion.xcodeproj/project.pbxproj b/RxCoreMotion.xcodeproj/project.pbxproj index 7afad9b..084efc6 100644 --- a/RxCoreMotion.xcodeproj/project.pbxproj +++ b/RxCoreMotion.xcodeproj/project.pbxproj @@ -7,6 +7,13 @@ objects = { /* Begin PBXBuildFile section */ + 06A38EBD230E832D004CF703 /* MotionActivityManager.swift in Sources */ = {isa = PBXBuildFile; fileRef = 79FD4AF91ED4C03500B27328 /* MotionActivityManager.swift */; }; + 06A38EBE230E832D004CF703 /* RxCoreMotion.swift in Sources */ = {isa = PBXBuildFile; fileRef = 07D678671E7F676C0013F645 /* RxCoreMotion.swift */; }; + 06A38EC0230E832D004CF703 /* Foundation.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 667B13091E7BCE28001151C7 /* Foundation.framework */; }; + 06A38EC1230E832D004CF703 /* CoreMotion.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 667B13071E7BCE22001151C7 /* CoreMotion.framework */; }; + 06A38EC2230E832D004CF703 /* RxSwift.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 07D678651E7F67540013F645 /* RxSwift.framework */; }; + 06A38EC4230E832D004CF703 /* RxCoreMotion.h in Headers */ = {isa = PBXBuildFile; fileRef = 07D6786B1E7F67940013F645 /* RxCoreMotion.h */; settings = {ATTRIBUTES = (Public, ); }; }; + 06A38EC8230E832D004CF703 /* RxSwift.framework.dSYM in [Carthage] Copy dSYMS */ = {isa = PBXBuildFile; fileRef = 07D6786D1E7F6C4B0013F645 /* RxSwift.framework.dSYM */; }; 07D678661E7F67540013F645 /* RxSwift.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 07D678651E7F67540013F645 /* RxSwift.framework */; }; 07D678681E7F676C0013F645 /* RxCoreMotion.swift in Sources */ = {isa = PBXBuildFile; fileRef = 07D678671E7F676C0013F645 /* RxCoreMotion.swift */; }; 07D6786C1E7F67B10013F645 /* RxCoreMotion.h in Headers */ = {isa = PBXBuildFile; fileRef = 07D6786B1E7F67940013F645 /* RxCoreMotion.h */; settings = {ATTRIBUTES = (Public, ); }; }; @@ -17,6 +24,17 @@ /* End PBXBuildFile section */ /* Begin PBXCopyFilesBuildPhase section */ + 06A38EC7230E832D004CF703 /* [Carthage] Copy dSYMS */ = { + isa = PBXCopyFilesBuildPhase; + buildActionMask = 2147483647; + dstPath = ""; + dstSubfolderSpec = 16; + files = ( + 06A38EC8230E832D004CF703 /* RxSwift.framework.dSYM in [Carthage] Copy dSYMS */, + ); + name = "[Carthage] Copy dSYMS"; + runOnlyForDeploymentPostprocessing = 0; + }; 667B13031E7BCCA9001151C7 /* [Carthage] Copy dSYMS */ = { isa = PBXCopyFilesBuildPhase; buildActionMask = 2147483647; @@ -31,6 +49,8 @@ /* End PBXCopyFilesBuildPhase section */ /* Begin PBXFileReference section */ + 06A38ECC230E832D004CF703 /* RxCoreMotion-watchOS.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; includeInIndex = 0; path = "RxCoreMotion-watchOS.framework"; sourceTree = BUILT_PRODUCTS_DIR; }; + 06A38ECD230E832D004CF703 /* RxCoreMotion copy-Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; name = "RxCoreMotion copy-Info.plist"; path = "/Users/installpoeta/Projects/Fork/CoreMotionWatchos/RxCoreMotion copy-Info.plist"; sourceTree = ""; }; 07D678651E7F67540013F645 /* RxSwift.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = RxSwift.framework; path = Carthage/Build/iOS/RxSwift.framework; sourceTree = ""; }; 07D678671E7F676C0013F645 /* RxCoreMotion.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; name = RxCoreMotion.swift; path = Pod/Classes/RxCoreMotion.swift; sourceTree = SOURCE_ROOT; }; 07D6786A1E7F67940013F645 /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; }; @@ -43,6 +63,16 @@ /* End PBXFileReference section */ /* Begin PBXFrameworksBuildPhase section */ + 06A38EBF230E832D004CF703 /* Frameworks */ = { + isa = PBXFrameworksBuildPhase; + buildActionMask = 2147483647; + files = ( + 06A38EC0230E832D004CF703 /* Foundation.framework in Frameworks */, + 06A38EC1230E832D004CF703 /* CoreMotion.framework in Frameworks */, + 06A38EC2230E832D004CF703 /* RxSwift.framework in Frameworks */, + ); + runOnlyForDeploymentPostprocessing = 0; + }; 667B12F11E7BCACB001151C7 /* Frameworks */ = { isa = PBXFrameworksBuildPhase; buildActionMask = 2147483647; @@ -63,6 +93,7 @@ 07D678691E7F67940013F645 /* RxCoreMotion */, 071AD5A91CF171850058C7ED /* Products */, 788EF9CBABF5068261AC6651 /* Frameworks */, + 06A38ECD230E832D004CF703 /* RxCoreMotion copy-Info.plist */, ); sourceTree = ""; }; @@ -70,6 +101,7 @@ isa = PBXGroup; children = ( 667B12F51E7BCACB001151C7 /* RxCoreMotion.framework */, + 06A38ECC230E832D004CF703 /* RxCoreMotion-watchOS.framework */, ); name = Products; sourceTree = ""; @@ -107,6 +139,14 @@ /* End PBXGroup section */ /* Begin PBXHeadersBuildPhase section */ + 06A38EC3230E832D004CF703 /* Headers */ = { + isa = PBXHeadersBuildPhase; + buildActionMask = 2147483647; + files = ( + 06A38EC4230E832D004CF703 /* RxCoreMotion.h in Headers */, + ); + runOnlyForDeploymentPostprocessing = 0; + }; 667B12F21E7BCACB001151C7 /* Headers */ = { isa = PBXHeadersBuildPhase; buildActionMask = 2147483647; @@ -118,6 +158,26 @@ /* End PBXHeadersBuildPhase section */ /* Begin PBXNativeTarget section */ + 06A38EBB230E832D004CF703 /* RxCoreMotion-watchOS */ = { + isa = PBXNativeTarget; + buildConfigurationList = 06A38EC9230E832D004CF703 /* Build configuration list for PBXNativeTarget "RxCoreMotion-watchOS" */; + buildPhases = ( + 06A38EBC230E832D004CF703 /* Sources */, + 06A38EBF230E832D004CF703 /* Frameworks */, + 06A38EC3230E832D004CF703 /* Headers */, + 06A38EC5230E832D004CF703 /* Resources */, + 06A38EC6230E832D004CF703 /* [Carthage] Copy Frameworks */, + 06A38EC7230E832D004CF703 /* [Carthage] Copy dSYMS */, + ); + buildRules = ( + ); + dependencies = ( + ); + name = "RxCoreMotion-watchOS"; + productName = "RxCoreMotion iOS"; + productReference = 06A38ECC230E832D004CF703 /* RxCoreMotion-watchOS.framework */; + productType = "com.apple.product-type.framework"; + }; 667B12F41E7BCACB001151C7 /* RxCoreMotion */ = { isa = PBXNativeTarget; buildConfigurationList = 667B12FC1E7BCACB001151C7 /* Build configuration list for PBXNativeTarget "RxCoreMotion" */; @@ -170,11 +230,19 @@ projectRoot = ""; targets = ( 667B12F41E7BCACB001151C7 /* RxCoreMotion */, + 06A38EBB230E832D004CF703 /* RxCoreMotion-watchOS */, ); }; /* End PBXProject section */ /* Begin PBXResourcesBuildPhase section */ + 06A38EC5230E832D004CF703 /* Resources */ = { + isa = PBXResourcesBuildPhase; + buildActionMask = 2147483647; + files = ( + ); + runOnlyForDeploymentPostprocessing = 0; + }; 667B12F31E7BCACB001151C7 /* Resources */ = { isa = PBXResourcesBuildPhase; buildActionMask = 2147483647; @@ -185,6 +253,20 @@ /* End PBXResourcesBuildPhase section */ /* Begin PBXShellScriptBuildPhase section */ + 06A38EC6230E832D004CF703 /* [Carthage] Copy Frameworks */ = { + isa = PBXShellScriptBuildPhase; + buildActionMask = 2147483647; + files = ( + ); + inputPaths = ( + ); + name = "[Carthage] Copy Frameworks"; + outputPaths = ( + ); + runOnlyForDeploymentPostprocessing = 0; + shellPath = /bin/sh; + shellScript = "/usr/local/bin/carthage copy-frameworks"; + }; 667B13061E7BCCF5001151C7 /* [Carthage] Copy Frameworks */ = { isa = PBXShellScriptBuildPhase; buildActionMask = 2147483647; @@ -202,6 +284,15 @@ /* End PBXShellScriptBuildPhase section */ /* Begin PBXSourcesBuildPhase section */ + 06A38EBC230E832D004CF703 /* Sources */ = { + isa = PBXSourcesBuildPhase; + buildActionMask = 2147483647; + files = ( + 06A38EBD230E832D004CF703 /* MotionActivityManager.swift in Sources */, + 06A38EBE230E832D004CF703 /* RxCoreMotion.swift in Sources */, + ); + runOnlyForDeploymentPostprocessing = 0; + }; 667B12F01E7BCACB001151C7 /* Sources */ = { isa = PBXSourcesBuildPhase; buildActionMask = 2147483647; @@ -214,6 +305,77 @@ /* End PBXSourcesBuildPhase section */ /* Begin XCBuildConfiguration section */ + 06A38ECA230E832D004CF703 /* Debug */ = { + isa = XCBuildConfiguration; + buildSettings = { + CLANG_ANALYZER_NUMBER_OBJECT_CONVERSION = YES_AGGRESSIVE; + CLANG_ENABLE_MODULES = YES; + CLANG_WARN_DOCUMENTATION_COMMENTS = YES; + CODE_SIGN_IDENTITY = ""; + "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer"; + CURRENT_PROJECT_VERSION = 1; + DEFINES_MODULE = YES; + DEVELOPMENT_TEAM = ""; + DYLIB_COMPATIBILITY_VERSION = 1; + DYLIB_CURRENT_VERSION = 1; + DYLIB_INSTALL_NAME_BASE = "@rpath"; + FRAMEWORK_SEARCH_PATHS = ( + "$(inherited)", + "$(PROJECT_DIR)/Carthage/Build/iOS", + ); + INFOPLIST_FILE = "RxCoreMotion copy-Info.plist"; + INSTALL_PATH = "$(LOCAL_LIBRARY_DIR)/Frameworks"; + IPHONEOS_DEPLOYMENT_TARGET = 8.0; + LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks"; + PRODUCT_BUNDLE_IDENTIFIER = rx.swift.RxCoreMotion; + PRODUCT_NAME = "$(TARGET_NAME)"; + SDKROOT = watchos; + SKIP_INSTALL = YES; + SUPPORTED_PLATFORMS = "watchos watchsimulator"; + SWIFT_ACTIVE_COMPILATION_CONDITIONS = DEBUG; + SWIFT_OPTIMIZATION_LEVEL = "-Onone"; + SWIFT_VERSION = 4.0; + TARGETED_DEVICE_FAMILY = "1,2"; + VERSIONING_SYSTEM = "apple-generic"; + VERSION_INFO_PREFIX = ""; + WATCHOS_DEPLOYMENT_TARGET = 4.0; + }; + name = Debug; + }; + 06A38ECB230E832D004CF703 /* Release */ = { + isa = XCBuildConfiguration; + buildSettings = { + CLANG_ANALYZER_NUMBER_OBJECT_CONVERSION = YES_AGGRESSIVE; + CLANG_ENABLE_MODULES = YES; + CLANG_WARN_DOCUMENTATION_COMMENTS = YES; + CODE_SIGN_IDENTITY = ""; + CURRENT_PROJECT_VERSION = 1; + DEFINES_MODULE = YES; + DEVELOPMENT_TEAM = ""; + DYLIB_COMPATIBILITY_VERSION = 1; + DYLIB_CURRENT_VERSION = 1; + DYLIB_INSTALL_NAME_BASE = "@rpath"; + FRAMEWORK_SEARCH_PATHS = ( + "$(inherited)", + "$(PROJECT_DIR)/Carthage/Build/iOS", + ); + INFOPLIST_FILE = "RxCoreMotion copy-Info.plist"; + INSTALL_PATH = "$(LOCAL_LIBRARY_DIR)/Frameworks"; + IPHONEOS_DEPLOYMENT_TARGET = 8.0; + LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks"; + PRODUCT_BUNDLE_IDENTIFIER = rx.swift.RxCoreMotion; + PRODUCT_NAME = "$(TARGET_NAME)"; + SDKROOT = watchos; + SKIP_INSTALL = YES; + SUPPORTED_PLATFORMS = "watchos watchsimulator"; + SWIFT_VERSION = 4.0; + TARGETED_DEVICE_FAMILY = "1,2"; + VERSIONING_SYSTEM = "apple-generic"; + VERSION_INFO_PREFIX = ""; + WATCHOS_DEPLOYMENT_TARGET = 4.0; + }; + name = Release; + }; 071AD5B81CF171850058C7ED /* Debug */ = { isa = XCBuildConfiguration; buildSettings = { @@ -331,6 +493,7 @@ PRODUCT_BUNDLE_IDENTIFIER = rx.swift.RxCoreMotion; PRODUCT_NAME = "$(TARGET_NAME)"; SKIP_INSTALL = YES; + SUPPORTED_PLATFORMS = "iphonesimulator iphoneos"; SWIFT_ACTIVE_COMPILATION_CONDITIONS = DEBUG; SWIFT_OPTIMIZATION_LEVEL = "-Onone"; SWIFT_VERSION = 4.0; @@ -364,6 +527,7 @@ PRODUCT_BUNDLE_IDENTIFIER = rx.swift.RxCoreMotion; PRODUCT_NAME = "$(TARGET_NAME)"; SKIP_INSTALL = YES; + SUPPORTED_PLATFORMS = "iphonesimulator iphoneos"; SWIFT_VERSION = 4.0; TARGETED_DEVICE_FAMILY = "1,2"; VERSIONING_SYSTEM = "apple-generic"; @@ -374,6 +538,15 @@ /* End XCBuildConfiguration section */ /* Begin XCConfigurationList section */ + 06A38EC9230E832D004CF703 /* Build configuration list for PBXNativeTarget "RxCoreMotion-watchOS" */ = { + isa = XCConfigurationList; + buildConfigurations = ( + 06A38ECA230E832D004CF703 /* Debug */, + 06A38ECB230E832D004CF703 /* Release */, + ); + defaultConfigurationIsVisible = 0; + defaultConfigurationName = Release; + }; 071AD5A31CF171850058C7ED /* Build configuration list for PBXProject "RxCoreMotion" */ = { isa = XCConfigurationList; buildConfigurations = ( diff --git a/RxCoreMotion.xcodeproj/xcshareddata/xcschemes/RxCoreMotion-watchOS.xcscheme b/RxCoreMotion.xcodeproj/xcshareddata/xcschemes/RxCoreMotion-watchOS.xcscheme new file mode 100644 index 0000000..3a9c221 --- /dev/null +++ b/RxCoreMotion.xcodeproj/xcshareddata/xcschemes/RxCoreMotion-watchOS.xcscheme @@ -0,0 +1,80 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + From 4687bd9214f5cf2d2b597299db1ffbabb6499c8e Mon Sep 17 00:00:00 2001 From: Khanh Nguyen Date: Thu, 22 Aug 2019 16:33:13 +0700 Subject: [PATCH 4/7] + updating config --- RxCoreMotion.xcodeproj/project.pbxproj | 189 ++---------------- .../xcschemes/RxCoreMotion-watchOS.xcscheme | 80 -------- 2 files changed, 12 insertions(+), 257 deletions(-) delete mode 100644 RxCoreMotion.xcodeproj/xcshareddata/xcschemes/RxCoreMotion-watchOS.xcscheme diff --git a/RxCoreMotion.xcodeproj/project.pbxproj b/RxCoreMotion.xcodeproj/project.pbxproj index 084efc6..d1f5771 100644 --- a/RxCoreMotion.xcodeproj/project.pbxproj +++ b/RxCoreMotion.xcodeproj/project.pbxproj @@ -7,14 +7,7 @@ objects = { /* Begin PBXBuildFile section */ - 06A38EBD230E832D004CF703 /* MotionActivityManager.swift in Sources */ = {isa = PBXBuildFile; fileRef = 79FD4AF91ED4C03500B27328 /* MotionActivityManager.swift */; }; - 06A38EBE230E832D004CF703 /* RxCoreMotion.swift in Sources */ = {isa = PBXBuildFile; fileRef = 07D678671E7F676C0013F645 /* RxCoreMotion.swift */; }; - 06A38EC0230E832D004CF703 /* Foundation.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 667B13091E7BCE28001151C7 /* Foundation.framework */; }; - 06A38EC1230E832D004CF703 /* CoreMotion.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 667B13071E7BCE22001151C7 /* CoreMotion.framework */; }; - 06A38EC2230E832D004CF703 /* RxSwift.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 07D678651E7F67540013F645 /* RxSwift.framework */; }; - 06A38EC4230E832D004CF703 /* RxCoreMotion.h in Headers */ = {isa = PBXBuildFile; fileRef = 07D6786B1E7F67940013F645 /* RxCoreMotion.h */; settings = {ATTRIBUTES = (Public, ); }; }; - 06A38EC8230E832D004CF703 /* RxSwift.framework.dSYM in [Carthage] Copy dSYMS */ = {isa = PBXBuildFile; fileRef = 07D6786D1E7F6C4B0013F645 /* RxSwift.framework.dSYM */; }; - 07D678661E7F67540013F645 /* RxSwift.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 07D678651E7F67540013F645 /* RxSwift.framework */; }; + 06A38ED5230E935E004CF703 /* RxSwift.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 06A38ED4230E935E004CF703 /* RxSwift.framework */; }; 07D678681E7F676C0013F645 /* RxCoreMotion.swift in Sources */ = {isa = PBXBuildFile; fileRef = 07D678671E7F676C0013F645 /* RxCoreMotion.swift */; }; 07D6786C1E7F67B10013F645 /* RxCoreMotion.h in Headers */ = {isa = PBXBuildFile; fileRef = 07D6786B1E7F67940013F645 /* RxCoreMotion.h */; settings = {ATTRIBUTES = (Public, ); }; }; 07D6786E1E7F6D080013F645 /* RxSwift.framework.dSYM in [Carthage] Copy dSYMS */ = {isa = PBXBuildFile; fileRef = 07D6786D1E7F6C4B0013F645 /* RxSwift.framework.dSYM */; }; @@ -24,17 +17,6 @@ /* End PBXBuildFile section */ /* Begin PBXCopyFilesBuildPhase section */ - 06A38EC7230E832D004CF703 /* [Carthage] Copy dSYMS */ = { - isa = PBXCopyFilesBuildPhase; - buildActionMask = 2147483647; - dstPath = ""; - dstSubfolderSpec = 16; - files = ( - 06A38EC8230E832D004CF703 /* RxSwift.framework.dSYM in [Carthage] Copy dSYMS */, - ); - name = "[Carthage] Copy dSYMS"; - runOnlyForDeploymentPostprocessing = 0; - }; 667B13031E7BCCA9001151C7 /* [Carthage] Copy dSYMS */ = { isa = PBXCopyFilesBuildPhase; buildActionMask = 2147483647; @@ -49,9 +31,8 @@ /* End PBXCopyFilesBuildPhase section */ /* Begin PBXFileReference section */ - 06A38ECC230E832D004CF703 /* RxCoreMotion-watchOS.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; includeInIndex = 0; path = "RxCoreMotion-watchOS.framework"; sourceTree = BUILT_PRODUCTS_DIR; }; 06A38ECD230E832D004CF703 /* RxCoreMotion copy-Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; name = "RxCoreMotion copy-Info.plist"; path = "/Users/installpoeta/Projects/Fork/CoreMotionWatchos/RxCoreMotion copy-Info.plist"; sourceTree = ""; }; - 07D678651E7F67540013F645 /* RxSwift.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = RxSwift.framework; path = Carthage/Build/iOS/RxSwift.framework; sourceTree = ""; }; + 06A38ED4230E935E004CF703 /* RxSwift.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = RxSwift.framework; path = Carthage/Build/iOS/RxSwift.framework; sourceTree = ""; }; 07D678671E7F676C0013F645 /* RxCoreMotion.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; name = RxCoreMotion.swift; path = Pod/Classes/RxCoreMotion.swift; sourceTree = SOURCE_ROOT; }; 07D6786A1E7F67940013F645 /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; }; 07D6786B1E7F67940013F645 /* RxCoreMotion.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = RxCoreMotion.h; sourceTree = ""; }; @@ -63,23 +44,13 @@ /* End PBXFileReference section */ /* Begin PBXFrameworksBuildPhase section */ - 06A38EBF230E832D004CF703 /* Frameworks */ = { - isa = PBXFrameworksBuildPhase; - buildActionMask = 2147483647; - files = ( - 06A38EC0230E832D004CF703 /* Foundation.framework in Frameworks */, - 06A38EC1230E832D004CF703 /* CoreMotion.framework in Frameworks */, - 06A38EC2230E832D004CF703 /* RxSwift.framework in Frameworks */, - ); - runOnlyForDeploymentPostprocessing = 0; - }; 667B12F11E7BCACB001151C7 /* Frameworks */ = { isa = PBXFrameworksBuildPhase; buildActionMask = 2147483647; files = ( 667B130A1E7BCE28001151C7 /* Foundation.framework in Frameworks */, 667B13081E7BCE22001151C7 /* CoreMotion.framework in Frameworks */, - 07D678661E7F67540013F645 /* RxSwift.framework in Frameworks */, + 06A38ED5230E935E004CF703 /* RxSwift.framework in Frameworks */, ); runOnlyForDeploymentPostprocessing = 0; }; @@ -101,7 +72,6 @@ isa = PBXGroup; children = ( 667B12F51E7BCACB001151C7 /* RxCoreMotion.framework */, - 06A38ECC230E832D004CF703 /* RxCoreMotion-watchOS.framework */, ); name = Products; sourceTree = ""; @@ -129,9 +99,9 @@ isa = PBXGroup; children = ( 07D6786D1E7F6C4B0013F645 /* RxSwift.framework.dSYM */, - 07D678651E7F67540013F645 /* RxSwift.framework */, 667B13071E7BCE22001151C7 /* CoreMotion.framework */, 667B13091E7BCE28001151C7 /* Foundation.framework */, + 06A38ED4230E935E004CF703 /* RxSwift.framework */, ); name = Frameworks; sourceTree = ""; @@ -139,14 +109,6 @@ /* End PBXGroup section */ /* Begin PBXHeadersBuildPhase section */ - 06A38EC3230E832D004CF703 /* Headers */ = { - isa = PBXHeadersBuildPhase; - buildActionMask = 2147483647; - files = ( - 06A38EC4230E832D004CF703 /* RxCoreMotion.h in Headers */, - ); - runOnlyForDeploymentPostprocessing = 0; - }; 667B12F21E7BCACB001151C7 /* Headers */ = { isa = PBXHeadersBuildPhase; buildActionMask = 2147483647; @@ -158,26 +120,6 @@ /* End PBXHeadersBuildPhase section */ /* Begin PBXNativeTarget section */ - 06A38EBB230E832D004CF703 /* RxCoreMotion-watchOS */ = { - isa = PBXNativeTarget; - buildConfigurationList = 06A38EC9230E832D004CF703 /* Build configuration list for PBXNativeTarget "RxCoreMotion-watchOS" */; - buildPhases = ( - 06A38EBC230E832D004CF703 /* Sources */, - 06A38EBF230E832D004CF703 /* Frameworks */, - 06A38EC3230E832D004CF703 /* Headers */, - 06A38EC5230E832D004CF703 /* Resources */, - 06A38EC6230E832D004CF703 /* [Carthage] Copy Frameworks */, - 06A38EC7230E832D004CF703 /* [Carthage] Copy dSYMS */, - ); - buildRules = ( - ); - dependencies = ( - ); - name = "RxCoreMotion-watchOS"; - productName = "RxCoreMotion iOS"; - productReference = 06A38ECC230E832D004CF703 /* RxCoreMotion-watchOS.framework */; - productType = "com.apple.product-type.framework"; - }; 667B12F41E7BCACB001151C7 /* RxCoreMotion */ = { isa = PBXNativeTarget; buildConfigurationList = 667B12FC1E7BCACB001151C7 /* Build configuration list for PBXNativeTarget "RxCoreMotion" */; @@ -230,19 +172,11 @@ projectRoot = ""; targets = ( 667B12F41E7BCACB001151C7 /* RxCoreMotion */, - 06A38EBB230E832D004CF703 /* RxCoreMotion-watchOS */, ); }; /* End PBXProject section */ /* Begin PBXResourcesBuildPhase section */ - 06A38EC5230E832D004CF703 /* Resources */ = { - isa = PBXResourcesBuildPhase; - buildActionMask = 2147483647; - files = ( - ); - runOnlyForDeploymentPostprocessing = 0; - }; 667B12F31E7BCACB001151C7 /* Resources */ = { isa = PBXResourcesBuildPhase; buildActionMask = 2147483647; @@ -253,20 +187,6 @@ /* End PBXResourcesBuildPhase section */ /* Begin PBXShellScriptBuildPhase section */ - 06A38EC6230E832D004CF703 /* [Carthage] Copy Frameworks */ = { - isa = PBXShellScriptBuildPhase; - buildActionMask = 2147483647; - files = ( - ); - inputPaths = ( - ); - name = "[Carthage] Copy Frameworks"; - outputPaths = ( - ); - runOnlyForDeploymentPostprocessing = 0; - shellPath = /bin/sh; - shellScript = "/usr/local/bin/carthage copy-frameworks"; - }; 667B13061E7BCCF5001151C7 /* [Carthage] Copy Frameworks */ = { isa = PBXShellScriptBuildPhase; buildActionMask = 2147483647; @@ -284,15 +204,6 @@ /* End PBXShellScriptBuildPhase section */ /* Begin PBXSourcesBuildPhase section */ - 06A38EBC230E832D004CF703 /* Sources */ = { - isa = PBXSourcesBuildPhase; - buildActionMask = 2147483647; - files = ( - 06A38EBD230E832D004CF703 /* MotionActivityManager.swift in Sources */, - 06A38EBE230E832D004CF703 /* RxCoreMotion.swift in Sources */, - ); - runOnlyForDeploymentPostprocessing = 0; - }; 667B12F01E7BCACB001151C7 /* Sources */ = { isa = PBXSourcesBuildPhase; buildActionMask = 2147483647; @@ -305,77 +216,6 @@ /* End PBXSourcesBuildPhase section */ /* Begin XCBuildConfiguration section */ - 06A38ECA230E832D004CF703 /* Debug */ = { - isa = XCBuildConfiguration; - buildSettings = { - CLANG_ANALYZER_NUMBER_OBJECT_CONVERSION = YES_AGGRESSIVE; - CLANG_ENABLE_MODULES = YES; - CLANG_WARN_DOCUMENTATION_COMMENTS = YES; - CODE_SIGN_IDENTITY = ""; - "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer"; - CURRENT_PROJECT_VERSION = 1; - DEFINES_MODULE = YES; - DEVELOPMENT_TEAM = ""; - DYLIB_COMPATIBILITY_VERSION = 1; - DYLIB_CURRENT_VERSION = 1; - DYLIB_INSTALL_NAME_BASE = "@rpath"; - FRAMEWORK_SEARCH_PATHS = ( - "$(inherited)", - "$(PROJECT_DIR)/Carthage/Build/iOS", - ); - INFOPLIST_FILE = "RxCoreMotion copy-Info.plist"; - INSTALL_PATH = "$(LOCAL_LIBRARY_DIR)/Frameworks"; - IPHONEOS_DEPLOYMENT_TARGET = 8.0; - LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks"; - PRODUCT_BUNDLE_IDENTIFIER = rx.swift.RxCoreMotion; - PRODUCT_NAME = "$(TARGET_NAME)"; - SDKROOT = watchos; - SKIP_INSTALL = YES; - SUPPORTED_PLATFORMS = "watchos watchsimulator"; - SWIFT_ACTIVE_COMPILATION_CONDITIONS = DEBUG; - SWIFT_OPTIMIZATION_LEVEL = "-Onone"; - SWIFT_VERSION = 4.0; - TARGETED_DEVICE_FAMILY = "1,2"; - VERSIONING_SYSTEM = "apple-generic"; - VERSION_INFO_PREFIX = ""; - WATCHOS_DEPLOYMENT_TARGET = 4.0; - }; - name = Debug; - }; - 06A38ECB230E832D004CF703 /* Release */ = { - isa = XCBuildConfiguration; - buildSettings = { - CLANG_ANALYZER_NUMBER_OBJECT_CONVERSION = YES_AGGRESSIVE; - CLANG_ENABLE_MODULES = YES; - CLANG_WARN_DOCUMENTATION_COMMENTS = YES; - CODE_SIGN_IDENTITY = ""; - CURRENT_PROJECT_VERSION = 1; - DEFINES_MODULE = YES; - DEVELOPMENT_TEAM = ""; - DYLIB_COMPATIBILITY_VERSION = 1; - DYLIB_CURRENT_VERSION = 1; - DYLIB_INSTALL_NAME_BASE = "@rpath"; - FRAMEWORK_SEARCH_PATHS = ( - "$(inherited)", - "$(PROJECT_DIR)/Carthage/Build/iOS", - ); - INFOPLIST_FILE = "RxCoreMotion copy-Info.plist"; - INSTALL_PATH = "$(LOCAL_LIBRARY_DIR)/Frameworks"; - IPHONEOS_DEPLOYMENT_TARGET = 8.0; - LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks"; - PRODUCT_BUNDLE_IDENTIFIER = rx.swift.RxCoreMotion; - PRODUCT_NAME = "$(TARGET_NAME)"; - SDKROOT = watchos; - SKIP_INSTALL = YES; - SUPPORTED_PLATFORMS = "watchos watchsimulator"; - SWIFT_VERSION = 4.0; - TARGETED_DEVICE_FAMILY = "1,2"; - VERSIONING_SYSTEM = "apple-generic"; - VERSION_INFO_PREFIX = ""; - WATCHOS_DEPLOYMENT_TARGET = 4.0; - }; - name = Release; - }; 071AD5B81CF171850058C7ED /* Debug */ = { isa = XCBuildConfiguration; buildSettings = { @@ -418,7 +258,7 @@ IPHONEOS_DEPLOYMENT_TARGET = 8.0; MTL_ENABLE_DEBUG_INFO = YES; ONLY_ACTIVE_ARCH = YES; - SDKROOT = iphoneos; + SDKROOT = ""; SUPPORTED_PLATFORMS = "iphonesimulator iphoneos watchsimulator watchos"; SWIFT_OPTIMIZATION_LEVEL = "-Onone"; SWIFT_VERSION = 3.0; @@ -460,7 +300,7 @@ GCC_WARN_UNUSED_VARIABLE = YES; IPHONEOS_DEPLOYMENT_TARGET = 8.0; MTL_ENABLE_DEBUG_INFO = NO; - SDKROOT = iphoneos; + SDKROOT = ""; SUPPORTED_PLATFORMS = "iphonesimulator iphoneos watchsimulator watchos"; SWIFT_OPTIMIZATION_LEVEL = "-Owholemodule"; SWIFT_VERSION = 3.0; @@ -492,12 +332,14 @@ LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks"; PRODUCT_BUNDLE_IDENTIFIER = rx.swift.RxCoreMotion; PRODUCT_NAME = "$(TARGET_NAME)"; + SDKROOT = ""; SKIP_INSTALL = YES; - SUPPORTED_PLATFORMS = "iphonesimulator iphoneos"; + SUPPORTED_PLATFORMS = "iphonesimulator iphoneos watchos watchsimulator"; SWIFT_ACTIVE_COMPILATION_CONDITIONS = DEBUG; SWIFT_OPTIMIZATION_LEVEL = "-Onone"; SWIFT_VERSION = 4.0; TARGETED_DEVICE_FAMILY = "1,2"; + VALID_ARCHS = "x86_64 i386"; VERSIONING_SYSTEM = "apple-generic"; VERSION_INFO_PREFIX = ""; }; @@ -526,10 +368,12 @@ LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks"; PRODUCT_BUNDLE_IDENTIFIER = rx.swift.RxCoreMotion; PRODUCT_NAME = "$(TARGET_NAME)"; + SDKROOT = ""; SKIP_INSTALL = YES; - SUPPORTED_PLATFORMS = "iphonesimulator iphoneos"; + SUPPORTED_PLATFORMS = "iphonesimulator iphoneos watchos watchsimulator"; SWIFT_VERSION = 4.0; TARGETED_DEVICE_FAMILY = "1,2"; + VALID_ARCHS = "x86_64 i386"; VERSIONING_SYSTEM = "apple-generic"; VERSION_INFO_PREFIX = ""; }; @@ -538,15 +382,6 @@ /* End XCBuildConfiguration section */ /* Begin XCConfigurationList section */ - 06A38EC9230E832D004CF703 /* Build configuration list for PBXNativeTarget "RxCoreMotion-watchOS" */ = { - isa = XCConfigurationList; - buildConfigurations = ( - 06A38ECA230E832D004CF703 /* Debug */, - 06A38ECB230E832D004CF703 /* Release */, - ); - defaultConfigurationIsVisible = 0; - defaultConfigurationName = Release; - }; 071AD5A31CF171850058C7ED /* Build configuration list for PBXProject "RxCoreMotion" */ = { isa = XCConfigurationList; buildConfigurations = ( diff --git a/RxCoreMotion.xcodeproj/xcshareddata/xcschemes/RxCoreMotion-watchOS.xcscheme b/RxCoreMotion.xcodeproj/xcshareddata/xcschemes/RxCoreMotion-watchOS.xcscheme deleted file mode 100644 index 3a9c221..0000000 --- a/RxCoreMotion.xcodeproj/xcshareddata/xcschemes/RxCoreMotion-watchOS.xcscheme +++ /dev/null @@ -1,80 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - From 9ce1c7038a70455ca690abdf1978dd663b93b9c8 Mon Sep 17 00:00:00 2001 From: Khanh Nguyen Date: Thu, 22 Aug 2019 18:02:38 +0700 Subject: [PATCH 5/7] + Correct framework search path for RxSwift --- RxCoreMotion.xcodeproj/project.pbxproj | 213 ++++++++++++++---- .../xcschemes/RxCoreMotion-watchOS.xcscheme | 80 +++++++ 2 files changed, 243 insertions(+), 50 deletions(-) create mode 100644 RxCoreMotion.xcodeproj/xcshareddata/xcschemes/RxCoreMotion-watchOS.xcscheme diff --git a/RxCoreMotion.xcodeproj/project.pbxproj b/RxCoreMotion.xcodeproj/project.pbxproj index d1f5771..7dbd209 100644 --- a/RxCoreMotion.xcodeproj/project.pbxproj +++ b/RxCoreMotion.xcodeproj/project.pbxproj @@ -7,50 +7,53 @@ objects = { /* Begin PBXBuildFile section */ - 06A38ED5230E935E004CF703 /* RxSwift.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 06A38ED4230E935E004CF703 /* RxSwift.framework */; }; + 06A38EDE230EA8BC004CF703 /* CoreMotion.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 06A38EDD230EA8BC004CF703 /* CoreMotion.framework */; }; + 06A38EE1230EA8CD004CF703 /* MotionActivityManager.swift in Sources */ = {isa = PBXBuildFile; fileRef = 79FD4AF91ED4C03500B27328 /* MotionActivityManager.swift */; }; + 06A38EE2230EA8CD004CF703 /* RxCoreMotion.swift in Sources */ = {isa = PBXBuildFile; fileRef = 07D678671E7F676C0013F645 /* RxCoreMotion.swift */; }; + 06A38EE5230EA8CD004CF703 /* Foundation.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 667B13091E7BCE28001151C7 /* Foundation.framework */; }; + 06A38EE8230EA8CD004CF703 /* RxCoreMotion.h in Headers */ = {isa = PBXBuildFile; fileRef = 07D6786B1E7F67940013F645 /* RxCoreMotion.h */; settings = {ATTRIBUTES = (Public, ); }; }; + 06A38EF3230EA977004CF703 /* CoreMotion.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 06A38EF2230EA977004CF703 /* CoreMotion.framework */; }; + 06A38EFA230EABAB004CF703 /* RxSwift.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 06A38EF9230EABAB004CF703 /* RxSwift.framework */; }; + 06A38EFC230EABC9004CF703 /* RxSwift.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 06A38EFB230EABC9004CF703 /* RxSwift.framework */; }; 07D678681E7F676C0013F645 /* RxCoreMotion.swift in Sources */ = {isa = PBXBuildFile; fileRef = 07D678671E7F676C0013F645 /* RxCoreMotion.swift */; }; 07D6786C1E7F67B10013F645 /* RxCoreMotion.h in Headers */ = {isa = PBXBuildFile; fileRef = 07D6786B1E7F67940013F645 /* RxCoreMotion.h */; settings = {ATTRIBUTES = (Public, ); }; }; - 07D6786E1E7F6D080013F645 /* RxSwift.framework.dSYM in [Carthage] Copy dSYMS */ = {isa = PBXBuildFile; fileRef = 07D6786D1E7F6C4B0013F645 /* RxSwift.framework.dSYM */; }; - 667B13081E7BCE22001151C7 /* CoreMotion.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 667B13071E7BCE22001151C7 /* CoreMotion.framework */; }; 667B130A1E7BCE28001151C7 /* Foundation.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 667B13091E7BCE28001151C7 /* Foundation.framework */; }; 79FD4AFA1ED4C03500B27328 /* MotionActivityManager.swift in Sources */ = {isa = PBXBuildFile; fileRef = 79FD4AF91ED4C03500B27328 /* MotionActivityManager.swift */; }; /* End PBXBuildFile section */ -/* Begin PBXCopyFilesBuildPhase section */ - 667B13031E7BCCA9001151C7 /* [Carthage] Copy dSYMS */ = { - isa = PBXCopyFilesBuildPhase; - buildActionMask = 2147483647; - dstPath = ""; - dstSubfolderSpec = 16; - files = ( - 07D6786E1E7F6D080013F645 /* RxSwift.framework.dSYM in [Carthage] Copy dSYMS */, - ); - name = "[Carthage] Copy dSYMS"; - runOnlyForDeploymentPostprocessing = 0; - }; -/* End PBXCopyFilesBuildPhase section */ - /* Begin PBXFileReference section */ 06A38ECD230E832D004CF703 /* RxCoreMotion copy-Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; name = "RxCoreMotion copy-Info.plist"; path = "/Users/installpoeta/Projects/Fork/CoreMotionWatchos/RxCoreMotion copy-Info.plist"; sourceTree = ""; }; - 06A38ED4230E935E004CF703 /* RxSwift.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = RxSwift.framework; path = Carthage/Build/iOS/RxSwift.framework; sourceTree = ""; }; + 06A38EDD230EA8BC004CF703 /* CoreMotion.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = CoreMotion.framework; path = Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS12.4.sdk/System/Library/Frameworks/CoreMotion.framework; sourceTree = DEVELOPER_DIR; }; + 06A38EF0230EA8CD004CF703 /* RxCoreMotion-watchOS.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; includeInIndex = 0; path = "RxCoreMotion-watchOS.framework"; sourceTree = BUILT_PRODUCTS_DIR; }; + 06A38EF2230EA977004CF703 /* CoreMotion.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = CoreMotion.framework; path = Platforms/WatchOS.platform/Developer/SDKs/WatchOS5.3.sdk/System/Library/Frameworks/CoreMotion.framework; sourceTree = DEVELOPER_DIR; }; + 06A38EF9230EABAB004CF703 /* RxSwift.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = RxSwift.framework; path = Carthage/Build/iOS/RxSwift.framework; sourceTree = ""; }; + 06A38EFB230EABC9004CF703 /* RxSwift.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = RxSwift.framework; path = Carthage/Build/watchOS/RxSwift.framework; sourceTree = ""; }; 07D678671E7F676C0013F645 /* RxCoreMotion.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; name = RxCoreMotion.swift; path = Pod/Classes/RxCoreMotion.swift; sourceTree = SOURCE_ROOT; }; 07D6786A1E7F67940013F645 /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; }; 07D6786B1E7F67940013F645 /* RxCoreMotion.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = RxCoreMotion.h; sourceTree = ""; }; - 07D6786D1E7F6C4B0013F645 /* RxSwift.framework.dSYM */ = {isa = PBXFileReference; lastKnownFileType = wrapper.dsym; name = RxSwift.framework.dSYM; path = Carthage/Build/iOS/RxSwift.framework.dSYM; sourceTree = ""; }; 667B12F51E7BCACB001151C7 /* RxCoreMotion.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; includeInIndex = 0; path = RxCoreMotion.framework; sourceTree = BUILT_PRODUCTS_DIR; }; - 667B13071E7BCE22001151C7 /* CoreMotion.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = CoreMotion.framework; path = System/Library/Frameworks/CoreMotion.framework; sourceTree = SDKROOT; }; 667B13091E7BCE28001151C7 /* Foundation.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = Foundation.framework; path = System/Library/Frameworks/Foundation.framework; sourceTree = SDKROOT; }; 79FD4AF91ED4C03500B27328 /* MotionActivityManager.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; name = MotionActivityManager.swift; path = Pod/Classes/MotionActivityManager.swift; sourceTree = SOURCE_ROOT; }; /* End PBXFileReference section */ /* Begin PBXFrameworksBuildPhase section */ + 06A38EE3230EA8CD004CF703 /* Frameworks */ = { + isa = PBXFrameworksBuildPhase; + buildActionMask = 2147483647; + files = ( + 06A38EF3230EA977004CF703 /* CoreMotion.framework in Frameworks */, + 06A38EE5230EA8CD004CF703 /* Foundation.framework in Frameworks */, + 06A38EFC230EABC9004CF703 /* RxSwift.framework in Frameworks */, + ); + runOnlyForDeploymentPostprocessing = 0; + }; 667B12F11E7BCACB001151C7 /* Frameworks */ = { isa = PBXFrameworksBuildPhase; buildActionMask = 2147483647; files = ( + 06A38EDE230EA8BC004CF703 /* CoreMotion.framework in Frameworks */, 667B130A1E7BCE28001151C7 /* Foundation.framework in Frameworks */, - 667B13081E7BCE22001151C7 /* CoreMotion.framework in Frameworks */, - 06A38ED5230E935E004CF703 /* RxSwift.framework in Frameworks */, + 06A38EFA230EABAB004CF703 /* RxSwift.framework in Frameworks */, ); runOnlyForDeploymentPostprocessing = 0; }; @@ -72,6 +75,7 @@ isa = PBXGroup; children = ( 667B12F51E7BCACB001151C7 /* RxCoreMotion.framework */, + 06A38EF0230EA8CD004CF703 /* RxCoreMotion-watchOS.framework */, ); name = Products; sourceTree = ""; @@ -98,10 +102,11 @@ 788EF9CBABF5068261AC6651 /* Frameworks */ = { isa = PBXGroup; children = ( - 07D6786D1E7F6C4B0013F645 /* RxSwift.framework.dSYM */, - 667B13071E7BCE22001151C7 /* CoreMotion.framework */, + 06A38EF9230EABAB004CF703 /* RxSwift.framework */, + 06A38EFB230EABC9004CF703 /* RxSwift.framework */, + 06A38EDD230EA8BC004CF703 /* CoreMotion.framework */, + 06A38EF2230EA977004CF703 /* CoreMotion.framework */, 667B13091E7BCE28001151C7 /* Foundation.framework */, - 06A38ED4230E935E004CF703 /* RxSwift.framework */, ); name = Frameworks; sourceTree = ""; @@ -109,6 +114,14 @@ /* End PBXGroup section */ /* Begin PBXHeadersBuildPhase section */ + 06A38EE7230EA8CD004CF703 /* Headers */ = { + isa = PBXHeadersBuildPhase; + buildActionMask = 2147483647; + files = ( + 06A38EE8230EA8CD004CF703 /* RxCoreMotion.h in Headers */, + ); + runOnlyForDeploymentPostprocessing = 0; + }; 667B12F21E7BCACB001151C7 /* Headers */ = { isa = PBXHeadersBuildPhase; buildActionMask = 2147483647; @@ -120,6 +133,24 @@ /* End PBXHeadersBuildPhase section */ /* Begin PBXNativeTarget section */ + 06A38EDF230EA8CD004CF703 /* RxCoreMotion-watchOS */ = { + isa = PBXNativeTarget; + buildConfigurationList = 06A38EED230EA8CD004CF703 /* Build configuration list for PBXNativeTarget "RxCoreMotion-watchOS" */; + buildPhases = ( + 06A38EE0230EA8CD004CF703 /* Sources */, + 06A38EE3230EA8CD004CF703 /* Frameworks */, + 06A38EE7230EA8CD004CF703 /* Headers */, + 06A38EE9230EA8CD004CF703 /* Resources */, + ); + buildRules = ( + ); + dependencies = ( + ); + name = "RxCoreMotion-watchOS"; + productName = "RxCoreMotion iOS"; + productReference = 06A38EF0230EA8CD004CF703 /* RxCoreMotion-watchOS.framework */; + productType = "com.apple.product-type.framework"; + }; 667B12F41E7BCACB001151C7 /* RxCoreMotion */ = { isa = PBXNativeTarget; buildConfigurationList = 667B12FC1E7BCACB001151C7 /* Build configuration list for PBXNativeTarget "RxCoreMotion" */; @@ -128,8 +159,6 @@ 667B12F11E7BCACB001151C7 /* Frameworks */, 667B12F21E7BCACB001151C7 /* Headers */, 667B12F31E7BCACB001151C7 /* Resources */, - 667B13061E7BCCF5001151C7 /* [Carthage] Copy Frameworks */, - 667B13031E7BCCA9001151C7 /* [Carthage] Copy dSYMS */, ); buildRules = ( ); @@ -172,11 +201,19 @@ projectRoot = ""; targets = ( 667B12F41E7BCACB001151C7 /* RxCoreMotion */, + 06A38EDF230EA8CD004CF703 /* RxCoreMotion-watchOS */, ); }; /* End PBXProject section */ /* Begin PBXResourcesBuildPhase section */ + 06A38EE9230EA8CD004CF703 /* Resources */ = { + isa = PBXResourcesBuildPhase; + buildActionMask = 2147483647; + files = ( + ); + runOnlyForDeploymentPostprocessing = 0; + }; 667B12F31E7BCACB001151C7 /* Resources */ = { isa = PBXResourcesBuildPhase; buildActionMask = 2147483647; @@ -186,24 +223,16 @@ }; /* End PBXResourcesBuildPhase section */ -/* Begin PBXShellScriptBuildPhase section */ - 667B13061E7BCCF5001151C7 /* [Carthage] Copy Frameworks */ = { - isa = PBXShellScriptBuildPhase; +/* Begin PBXSourcesBuildPhase section */ + 06A38EE0230EA8CD004CF703 /* Sources */ = { + isa = PBXSourcesBuildPhase; buildActionMask = 2147483647; files = ( - ); - inputPaths = ( - ); - name = "[Carthage] Copy Frameworks"; - outputPaths = ( + 06A38EE1230EA8CD004CF703 /* MotionActivityManager.swift in Sources */, + 06A38EE2230EA8CD004CF703 /* RxCoreMotion.swift in Sources */, ); runOnlyForDeploymentPostprocessing = 0; - shellPath = /bin/sh; - shellScript = "/usr/local/bin/carthage copy-frameworks"; }; -/* End PBXShellScriptBuildPhase section */ - -/* Begin PBXSourcesBuildPhase section */ 667B12F01E7BCACB001151C7 /* Sources */ = { isa = PBXSourcesBuildPhase; buildActionMask = 2147483647; @@ -216,6 +245,77 @@ /* End PBXSourcesBuildPhase section */ /* Begin XCBuildConfiguration section */ + 06A38EEE230EA8CD004CF703 /* Debug */ = { + isa = XCBuildConfiguration; + buildSettings = { + CLANG_ANALYZER_NUMBER_OBJECT_CONVERSION = YES_AGGRESSIVE; + CLANG_ENABLE_MODULES = YES; + CLANG_WARN_DOCUMENTATION_COMMENTS = YES; + CODE_SIGN_IDENTITY = ""; + "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer"; + CURRENT_PROJECT_VERSION = 1; + DEFINES_MODULE = YES; + DEVELOPMENT_TEAM = ""; + DYLIB_COMPATIBILITY_VERSION = 1; + DYLIB_CURRENT_VERSION = 1; + DYLIB_INSTALL_NAME_BASE = "@rpath"; + FRAMEWORK_SEARCH_PATHS = ( + "$(inherited)", + "$(PROJECT_DIR)/Carthage/Build/watchOS", + ); + INFOPLIST_FILE = "RxCoreMotion copy-Info.plist"; + INSTALL_PATH = "$(LOCAL_LIBRARY_DIR)/Frameworks"; + IPHONEOS_DEPLOYMENT_TARGET = 8.0; + LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks"; + PRODUCT_BUNDLE_IDENTIFIER = rx.swift.RxCoreMotion; + PRODUCT_NAME = "$(TARGET_NAME)"; + SDKROOT = watchos; + SKIP_INSTALL = YES; + SUPPORTED_PLATFORMS = "watchsimulator watchos"; + SWIFT_ACTIVE_COMPILATION_CONDITIONS = DEBUG; + SWIFT_OPTIMIZATION_LEVEL = "-Onone"; + SWIFT_VERSION = 4.0; + TARGETED_DEVICE_FAMILY = "1,2"; + VALID_ARCHS = "arm64_32 armv7k"; + VERSIONING_SYSTEM = "apple-generic"; + VERSION_INFO_PREFIX = ""; + }; + name = Debug; + }; + 06A38EEF230EA8CD004CF703 /* Release */ = { + isa = XCBuildConfiguration; + buildSettings = { + CLANG_ANALYZER_NUMBER_OBJECT_CONVERSION = YES_AGGRESSIVE; + CLANG_ENABLE_MODULES = YES; + CLANG_WARN_DOCUMENTATION_COMMENTS = YES; + CODE_SIGN_IDENTITY = ""; + CURRENT_PROJECT_VERSION = 1; + DEFINES_MODULE = YES; + DEVELOPMENT_TEAM = ""; + DYLIB_COMPATIBILITY_VERSION = 1; + DYLIB_CURRENT_VERSION = 1; + DYLIB_INSTALL_NAME_BASE = "@rpath"; + FRAMEWORK_SEARCH_PATHS = ( + "$(inherited)", + "$(PROJECT_DIR)/Carthage/Build/watchOS", + ); + INFOPLIST_FILE = "RxCoreMotion copy-Info.plist"; + INSTALL_PATH = "$(LOCAL_LIBRARY_DIR)/Frameworks"; + IPHONEOS_DEPLOYMENT_TARGET = 8.0; + LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks"; + PRODUCT_BUNDLE_IDENTIFIER = rx.swift.RxCoreMotion; + PRODUCT_NAME = "$(TARGET_NAME)"; + SDKROOT = watchos; + SKIP_INSTALL = YES; + SUPPORTED_PLATFORMS = "watchsimulator watchos"; + SWIFT_VERSION = 4.0; + TARGETED_DEVICE_FAMILY = "1,2"; + VALID_ARCHS = "arm64_32 armv7k"; + VERSIONING_SYSTEM = "apple-generic"; + VERSION_INFO_PREFIX = ""; + }; + name = Release; + }; 071AD5B81CF171850058C7ED /* Debug */ = { isa = XCBuildConfiguration; buildSettings = { @@ -258,10 +358,12 @@ IPHONEOS_DEPLOYMENT_TARGET = 8.0; MTL_ENABLE_DEBUG_INFO = YES; ONLY_ACTIVE_ARCH = YES; - SDKROOT = ""; - SUPPORTED_PLATFORMS = "iphonesimulator iphoneos watchsimulator watchos"; + SDKROOT = iphoneos; + SUPPORTED_PLATFORMS = "iphonesimulator iphoneos"; SWIFT_OPTIMIZATION_LEVEL = "-Onone"; SWIFT_VERSION = 3.0; + TVOS_DEPLOYMENT_TARGET = 9.0; + WATCHOS_DEPLOYMENT_TARGET = 4.0; }; name = Debug; }; @@ -300,11 +402,13 @@ GCC_WARN_UNUSED_VARIABLE = YES; IPHONEOS_DEPLOYMENT_TARGET = 8.0; MTL_ENABLE_DEBUG_INFO = NO; - SDKROOT = ""; - SUPPORTED_PLATFORMS = "iphonesimulator iphoneos watchsimulator watchos"; + SDKROOT = iphoneos; + SUPPORTED_PLATFORMS = "iphonesimulator iphoneos"; SWIFT_OPTIMIZATION_LEVEL = "-Owholemodule"; SWIFT_VERSION = 3.0; + TVOS_DEPLOYMENT_TARGET = 9.0; VALIDATE_PRODUCT = YES; + WATCHOS_DEPLOYMENT_TARGET = 4.0; }; name = Release; }; @@ -332,14 +436,14 @@ LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks"; PRODUCT_BUNDLE_IDENTIFIER = rx.swift.RxCoreMotion; PRODUCT_NAME = "$(TARGET_NAME)"; - SDKROOT = ""; + SDKROOT = iphoneos; SKIP_INSTALL = YES; - SUPPORTED_PLATFORMS = "iphonesimulator iphoneos watchos watchsimulator"; + SUPPORTED_PLATFORMS = "iphonesimulator iphoneos"; SWIFT_ACTIVE_COMPILATION_CONDITIONS = DEBUG; SWIFT_OPTIMIZATION_LEVEL = "-Onone"; SWIFT_VERSION = 4.0; TARGETED_DEVICE_FAMILY = "1,2"; - VALID_ARCHS = "x86_64 i386"; + VALID_ARCHS = "armv7s armv7 arm64e arm64"; VERSIONING_SYSTEM = "apple-generic"; VERSION_INFO_PREFIX = ""; }; @@ -368,12 +472,12 @@ LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks"; PRODUCT_BUNDLE_IDENTIFIER = rx.swift.RxCoreMotion; PRODUCT_NAME = "$(TARGET_NAME)"; - SDKROOT = ""; + SDKROOT = iphoneos; SKIP_INSTALL = YES; - SUPPORTED_PLATFORMS = "iphonesimulator iphoneos watchos watchsimulator"; + SUPPORTED_PLATFORMS = "iphonesimulator iphoneos"; SWIFT_VERSION = 4.0; TARGETED_DEVICE_FAMILY = "1,2"; - VALID_ARCHS = "x86_64 i386"; + VALID_ARCHS = "armv7s armv7 arm64e arm64"; VERSIONING_SYSTEM = "apple-generic"; VERSION_INFO_PREFIX = ""; }; @@ -382,6 +486,15 @@ /* End XCBuildConfiguration section */ /* Begin XCConfigurationList section */ + 06A38EED230EA8CD004CF703 /* Build configuration list for PBXNativeTarget "RxCoreMotion-watchOS" */ = { + isa = XCConfigurationList; + buildConfigurations = ( + 06A38EEE230EA8CD004CF703 /* Debug */, + 06A38EEF230EA8CD004CF703 /* Release */, + ); + defaultConfigurationIsVisible = 0; + defaultConfigurationName = Release; + }; 071AD5A31CF171850058C7ED /* Build configuration list for PBXProject "RxCoreMotion" */ = { isa = XCConfigurationList; buildConfigurations = ( diff --git a/RxCoreMotion.xcodeproj/xcshareddata/xcschemes/RxCoreMotion-watchOS.xcscheme b/RxCoreMotion.xcodeproj/xcshareddata/xcschemes/RxCoreMotion-watchOS.xcscheme new file mode 100644 index 0000000..d000f1b --- /dev/null +++ b/RxCoreMotion.xcodeproj/xcshareddata/xcschemes/RxCoreMotion-watchOS.xcscheme @@ -0,0 +1,80 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + From 5e96122c69dab82643d9200967551a579c7e30d1 Mon Sep 17 00:00:00 2001 From: Khanh Nguyen Date: Thu, 22 Aug 2019 18:45:06 +0700 Subject: [PATCH 6/7] + Edit config for watchos --- RxCoreMotion-watch/Info.plist | 22 +++ RxCoreMotion-watch/RxCoreMotion_watch.h | 19 +++ RxCoreMotion.xcodeproj/project.pbxproj | 154 +++++++++++------- .../xcschemes/RxCoreMotion-watchOS.xcscheme | 12 +- 4 files changed, 145 insertions(+), 62 deletions(-) create mode 100644 RxCoreMotion-watch/Info.plist create mode 100644 RxCoreMotion-watch/RxCoreMotion_watch.h diff --git a/RxCoreMotion-watch/Info.plist b/RxCoreMotion-watch/Info.plist new file mode 100644 index 0000000..e1fe4cf --- /dev/null +++ b/RxCoreMotion-watch/Info.plist @@ -0,0 +1,22 @@ + + + + + CFBundleDevelopmentRegion + $(DEVELOPMENT_LANGUAGE) + CFBundleExecutable + $(EXECUTABLE_NAME) + CFBundleIdentifier + $(PRODUCT_BUNDLE_IDENTIFIER) + CFBundleInfoDictionaryVersion + 6.0 + CFBundleName + $(PRODUCT_NAME) + CFBundlePackageType + FMWK + CFBundleShortVersionString + 1.0 + CFBundleVersion + $(CURRENT_PROJECT_VERSION) + + diff --git a/RxCoreMotion-watch/RxCoreMotion_watch.h b/RxCoreMotion-watch/RxCoreMotion_watch.h new file mode 100644 index 0000000..b31fe8f --- /dev/null +++ b/RxCoreMotion-watch/RxCoreMotion_watch.h @@ -0,0 +1,19 @@ +// +// RxCoreMotion_watch.h +// RxCoreMotion-watch +// +// Created by Install Poeta on 8/22/19. +// Copyright © 2019 RxSwiftCommunity - https://github.com/RxSwiftCommunity. All rights reserved. +// + +#import + +//! Project version number for RxCoreMotion_watch. +FOUNDATION_EXPORT double RxCoreMotion_watchVersionNumber; + +//! Project version string for RxCoreMotion_watch. +FOUNDATION_EXPORT const unsigned char RxCoreMotion_watchVersionString[]; + +// In this header, you should import all the public headers of your framework using statements like #import + + diff --git a/RxCoreMotion.xcodeproj/project.pbxproj b/RxCoreMotion.xcodeproj/project.pbxproj index 7dbd209..5ae7127 100644 --- a/RxCoreMotion.xcodeproj/project.pbxproj +++ b/RxCoreMotion.xcodeproj/project.pbxproj @@ -8,42 +8,44 @@ /* Begin PBXBuildFile section */ 06A38EDE230EA8BC004CF703 /* CoreMotion.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 06A38EDD230EA8BC004CF703 /* CoreMotion.framework */; }; - 06A38EE1230EA8CD004CF703 /* MotionActivityManager.swift in Sources */ = {isa = PBXBuildFile; fileRef = 79FD4AF91ED4C03500B27328 /* MotionActivityManager.swift */; }; - 06A38EE2230EA8CD004CF703 /* RxCoreMotion.swift in Sources */ = {isa = PBXBuildFile; fileRef = 07D678671E7F676C0013F645 /* RxCoreMotion.swift */; }; - 06A38EE5230EA8CD004CF703 /* Foundation.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 667B13091E7BCE28001151C7 /* Foundation.framework */; }; - 06A38EE8230EA8CD004CF703 /* RxCoreMotion.h in Headers */ = {isa = PBXBuildFile; fileRef = 07D6786B1E7F67940013F645 /* RxCoreMotion.h */; settings = {ATTRIBUTES = (Public, ); }; }; - 06A38EF3230EA977004CF703 /* CoreMotion.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 06A38EF2230EA977004CF703 /* CoreMotion.framework */; }; 06A38EFA230EABAB004CF703 /* RxSwift.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 06A38EF9230EABAB004CF703 /* RxSwift.framework */; }; - 06A38EFC230EABC9004CF703 /* RxSwift.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 06A38EFB230EABC9004CF703 /* RxSwift.framework */; }; + 06A38F1D230EB60D004CF703 /* RxCoreMotion_watch.h in Headers */ = {isa = PBXBuildFile; fileRef = 06A38F1B230EB60D004CF703 /* RxCoreMotion_watch.h */; settings = {ATTRIBUTES = (Public, ); }; }; + 06A38F21230EB618004CF703 /* RxCoreMotion.swift in Sources */ = {isa = PBXBuildFile; fileRef = 07D678671E7F676C0013F645 /* RxCoreMotion.swift */; }; + 06A38F22230EB61B004CF703 /* MotionActivityManager.swift in Sources */ = {isa = PBXBuildFile; fileRef = 79FD4AF91ED4C03500B27328 /* MotionActivityManager.swift */; }; + 06A38F23230EB64D004CF703 /* CoreMotion.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 06A38EF2230EA977004CF703 /* CoreMotion.framework */; }; + 06A38F25230EB65D004CF703 /* Foundation.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 06A38F24230EB65D004CF703 /* Foundation.framework */; }; + 06A38F27230EB681004CF703 /* RxSwift.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 06A38EFB230EABC9004CF703 /* RxSwift.framework */; }; + 06A38F29230EB68B004CF703 /* Foundation.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 06A38F24230EB65D004CF703 /* Foundation.framework */; }; 07D678681E7F676C0013F645 /* RxCoreMotion.swift in Sources */ = {isa = PBXBuildFile; fileRef = 07D678671E7F676C0013F645 /* RxCoreMotion.swift */; }; 07D6786C1E7F67B10013F645 /* RxCoreMotion.h in Headers */ = {isa = PBXBuildFile; fileRef = 07D6786B1E7F67940013F645 /* RxCoreMotion.h */; settings = {ATTRIBUTES = (Public, ); }; }; - 667B130A1E7BCE28001151C7 /* Foundation.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 667B13091E7BCE28001151C7 /* Foundation.framework */; }; 79FD4AFA1ED4C03500B27328 /* MotionActivityManager.swift in Sources */ = {isa = PBXBuildFile; fileRef = 79FD4AF91ED4C03500B27328 /* MotionActivityManager.swift */; }; /* End PBXBuildFile section */ /* Begin PBXFileReference section */ 06A38ECD230E832D004CF703 /* RxCoreMotion copy-Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; name = "RxCoreMotion copy-Info.plist"; path = "/Users/installpoeta/Projects/Fork/CoreMotionWatchos/RxCoreMotion copy-Info.plist"; sourceTree = ""; }; 06A38EDD230EA8BC004CF703 /* CoreMotion.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = CoreMotion.framework; path = Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS12.4.sdk/System/Library/Frameworks/CoreMotion.framework; sourceTree = DEVELOPER_DIR; }; - 06A38EF0230EA8CD004CF703 /* RxCoreMotion-watchOS.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; includeInIndex = 0; path = "RxCoreMotion-watchOS.framework"; sourceTree = BUILT_PRODUCTS_DIR; }; 06A38EF2230EA977004CF703 /* CoreMotion.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = CoreMotion.framework; path = Platforms/WatchOS.platform/Developer/SDKs/WatchOS5.3.sdk/System/Library/Frameworks/CoreMotion.framework; sourceTree = DEVELOPER_DIR; }; 06A38EF9230EABAB004CF703 /* RxSwift.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = RxSwift.framework; path = Carthage/Build/iOS/RxSwift.framework; sourceTree = ""; }; 06A38EFB230EABC9004CF703 /* RxSwift.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = RxSwift.framework; path = Carthage/Build/watchOS/RxSwift.framework; sourceTree = ""; }; + 06A38F19230EB60D004CF703 /* RxCoreMotion_watchOS.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; includeInIndex = 0; path = RxCoreMotion_watchOS.framework; sourceTree = BUILT_PRODUCTS_DIR; }; + 06A38F1B230EB60D004CF703 /* RxCoreMotion_watch.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = RxCoreMotion_watch.h; sourceTree = ""; }; + 06A38F1C230EB60D004CF703 /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; }; + 06A38F24230EB65D004CF703 /* Foundation.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = Foundation.framework; path = Platforms/WatchOS.platform/Developer/SDKs/WatchOS5.3.sdk/System/Library/Frameworks/Foundation.framework; sourceTree = DEVELOPER_DIR; }; 07D678671E7F676C0013F645 /* RxCoreMotion.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; name = RxCoreMotion.swift; path = Pod/Classes/RxCoreMotion.swift; sourceTree = SOURCE_ROOT; }; 07D6786A1E7F67940013F645 /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; }; 07D6786B1E7F67940013F645 /* RxCoreMotion.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = RxCoreMotion.h; sourceTree = ""; }; 667B12F51E7BCACB001151C7 /* RxCoreMotion.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; includeInIndex = 0; path = RxCoreMotion.framework; sourceTree = BUILT_PRODUCTS_DIR; }; - 667B13091E7BCE28001151C7 /* Foundation.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = Foundation.framework; path = System/Library/Frameworks/Foundation.framework; sourceTree = SDKROOT; }; 79FD4AF91ED4C03500B27328 /* MotionActivityManager.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; name = MotionActivityManager.swift; path = Pod/Classes/MotionActivityManager.swift; sourceTree = SOURCE_ROOT; }; /* End PBXFileReference section */ /* Begin PBXFrameworksBuildPhase section */ - 06A38EE3230EA8CD004CF703 /* Frameworks */ = { + 06A38F16230EB60D004CF703 /* Frameworks */ = { isa = PBXFrameworksBuildPhase; buildActionMask = 2147483647; files = ( - 06A38EF3230EA977004CF703 /* CoreMotion.framework in Frameworks */, - 06A38EE5230EA8CD004CF703 /* Foundation.framework in Frameworks */, - 06A38EFC230EABC9004CF703 /* RxSwift.framework in Frameworks */, + 06A38F25230EB65D004CF703 /* Foundation.framework in Frameworks */, + 06A38F23230EB64D004CF703 /* CoreMotion.framework in Frameworks */, + 06A38F27230EB681004CF703 /* RxSwift.framework in Frameworks */, ); runOnlyForDeploymentPostprocessing = 0; }; @@ -52,7 +54,7 @@ buildActionMask = 2147483647; files = ( 06A38EDE230EA8BC004CF703 /* CoreMotion.framework in Frameworks */, - 667B130A1E7BCE28001151C7 /* Foundation.framework in Frameworks */, + 06A38F29230EB68B004CF703 /* Foundation.framework in Frameworks */, 06A38EFA230EABAB004CF703 /* RxSwift.framework in Frameworks */, ); runOnlyForDeploymentPostprocessing = 0; @@ -60,11 +62,21 @@ /* End PBXFrameworksBuildPhase section */ /* Begin PBXGroup section */ + 06A38F1A230EB60D004CF703 /* RxCoreMotion-watch */ = { + isa = PBXGroup; + children = ( + 06A38F1B230EB60D004CF703 /* RxCoreMotion_watch.h */, + 06A38F1C230EB60D004CF703 /* Info.plist */, + ); + path = "RxCoreMotion-watch"; + sourceTree = ""; + }; 071AD59F1CF171850058C7ED = { isa = PBXGroup; children = ( 07D678621E7F64790013F645 /* Classes */, 07D678691E7F67940013F645 /* RxCoreMotion */, + 06A38F1A230EB60D004CF703 /* RxCoreMotion-watch */, 071AD5A91CF171850058C7ED /* Products */, 788EF9CBABF5068261AC6651 /* Frameworks */, 06A38ECD230E832D004CF703 /* RxCoreMotion copy-Info.plist */, @@ -75,7 +87,7 @@ isa = PBXGroup; children = ( 667B12F51E7BCACB001151C7 /* RxCoreMotion.framework */, - 06A38EF0230EA8CD004CF703 /* RxCoreMotion-watchOS.framework */, + 06A38F19230EB60D004CF703 /* RxCoreMotion_watchOS.framework */, ); name = Products; sourceTree = ""; @@ -102,11 +114,11 @@ 788EF9CBABF5068261AC6651 /* Frameworks */ = { isa = PBXGroup; children = ( + 06A38F24230EB65D004CF703 /* Foundation.framework */, 06A38EF9230EABAB004CF703 /* RxSwift.framework */, 06A38EFB230EABC9004CF703 /* RxSwift.framework */, 06A38EDD230EA8BC004CF703 /* CoreMotion.framework */, 06A38EF2230EA977004CF703 /* CoreMotion.framework */, - 667B13091E7BCE28001151C7 /* Foundation.framework */, ); name = Frameworks; sourceTree = ""; @@ -114,11 +126,11 @@ /* End PBXGroup section */ /* Begin PBXHeadersBuildPhase section */ - 06A38EE7230EA8CD004CF703 /* Headers */ = { + 06A38F14230EB60D004CF703 /* Headers */ = { isa = PBXHeadersBuildPhase; buildActionMask = 2147483647; files = ( - 06A38EE8230EA8CD004CF703 /* RxCoreMotion.h in Headers */, + 06A38F1D230EB60D004CF703 /* RxCoreMotion_watch.h in Headers */, ); runOnlyForDeploymentPostprocessing = 0; }; @@ -133,22 +145,22 @@ /* End PBXHeadersBuildPhase section */ /* Begin PBXNativeTarget section */ - 06A38EDF230EA8CD004CF703 /* RxCoreMotion-watchOS */ = { + 06A38F18230EB60D004CF703 /* RxCoreMotion-watchOS */ = { isa = PBXNativeTarget; - buildConfigurationList = 06A38EED230EA8CD004CF703 /* Build configuration list for PBXNativeTarget "RxCoreMotion-watchOS" */; + buildConfigurationList = 06A38F20230EB60D004CF703 /* Build configuration list for PBXNativeTarget "RxCoreMotion-watchOS" */; buildPhases = ( - 06A38EE0230EA8CD004CF703 /* Sources */, - 06A38EE3230EA8CD004CF703 /* Frameworks */, - 06A38EE7230EA8CD004CF703 /* Headers */, - 06A38EE9230EA8CD004CF703 /* Resources */, + 06A38F14230EB60D004CF703 /* Headers */, + 06A38F15230EB60D004CF703 /* Sources */, + 06A38F16230EB60D004CF703 /* Frameworks */, + 06A38F17230EB60D004CF703 /* Resources */, ); buildRules = ( ); dependencies = ( ); name = "RxCoreMotion-watchOS"; - productName = "RxCoreMotion iOS"; - productReference = 06A38EF0230EA8CD004CF703 /* RxCoreMotion-watchOS.framework */; + productName = "RxCoreMotion-watch"; + productReference = 06A38F19230EB60D004CF703 /* RxCoreMotion_watchOS.framework */; productType = "com.apple.product-type.framework"; }; 667B12F41E7BCACB001151C7 /* RxCoreMotion */ = { @@ -179,6 +191,11 @@ LastUpgradeCheck = 0800; ORGANIZATIONNAME = "RxSwiftCommunity - https://github.com/RxSwiftCommunity"; TargetAttributes = { + 06A38F18230EB60D004CF703 = { + CreatedOnToolsVersion = 10.3; + DevelopmentTeam = YJF5HM76T5; + ProvisioningStyle = Automatic; + }; 667B12F41E7BCACB001151C7 = { CreatedOnToolsVersion = 8.3; LastSwiftMigration = 0830; @@ -201,13 +218,13 @@ projectRoot = ""; targets = ( 667B12F41E7BCACB001151C7 /* RxCoreMotion */, - 06A38EDF230EA8CD004CF703 /* RxCoreMotion-watchOS */, + 06A38F18230EB60D004CF703 /* RxCoreMotion-watchOS */, ); }; /* End PBXProject section */ /* Begin PBXResourcesBuildPhase section */ - 06A38EE9230EA8CD004CF703 /* Resources */ = { + 06A38F17230EB60D004CF703 /* Resources */ = { isa = PBXResourcesBuildPhase; buildActionMask = 2147483647; files = ( @@ -224,12 +241,12 @@ /* End PBXResourcesBuildPhase section */ /* Begin PBXSourcesBuildPhase section */ - 06A38EE0230EA8CD004CF703 /* Sources */ = { + 06A38F15230EB60D004CF703 /* Sources */ = { isa = PBXSourcesBuildPhase; buildActionMask = 2147483647; files = ( - 06A38EE1230EA8CD004CF703 /* MotionActivityManager.swift in Sources */, - 06A38EE2230EA8CD004CF703 /* RxCoreMotion.swift in Sources */, + 06A38F21230EB618004CF703 /* RxCoreMotion.swift in Sources */, + 06A38F22230EB61B004CF703 /* MotionActivityManager.swift in Sources */, ); runOnlyForDeploymentPostprocessing = 0; }; @@ -245,17 +262,28 @@ /* End PBXSourcesBuildPhase section */ /* Begin XCBuildConfiguration section */ - 06A38EEE230EA8CD004CF703 /* Debug */ = { + 06A38F1E230EB60D004CF703 /* Debug */ = { isa = XCBuildConfiguration; buildSettings = { + APPLICATION_EXTENSION_API_ONLY = YES; CLANG_ANALYZER_NUMBER_OBJECT_CONVERSION = YES_AGGRESSIVE; - CLANG_ENABLE_MODULES = YES; + CLANG_CXX_LANGUAGE_STANDARD = "gnu++14"; + CLANG_ENABLE_OBJC_WEAK = YES; + CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES; + CLANG_WARN_COMMA = YES; + CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES; CLANG_WARN_DOCUMENTATION_COMMENTS = YES; + CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES; + CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES; + CLANG_WARN_OBJC_LITERAL_CONVERSION = YES; + CLANG_WARN_RANGE_LOOP_ANALYSIS = YES; + CLANG_WARN_STRICT_PROTOTYPES = YES; + CLANG_WARN_UNGUARDED_AVAILABILITY = YES_AGGRESSIVE; CODE_SIGN_IDENTITY = ""; - "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer"; + CODE_SIGN_STYLE = Automatic; CURRENT_PROJECT_VERSION = 1; DEFINES_MODULE = YES; - DEVELOPMENT_TEAM = ""; + DEVELOPMENT_TEAM = YJF5HM76T5; DYLIB_COMPATIBILITY_VERSION = 1; DYLIB_CURRENT_VERSION = 1; DYLIB_INSTALL_NAME_BASE = "@rpath"; @@ -263,35 +291,48 @@ "$(inherited)", "$(PROJECT_DIR)/Carthage/Build/watchOS", ); - INFOPLIST_FILE = "RxCoreMotion copy-Info.plist"; + GCC_C_LANGUAGE_STANDARD = gnu11; + INFOPLIST_FILE = "RxCoreMotion-watch/Info.plist"; INSTALL_PATH = "$(LOCAL_LIBRARY_DIR)/Frameworks"; - IPHONEOS_DEPLOYMENT_TARGET = 8.0; LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks"; - PRODUCT_BUNDLE_IDENTIFIER = rx.swift.RxCoreMotion; - PRODUCT_NAME = "$(TARGET_NAME)"; + MTL_ENABLE_DEBUG_INFO = INCLUDE_SOURCE; + MTL_FAST_MATH = YES; + PRODUCT_BUNDLE_IDENTIFIER = "com.poeta.RxCoreMotion-watchOS.RxCoreMotion-watch"; + PRODUCT_NAME = "$(TARGET_NAME:c99extidentifier)"; SDKROOT = watchos; SKIP_INSTALL = YES; SUPPORTED_PLATFORMS = "watchsimulator watchos"; SWIFT_ACTIVE_COMPILATION_CONDITIONS = DEBUG; - SWIFT_OPTIMIZATION_LEVEL = "-Onone"; - SWIFT_VERSION = 4.0; - TARGETED_DEVICE_FAMILY = "1,2"; - VALID_ARCHS = "arm64_32 armv7k"; + SWIFT_VERSION = 5.0; + TARGETED_DEVICE_FAMILY = 4; VERSIONING_SYSTEM = "apple-generic"; VERSION_INFO_PREFIX = ""; + WATCHOS_DEPLOYMENT_TARGET = 5.3; }; name = Debug; }; - 06A38EEF230EA8CD004CF703 /* Release */ = { + 06A38F1F230EB60D004CF703 /* Release */ = { isa = XCBuildConfiguration; buildSettings = { + APPLICATION_EXTENSION_API_ONLY = YES; CLANG_ANALYZER_NUMBER_OBJECT_CONVERSION = YES_AGGRESSIVE; - CLANG_ENABLE_MODULES = YES; + CLANG_CXX_LANGUAGE_STANDARD = "gnu++14"; + CLANG_ENABLE_OBJC_WEAK = YES; + CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES; + CLANG_WARN_COMMA = YES; + CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES; CLANG_WARN_DOCUMENTATION_COMMENTS = YES; + CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES; + CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES; + CLANG_WARN_OBJC_LITERAL_CONVERSION = YES; + CLANG_WARN_RANGE_LOOP_ANALYSIS = YES; + CLANG_WARN_STRICT_PROTOTYPES = YES; + CLANG_WARN_UNGUARDED_AVAILABILITY = YES_AGGRESSIVE; CODE_SIGN_IDENTITY = ""; + CODE_SIGN_STYLE = Automatic; CURRENT_PROJECT_VERSION = 1; DEFINES_MODULE = YES; - DEVELOPMENT_TEAM = ""; + DEVELOPMENT_TEAM = YJF5HM76T5; DYLIB_COMPATIBILITY_VERSION = 1; DYLIB_CURRENT_VERSION = 1; DYLIB_INSTALL_NAME_BASE = "@rpath"; @@ -299,20 +340,21 @@ "$(inherited)", "$(PROJECT_DIR)/Carthage/Build/watchOS", ); - INFOPLIST_FILE = "RxCoreMotion copy-Info.plist"; + GCC_C_LANGUAGE_STANDARD = gnu11; + INFOPLIST_FILE = "RxCoreMotion-watch/Info.plist"; INSTALL_PATH = "$(LOCAL_LIBRARY_DIR)/Frameworks"; - IPHONEOS_DEPLOYMENT_TARGET = 8.0; LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks"; - PRODUCT_BUNDLE_IDENTIFIER = rx.swift.RxCoreMotion; - PRODUCT_NAME = "$(TARGET_NAME)"; + MTL_FAST_MATH = YES; + PRODUCT_BUNDLE_IDENTIFIER = "com.poeta.RxCoreMotion-watchOS.RxCoreMotion-watch"; + PRODUCT_NAME = "$(TARGET_NAME:c99extidentifier)"; SDKROOT = watchos; SKIP_INSTALL = YES; SUPPORTED_PLATFORMS = "watchsimulator watchos"; - SWIFT_VERSION = 4.0; - TARGETED_DEVICE_FAMILY = "1,2"; - VALID_ARCHS = "arm64_32 armv7k"; + SWIFT_VERSION = 5.0; + TARGETED_DEVICE_FAMILY = 4; VERSIONING_SYSTEM = "apple-generic"; VERSION_INFO_PREFIX = ""; + WATCHOS_DEPLOYMENT_TARGET = 5.3; }; name = Release; }; @@ -486,11 +528,11 @@ /* End XCBuildConfiguration section */ /* Begin XCConfigurationList section */ - 06A38EED230EA8CD004CF703 /* Build configuration list for PBXNativeTarget "RxCoreMotion-watchOS" */ = { + 06A38F20230EB60D004CF703 /* Build configuration list for PBXNativeTarget "RxCoreMotion-watchOS" */ = { isa = XCConfigurationList; buildConfigurations = ( - 06A38EEE230EA8CD004CF703 /* Debug */, - 06A38EEF230EA8CD004CF703 /* Release */, + 06A38F1E230EB60D004CF703 /* Debug */, + 06A38F1F230EB60D004CF703 /* Release */, ); defaultConfigurationIsVisible = 0; defaultConfigurationName = Release; diff --git a/RxCoreMotion.xcodeproj/xcshareddata/xcschemes/RxCoreMotion-watchOS.xcscheme b/RxCoreMotion.xcodeproj/xcshareddata/xcschemes/RxCoreMotion-watchOS.xcscheme index d000f1b..d1228bf 100644 --- a/RxCoreMotion.xcodeproj/xcshareddata/xcschemes/RxCoreMotion-watchOS.xcscheme +++ b/RxCoreMotion.xcodeproj/xcshareddata/xcschemes/RxCoreMotion-watchOS.xcscheme @@ -14,8 +14,8 @@ buildForAnalyzing = "YES"> @@ -45,8 +45,8 @@ @@ -63,8 +63,8 @@ From e3c434e46870e9a830578e6f34c6d17431097a51 Mon Sep 17 00:00:00 2001 From: Khanh Nguyen Date: Thu, 22 Aug 2019 21:23:53 +0700 Subject: [PATCH 7/7] + support query pedometer data --- Pod/Classes/RxCoreMotion.swift | 18 ++++++++++++++++++ RxCoreMotion.xcodeproj/project.pbxproj | 14 +++++++------- 2 files changed, 25 insertions(+), 7 deletions(-) diff --git a/Pod/Classes/RxCoreMotion.swift b/Pod/Classes/RxCoreMotion.swift index ee5f6c2..c6f5743 100644 --- a/Pod/Classes/RxCoreMotion.swift +++ b/Pod/Classes/RxCoreMotion.swift @@ -153,6 +153,7 @@ extension Reactive where Base: CMMotionManager { } extension Reactive where Base: CMPedometer { + public func pedometer(from: Date! = Date()) -> Observable { return memoize(key: &pedometerKey) { Observable.create { observer in @@ -174,6 +175,23 @@ extension Reactive where Base: CMPedometer { } } + public func query(from fromDate:Date, to toDate:Date)->Single{ + return Single.create { observer in + let pedometer = self.base + pedometer.queryPedometerData(from: fromDate, to: toDate, withHandler: { (data, error) in + if let _ = error + { + observer(.error(error!)) + return + } + guard let data = data else { + return + } + observer(.success(data)) + }) + return Disposables.create {} + } + } public var pedometer: Observable { return memoize(key: &pedometerKey) { diff --git a/RxCoreMotion.xcodeproj/project.pbxproj b/RxCoreMotion.xcodeproj/project.pbxproj index 5ae7127..13243b2 100644 --- a/RxCoreMotion.xcodeproj/project.pbxproj +++ b/RxCoreMotion.xcodeproj/project.pbxproj @@ -27,7 +27,7 @@ 06A38EF2230EA977004CF703 /* CoreMotion.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = CoreMotion.framework; path = Platforms/WatchOS.platform/Developer/SDKs/WatchOS5.3.sdk/System/Library/Frameworks/CoreMotion.framework; sourceTree = DEVELOPER_DIR; }; 06A38EF9230EABAB004CF703 /* RxSwift.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = RxSwift.framework; path = Carthage/Build/iOS/RxSwift.framework; sourceTree = ""; }; 06A38EFB230EABC9004CF703 /* RxSwift.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = RxSwift.framework; path = Carthage/Build/watchOS/RxSwift.framework; sourceTree = ""; }; - 06A38F19230EB60D004CF703 /* RxCoreMotion_watchOS.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; includeInIndex = 0; path = RxCoreMotion_watchOS.framework; sourceTree = BUILT_PRODUCTS_DIR; }; + 06A38F19230EB60D004CF703 /* RxCoreMotion.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; includeInIndex = 0; path = RxCoreMotion.framework; sourceTree = BUILT_PRODUCTS_DIR; }; 06A38F1B230EB60D004CF703 /* RxCoreMotion_watch.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = RxCoreMotion_watch.h; sourceTree = ""; }; 06A38F1C230EB60D004CF703 /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; }; 06A38F24230EB65D004CF703 /* Foundation.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = Foundation.framework; path = Platforms/WatchOS.platform/Developer/SDKs/WatchOS5.3.sdk/System/Library/Frameworks/Foundation.framework; sourceTree = DEVELOPER_DIR; }; @@ -87,7 +87,7 @@ isa = PBXGroup; children = ( 667B12F51E7BCACB001151C7 /* RxCoreMotion.framework */, - 06A38F19230EB60D004CF703 /* RxCoreMotion_watchOS.framework */, + 06A38F19230EB60D004CF703 /* RxCoreMotion.framework */, ); name = Products; sourceTree = ""; @@ -160,7 +160,7 @@ ); name = "RxCoreMotion-watchOS"; productName = "RxCoreMotion-watch"; - productReference = 06A38F19230EB60D004CF703 /* RxCoreMotion_watchOS.framework */; + productReference = 06A38F19230EB60D004CF703 /* RxCoreMotion.framework */; productType = "com.apple.product-type.framework"; }; 667B12F41E7BCACB001151C7 /* RxCoreMotion */ = { @@ -298,7 +298,7 @@ MTL_ENABLE_DEBUG_INFO = INCLUDE_SOURCE; MTL_FAST_MATH = YES; PRODUCT_BUNDLE_IDENTIFIER = "com.poeta.RxCoreMotion-watchOS.RxCoreMotion-watch"; - PRODUCT_NAME = "$(TARGET_NAME:c99extidentifier)"; + PRODUCT_NAME = RxCoreMotion; SDKROOT = watchos; SKIP_INSTALL = YES; SUPPORTED_PLATFORMS = "watchsimulator watchos"; @@ -307,7 +307,7 @@ TARGETED_DEVICE_FAMILY = 4; VERSIONING_SYSTEM = "apple-generic"; VERSION_INFO_PREFIX = ""; - WATCHOS_DEPLOYMENT_TARGET = 5.3; + WATCHOS_DEPLOYMENT_TARGET = 4.0; }; name = Debug; }; @@ -346,7 +346,7 @@ LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks"; MTL_FAST_MATH = YES; PRODUCT_BUNDLE_IDENTIFIER = "com.poeta.RxCoreMotion-watchOS.RxCoreMotion-watch"; - PRODUCT_NAME = "$(TARGET_NAME:c99extidentifier)"; + PRODUCT_NAME = RxCoreMotion; SDKROOT = watchos; SKIP_INSTALL = YES; SUPPORTED_PLATFORMS = "watchsimulator watchos"; @@ -354,7 +354,7 @@ TARGETED_DEVICE_FAMILY = 4; VERSIONING_SYSTEM = "apple-generic"; VERSION_INFO_PREFIX = ""; - WATCHOS_DEPLOYMENT_TARGET = 5.3; + WATCHOS_DEPLOYMENT_TARGET = 4.0; }; name = Release; };