Skip to content

Commit

Permalink
Moved all project settings to Swift 5
Browse files Browse the repository at this point in the history
  • Loading branch information
evermeer committed Mar 27, 2019
1 parent c8488cf commit b8fbeb2
Show file tree
Hide file tree
Showing 7 changed files with 18 additions and 14 deletions.
5 changes: 3 additions & 2 deletions Carthage/Carthage.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -471,6 +471,7 @@
developmentRegion = English;
hasScannedForEncodings = 0;
knownRegions = (
English,
en,
Base,
);
Expand Down Expand Up @@ -666,7 +667,7 @@
PRODUCT_BUNDLE_IDENTIFIER = nl.evict.EVReflectioniOS;
PRODUCT_NAME = EVReflection;
SKIP_INSTALL = YES;
SWIFT_VERSION = 4.2;
SWIFT_VERSION = 5.0;
VERSIONING_SYSTEM = "apple-generic";
VERSION_INFO_PREFIX = "";
};
Expand All @@ -689,7 +690,7 @@
PRODUCT_BUNDLE_IDENTIFIER = nl.evict.EVReflectioniOS;
PRODUCT_NAME = EVReflection;
SKIP_INSTALL = YES;
SWIFT_VERSION = 4.2;
SWIFT_VERSION = 5.0;
VERSIONING_SYSTEM = "apple-generic";
VERSION_INFO_PREFIX = "";
};
Expand Down
5 changes: 3 additions & 2 deletions Demo/Demo.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -201,6 +201,7 @@
developmentRegion = English;
hasScannedForEncodings = 0;
knownRegions = (
English,
en,
Base,
);
Expand Down Expand Up @@ -384,7 +385,7 @@
ONLY_ACTIVE_ARCH = YES;
PRODUCT_BUNDLE_IDENTIFIER = nl.evict.4Demo;
PRODUCT_NAME = "$(TARGET_NAME)";
SWIFT_VERSION = 4.2;
SWIFT_VERSION = 5.0;
};
name = Release;
};
Expand Down Expand Up @@ -450,7 +451,7 @@
ONLY_ACTIVE_ARCH = YES;
PRODUCT_BUNDLE_IDENTIFIER = nl.evict.4Demo;
PRODUCT_NAME = "$(TARGET_NAME)";
SWIFT_VERSION = 4.2;
SWIFT_VERSION = 5.0;
};
name = Debug;
};
Expand Down
1 change: 1 addition & 0 deletions EVReflection.podspec
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ EOS
s.tvos.deployment_target = '9.0'

s.pod_target_xcconfig = { 'SWIFT_VERSION' => '4.2' }
s.swift_versions = ['4.0', '4.2', '5.0']

s.source = { :git => "https://github.com/evermeer/EVReflection.git", :tag => s.version }
s.default_subspec = "Core"
Expand Down
Binary file not shown.
5 changes: 3 additions & 2 deletions PerformanceTest/PerformanceTest.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -163,6 +163,7 @@
developmentRegion = English;
hasScannedForEncodings = 0;
knownRegions = (
English,
en,
Base,
);
Expand Down Expand Up @@ -388,7 +389,7 @@
PRODUCT_BUNDLE_IDENTIFIER = nl.evict.PerformanceTest;
PRODUCT_NAME = "$(TARGET_NAME)";
SWIFT_DISABLE_SAFETY_CHECKS = NO;
SWIFT_VERSION = 4.2;
SWIFT_VERSION = 5.0;
};
name = Debug;
};
Expand All @@ -405,7 +406,7 @@
PRODUCT_BUNDLE_IDENTIFIER = nl.evict.PerformanceTest;
PRODUCT_NAME = "$(TARGET_NAME)";
SWIFT_DISABLE_SAFETY_CHECKS = NO;
SWIFT_VERSION = 4.2;
SWIFT_VERSION = 5.0;
};
name = Release;
};
Expand Down
3 changes: 1 addition & 2 deletions UnitTests/CloudKit/CKAsset+UIImage.swift
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,7 @@ import UIKit

public extension CKAsset {
func image() -> UIImage? {
let url = self.fileURL
if let data = try? Data(contentsOf: url) {
if let url = self.fileURL, let data = try? Data(contentsOf: url) {
return UIImage(data: data)
}
return nil
Expand Down
13 changes: 7 additions & 6 deletions UnitTests/UnitTests.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -781,6 +781,7 @@
developmentRegion = English;
hasScannedForEncodings = 0;
knownRegions = (
English,
en,
Base,
);
Expand Down Expand Up @@ -1428,7 +1429,7 @@
PRODUCT_BUNDLE_IDENTIFIER = "nl.evict.$(PRODUCT_NAME:rfc1034identifier)";
PRODUCT_NAME = "$(TARGET_NAME)";
PROVISIONING_PROFILE_SPECIFIER = "";
SWIFT_VERSION = 4.2;
SWIFT_VERSION = 5.0;
};
name = Debug;
};
Expand All @@ -1445,7 +1446,7 @@
PRODUCT_BUNDLE_IDENTIFIER = "nl.evict.$(PRODUCT_NAME:rfc1034identifier)";
PRODUCT_NAME = "$(TARGET_NAME)";
PROVISIONING_PROFILE_SPECIFIER = "";
SWIFT_VERSION = 4.2;
SWIFT_VERSION = 5.0;
};
name = Release;
};
Expand All @@ -1463,7 +1464,7 @@
PRODUCT_NAME = "$(TARGET_NAME)";
SDKROOT = macosx;
SUPPORTED_PLATFORMS = macosx;
SWIFT_VERSION = 4.2;
SWIFT_VERSION = 5.0;
};
name = Debug;
};
Expand All @@ -1481,7 +1482,7 @@
PRODUCT_NAME = "$(TARGET_NAME)";
SDKROOT = macosx;
SUPPORTED_PLATFORMS = macosx;
SWIFT_VERSION = 4.2;
SWIFT_VERSION = 5.0;
};
name = Release;
};
Expand All @@ -1496,7 +1497,7 @@
PRODUCT_BUNDLE_IDENTIFIER = "nl.evict.EVReflection-TVOS-Tests";
PRODUCT_NAME = "$(TARGET_NAME)";
SDKROOT = appletvos;
SWIFT_VERSION = 4.2;
SWIFT_VERSION = 5.0;
TVOS_DEPLOYMENT_TARGET = 9.0;
};
name = Debug;
Expand All @@ -1511,7 +1512,7 @@
PRODUCT_BUNDLE_IDENTIFIER = "nl.evict.EVReflection-TVOS-Tests";
PRODUCT_NAME = "$(TARGET_NAME)";
SDKROOT = appletvos;
SWIFT_VERSION = 4.2;
SWIFT_VERSION = 5.0;
TVOS_DEPLOYMENT_TARGET = 9.0;
};
name = Release;
Expand Down

0 comments on commit b8fbeb2

Please sign in to comment.