From 8d9ce1fe3df35bcc8b87f7a1b9adb5ae796f39d5 Mon Sep 17 00:00:00 2001 From: Lukas Schmidt Date: Mon, 25 Sep 2017 16:54:18 +0200 Subject: [PATCH 1/3] Turn of signing --- HeckelDiff.xcodeproj/project.pbxproj | 22 ++++++++++++++-------- 1 file changed, 14 insertions(+), 8 deletions(-) diff --git a/HeckelDiff.xcodeproj/project.pbxproj b/HeckelDiff.xcodeproj/project.pbxproj index 8290d9d..7943519 100644 --- a/HeckelDiff.xcodeproj/project.pbxproj +++ b/HeckelDiff.xcodeproj/project.pbxproj @@ -160,15 +160,13 @@ TargetAttributes = { D829E6121DE5039500560BD4 = { CreatedOnToolsVersion = 8.1; - DevelopmentTeam = 46UKZ786J3; LastSwiftMigration = 0810; - ProvisioningStyle = Automatic; + ProvisioningStyle = Manual; }; D829E61B1DE5039500560BD4 = { CreatedOnToolsVersion = 8.1; - DevelopmentTeam = 46UKZ786J3; LastSwiftMigration = 0810; - ProvisioningStyle = Automatic; + ProvisioningStyle = Manual; }; }; }; @@ -342,8 +340,9 @@ buildSettings = { CLANG_ENABLE_MODULES = YES; CODE_SIGN_IDENTITY = ""; + CODE_SIGN_STYLE = Manual; DEFINES_MODULE = YES; - DEVELOPMENT_TEAM = 46UKZ786J3; + DEVELOPMENT_TEAM = ""; DYLIB_COMPATIBILITY_VERSION = 1; DYLIB_CURRENT_VERSION = 1; DYLIB_INSTALL_NAME_BASE = "@rpath"; @@ -353,6 +352,7 @@ LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks"; PRODUCT_BUNDLE_IDENTIFIER = com.matiascudich.HeckelDiff; PRODUCT_NAME = "$(TARGET_NAME)"; + PROVISIONING_PROFILE_SPECIFIER = ""; SKIP_INSTALL = YES; SWIFT_OPTIMIZATION_LEVEL = "-Onone"; SWIFT_VERSION = 3.0; @@ -364,8 +364,9 @@ buildSettings = { CLANG_ENABLE_MODULES = YES; CODE_SIGN_IDENTITY = ""; + CODE_SIGN_STYLE = Manual; DEFINES_MODULE = YES; - DEVELOPMENT_TEAM = 46UKZ786J3; + DEVELOPMENT_TEAM = ""; DYLIB_COMPATIBILITY_VERSION = 1; DYLIB_CURRENT_VERSION = 1; DYLIB_INSTALL_NAME_BASE = "@rpath"; @@ -375,6 +376,7 @@ LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks"; PRODUCT_BUNDLE_IDENTIFIER = com.matiascudich.HeckelDiff; PRODUCT_NAME = "$(TARGET_NAME)"; + PROVISIONING_PROFILE_SPECIFIER = ""; SKIP_INSTALL = YES; SWIFT_VERSION = 3.0; }; @@ -385,11 +387,13 @@ buildSettings = { ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES = YES; CLANG_ENABLE_MODULES = YES; - DEVELOPMENT_TEAM = 46UKZ786J3; + CODE_SIGN_STYLE = Manual; + DEVELOPMENT_TEAM = ""; INFOPLIST_FILE = Tests/Info.plist; LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks"; PRODUCT_BUNDLE_IDENTIFIER = com.matiascudich.HeckelDiffTests; PRODUCT_NAME = "$(TARGET_NAME)"; + PROVISIONING_PROFILE_SPECIFIER = ""; SWIFT_OPTIMIZATION_LEVEL = "-Onone"; SWIFT_VERSION = 3.0; }; @@ -400,11 +404,13 @@ buildSettings = { ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES = YES; CLANG_ENABLE_MODULES = YES; - DEVELOPMENT_TEAM = 46UKZ786J3; + CODE_SIGN_STYLE = Manual; + DEVELOPMENT_TEAM = ""; INFOPLIST_FILE = Tests/Info.plist; LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks"; PRODUCT_BUNDLE_IDENTIFIER = com.matiascudich.HeckelDiffTests; PRODUCT_NAME = "$(TARGET_NAME)"; + PROVISIONING_PROFILE_SPECIFIER = ""; SWIFT_VERSION = 3.0; }; name = Release; From ab42140c7a82ea8dfe1e7b2a7d3f8b4848e7005c Mon Sep 17 00:00:00 2001 From: Lukas Schmidt Date: Tue, 26 Sep 2017 06:20:02 +0200 Subject: [PATCH 2/3] Changes project settings to make it universal --- HeckelDiff.xcodeproj/project.pbxproj | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/HeckelDiff.xcodeproj/project.pbxproj b/HeckelDiff.xcodeproj/project.pbxproj index 7943519..6881da7 100644 --- a/HeckelDiff.xcodeproj/project.pbxproj +++ b/HeckelDiff.xcodeproj/project.pbxproj @@ -281,9 +281,10 @@ MTL_ENABLE_DEBUG_INFO = YES; ONLY_ACTIVE_ARCH = YES; SDKROOT = iphoneos; + SUPPORTED_PLATFORMS = "iphonesimulator iphoneos watchsimulator watchos appletvsimulator appletvos macosx"; SWIFT_ACTIVE_COMPILATION_CONDITIONS = DEBUG; SWIFT_OPTIMIZATION_LEVEL = "-Onone"; - TARGETED_DEVICE_FAMILY = "1,2"; + TARGETED_DEVICE_FAMILY = "1,2,3,4"; VERSIONING_SYSTEM = "apple-generic"; VERSION_INFO_PREFIX = ""; }; @@ -327,8 +328,9 @@ IPHONEOS_DEPLOYMENT_TARGET = 9.3; MTL_ENABLE_DEBUG_INFO = NO; SDKROOT = iphoneos; + SUPPORTED_PLATFORMS = "iphonesimulator iphoneos watchsimulator watchos appletvsimulator appletvos macosx"; SWIFT_OPTIMIZATION_LEVEL = "-Owholemodule"; - TARGETED_DEVICE_FAMILY = "1,2"; + TARGETED_DEVICE_FAMILY = "1,2,3,4"; VALIDATE_PRODUCT = YES; VERSIONING_SYSTEM = "apple-generic"; VERSION_INFO_PREFIX = ""; From ee013a7ebf990694c2462ba2dfc7e93cd272b125 Mon Sep 17 00:00:00 2001 From: Lukas Schmidt Date: Tue, 26 Sep 2017 06:20:34 +0200 Subject: [PATCH 3/3] Build conditions for non UIKit platforms --- Source/UICollectionView+Diff.swift | 2 ++ Source/UITableView+Diff.swift | 2 ++ 2 files changed, 4 insertions(+) diff --git a/Source/UICollectionView+Diff.swift b/Source/UICollectionView+Diff.swift index 18b4450..ae31bf8 100644 --- a/Source/UICollectionView+Diff.swift +++ b/Source/UICollectionView+Diff.swift @@ -6,6 +6,7 @@ // Copyright © 2016 Matias Cudich. All rights reserved. // +#if os(iOS) || os(tvOS) import Foundation import UIKit @@ -33,3 +34,4 @@ public extension UICollectionView { }, completion: completion) } } +#endif diff --git a/Source/UITableView+Diff.swift b/Source/UITableView+Diff.swift index d548dff..191c441 100644 --- a/Source/UITableView+Diff.swift +++ b/Source/UITableView+Diff.swift @@ -6,6 +6,7 @@ // Copyright © 2016 Matias Cudich. All rights reserved. // +#if os(iOS) || os(tvOS) import Foundation import UIKit @@ -37,3 +38,4 @@ public extension UITableView { } } } +#endif