Skip to content
This repository has been archived by the owner on Feb 17, 2021. It is now read-only.

Commit

Permalink
Xcode 8.2 (#87)
Browse files Browse the repository at this point in the history
  • Loading branch information
nicksnyder authored Jan 12, 2017
1 parent cef3c7f commit 7715479
Show file tree
Hide file tree
Showing 8 changed files with 19 additions and 17 deletions.
5 changes: 4 additions & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
language: objective-c
osx_image: xcode8
osx_image: xcode8.2
script: sh build.sh /tmp/LayoutKit
after_success:
- bash <(curl -s https://codecov.io/bash) -D /tmp/LayoutKit
before_install:
- xcrun simctl delete 22FA2149-1241-469C-BF6D-462D3837DB72
- xcrun simctl delete 8188B40E-F57F-4519-AC47-E43D884B9016
2 changes: 1 addition & 1 deletion LayoutKit.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -830,7 +830,7 @@
isa = PBXProject;
attributes = {
LastSwiftUpdateCheck = 0800;
LastUpgradeCheck = 0810;
LastUpgradeCheck = 0820;
TargetAttributes = {
0B2D09AF1D8735E1007E487C = {
CreatedOnToolsVersion = 8.0;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?>
<Scheme
LastUpgradeVersion = "0810"
LastUpgradeVersion = "0820"
version = "1.3">
<BuildAction
parallelizeBuildables = "YES"
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?>
<Scheme
LastUpgradeVersion = "0810"
LastUpgradeVersion = "0820"
version = "1.3">
<BuildAction
parallelizeBuildables = "YES"
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?>
<Scheme
LastUpgradeVersion = "0810"
LastUpgradeVersion = "0820"
version = "1.3">
<BuildAction
parallelizeBuildables = "YES"
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?>
<Scheme
LastUpgradeVersion = "0810"
LastUpgradeVersion = "0820"
version = "1.3">
<BuildAction
parallelizeBuildables = "YES"
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?>
<Scheme
LastUpgradeVersion = "0810"
LastUpgradeVersion = "0820"
version = "1.3">
<BuildAction
parallelizeBuildables = "YES"
Expand Down
19 changes: 9 additions & 10 deletions build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,8 @@
DERIVED_DATA=${1:-/tmp/LayoutKit}
echo "Derived data location: $DERIVED_DATA";

# Looks like iOS 8 simulator doesn't work in Xcode 8.
# -destination 'platform=iOS Simulator,name=iPhone 6,OS=8.4' \
# -destination 'platform=iOS Simulator,name=iPhone 6 Plus,OS=8.4' \
#-destination 'platform=iOS Simulator,name=iPhone 6,OS=8.4' \
#-destination 'platform=iOS Simulator,name=iPhone 6 Plus,OS=8.4' \

set -o pipefail &&
rm -rf $DERIVED_DATA &&
Expand All @@ -23,7 +22,7 @@ rm -rf $DERIVED_DATA &&
time xcodebuild clean test \
-project LayoutKit.xcodeproj \
-scheme LayoutKit-tvOS \
-sdk appletvsimulator10.0 \
-sdk appletvsimulator10.1 \
-derivedDataPath $DERIVED_DATA \
-destination 'platform=tvOS Simulator,name=Apple TV 1080p,OS=9.2' \
-destination 'platform=tvOS Simulator,name=Apple TV 1080p,OS=10.0' \
Expand All @@ -35,12 +34,12 @@ rm -rf $DERIVED_DATA &&
time xcodebuild clean build \
-project LayoutKit.xcodeproj \
-scheme LayoutKitSampleApp \
-sdk iphonesimulator10.0 \
-sdk iphonesimulator10.2 \
-derivedDataPath $DERIVED_DATA \
-destination 'platform=iOS Simulator,name=iPhone 6,OS=9.3' \
-destination 'platform=iOS Simulator,name=iPhone 6 Plus,OS=9.3' \
-destination 'platform=iOS Simulator,name=iPhone 6,OS=10.0' \
-destination 'platform=iOS Simulator,name=iPhone 6 Plus,OS=10.0' \
-destination 'platform=iOS Simulator,name=iPhone 7,OS=10.2' \
-destination 'platform=iOS Simulator,name=iPhone 7 Plus,OS=10.2' \
OTHER_SWIFT_FLAGS='-Xfrontend -debug-time-function-bodies' \
| tee build.log \
| xcpretty &&
Expand All @@ -49,12 +48,12 @@ rm -rf $DERIVED_DATA &&
time xcodebuild clean test \
-project LayoutKit.xcodeproj \
-scheme LayoutKit-iOS \
-sdk iphonesimulator10.0 \
-sdk iphonesimulator10.2 \
-derivedDataPath $DERIVED_DATA \
-destination 'platform=iOS Simulator,name=iPhone 6,OS=9.3' \
-destination 'platform=iOS Simulator,name=iPhone 6 Plus,OS=9.3' \
-destination 'platform=iOS Simulator,name=iPhone 6,OS=10.0' \
-destination 'platform=iOS Simulator,name=iPhone 6 Plus,OS=10.0' \
-destination 'platform=iOS Simulator,name=iPhone 7,OS=10.2' \
-destination 'platform=iOS Simulator,name=iPhone 7 Plus,OS=10.2' \
OTHER_SWIFT_FLAGS='-Xfrontend -debug-time-function-bodies' \
| tee build.log \
| xcpretty &&
Expand Down

0 comments on commit 7715479

Please sign in to comment.