From 7a69aad33b2557c3273e4366c958fbca4ab9c387 Mon Sep 17 00:00:00 2001 From: Orkhan Alikhanov Date: Sun, 9 Jul 2017 23:23:07 +0400 Subject: [PATCH] Added support for macOS and tvOS --- Socket.swift.podspec | 4 +- SocketSwift.xcodeproj/project.pbxproj | 36 ++++--- .../xcschemes/SocketSwift.xcscheme | 99 +++++++++++++++++++ Sources/SocketSwift.h | 2 +- 4 files changed, 127 insertions(+), 14 deletions(-) create mode 100644 SocketSwift.xcodeproj/xcshareddata/xcschemes/SocketSwift.xcscheme diff --git a/Socket.swift.podspec b/Socket.swift.podspec index 7186ba3..1babd28 100644 --- a/Socket.swift.podspec +++ b/Socket.swift.podspec @@ -1,6 +1,6 @@ Pod::Spec.new do |s| s.name = 'Socket.swift' - s.version = '1.0' + s.version = '1.1' s.summary = 'A POSIX socket wrapper written in swift.' s.homepage = 'https://github.com/BiAtoms/Socket.swift' s.license = { :type => 'MIT', :file => 'LICENSE' } @@ -9,5 +9,7 @@ Pod::Spec.new do |s| s.module_name = 'SocketSwift' s.ios.deployment_target = '8.0' + s.osx.deployment_target = '10.9' + s.tvos.deployment_target = '9.0' s.source_files = 'Sources/*.swift' end diff --git a/SocketSwift.xcodeproj/project.pbxproj b/SocketSwift.xcodeproj/project.pbxproj index 9608190..43903a6 100644 --- a/SocketSwift.xcodeproj/project.pbxproj +++ b/SocketSwift.xcodeproj/project.pbxproj @@ -273,7 +273,7 @@ CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer"; COPY_PHASE_STRIP = NO; - CURRENT_PROJECT_VERSION = 1; + CURRENT_PROJECT_VERSION = ""; DEBUG_INFORMATION_FORMAT = dwarf; ENABLE_STRICT_OBJC_MSGSEND = YES; ENABLE_TESTABILITY = YES; @@ -291,14 +291,17 @@ GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; GCC_WARN_UNUSED_FUNCTION = YES; GCC_WARN_UNUSED_VARIABLE = YES; - IPHONEOS_DEPLOYMENT_TARGET = 10.3; + IPHONEOS_DEPLOYMENT_TARGET = 8.0; + MACOSX_DEPLOYMENT_TARGET = 10.9; MTL_ENABLE_DEBUG_INFO = YES; ONLY_ACTIVE_ARCH = YES; - SDKROOT = iphoneos; + SDKROOT = ""; + SUPPORTED_PLATFORMS = "macosx appletvsimulator appletvos iphonesimulator iphoneos"; SWIFT_ACTIVE_COMPILATION_CONDITIONS = DEBUG; SWIFT_OPTIMIZATION_LEVEL = "-Onone"; - TARGETED_DEVICE_FAMILY = "1,2"; - VERSIONING_SYSTEM = "apple-generic"; + TARGETED_DEVICE_FAMILY = "1,2,3,4"; + TVOS_DEPLOYMENT_TARGET = 9.0; + VERSIONING_SYSTEM = ""; VERSION_INFO_PREFIX = ""; }; name = Debug; @@ -327,7 +330,7 @@ CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer"; COPY_PHASE_STRIP = NO; - CURRENT_PROJECT_VERSION = 1; + CURRENT_PROJECT_VERSION = ""; DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym"; ENABLE_NS_ASSERTIONS = NO; ENABLE_STRICT_OBJC_MSGSEND = YES; @@ -339,13 +342,16 @@ GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; GCC_WARN_UNUSED_FUNCTION = YES; GCC_WARN_UNUSED_VARIABLE = YES; - IPHONEOS_DEPLOYMENT_TARGET = 10.3; + IPHONEOS_DEPLOYMENT_TARGET = 8.0; + MACOSX_DEPLOYMENT_TARGET = 10.9; MTL_ENABLE_DEBUG_INFO = NO; - SDKROOT = iphoneos; + SDKROOT = ""; + SUPPORTED_PLATFORMS = "macosx appletvsimulator appletvos iphonesimulator iphoneos"; SWIFT_OPTIMIZATION_LEVEL = "-Owholemodule"; - TARGETED_DEVICE_FAMILY = "1,2"; + TARGETED_DEVICE_FAMILY = "1,2,3,4"; + TVOS_DEPLOYMENT_TARGET = 9.0; VALIDATE_PRODUCT = YES; - VERSIONING_SYSTEM = "apple-generic"; + VERSIONING_SYSTEM = ""; VERSION_INFO_PREFIX = ""; }; name = Release; @@ -365,9 +371,12 @@ LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks"; PRODUCT_BUNDLE_IDENTIFIER = com.biatoms.SocketSwift; PRODUCT_NAME = "$(TARGET_NAME)"; + SDKROOT = ""; SKIP_INSTALL = YES; + SUPPORTED_PLATFORMS = "iphonesimulator iphoneos appletvos macosx appletvsimulator"; SWIFT_OPTIMIZATION_LEVEL = "-Onone"; SWIFT_VERSION = 3.0; + VALID_ARCHS = "arm64 armv7 armv7s i386 x86_64"; }; name = Debug; }; @@ -386,8 +395,11 @@ LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks"; PRODUCT_BUNDLE_IDENTIFIER = com.biatoms.SocketSwift; PRODUCT_NAME = "$(TARGET_NAME)"; + SDKROOT = ""; SKIP_INSTALL = YES; + SUPPORTED_PLATFORMS = "iphonesimulator iphoneos appletvos macosx appletvsimulator"; SWIFT_VERSION = 3.0; + VALID_ARCHS = "arm64 armv7 armv7s i386 x86_64"; }; name = Release; }; @@ -397,7 +409,7 @@ ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES = YES; DEVELOPMENT_TEAM = SLC8XA65WS; INFOPLIST_FILE = Tests/Info.plist; - LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks"; + LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks @executable_path/../Frameworks @loader_path/../Frameworks"; PRODUCT_BUNDLE_IDENTIFIER = com.biatoms.SocketSwiftTests; PRODUCT_NAME = "$(TARGET_NAME)"; SWIFT_VERSION = 3.0; @@ -410,7 +422,7 @@ ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES = YES; DEVELOPMENT_TEAM = SLC8XA65WS; INFOPLIST_FILE = Tests/Info.plist; - LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks"; + LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks @executable_path/../Frameworks @loader_path/../Frameworks"; PRODUCT_BUNDLE_IDENTIFIER = com.biatoms.SocketSwiftTests; PRODUCT_NAME = "$(TARGET_NAME)"; SWIFT_VERSION = 3.0; diff --git a/SocketSwift.xcodeproj/xcshareddata/xcschemes/SocketSwift.xcscheme b/SocketSwift.xcodeproj/xcshareddata/xcschemes/SocketSwift.xcscheme new file mode 100644 index 0000000..4c6ccc9 --- /dev/null +++ b/SocketSwift.xcodeproj/xcshareddata/xcschemes/SocketSwift.xcscheme @@ -0,0 +1,99 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/Sources/SocketSwift.h b/Sources/SocketSwift.h index 2c9af46..c5608ae 100644 --- a/Sources/SocketSwift.h +++ b/Sources/SocketSwift.h @@ -6,7 +6,7 @@ // Copyright © 2017 BiAtoms. All rights reserved. // -#import +#import //! Project version number for SocketSwift. FOUNDATION_EXPORT double SocketSwiftVersionNumber;