From 254e3c94b0f5aa551f19bb0b4ad8c08a91047514 Mon Sep 17 00:00:00 2001 From: Syo Ikeda Date: Sun, 3 May 2015 09:00:44 +0900 Subject: [PATCH 1/5] Update circle.yml for Xcode 6.3 --- circle.yml | 25 ++++++++++++------------- 1 file changed, 12 insertions(+), 13 deletions(-) diff --git a/circle.yml b/circle.yml index 7648d666..a2a7194c 100644 --- a/circle.yml +++ b/circle.yml @@ -1,22 +1,21 @@ machine: + xcode: + version: "6.3.1" environment: LC_CTYPE: en_US.UTF-8 dependencies: override: - #- ./script/import-certificates - #- sudo gem install cocoapods - #- sudo gem install xcpretty - #- brew install carthage - #- carthage bootstrap - - echo "skip installing dependencies until Circle CI supports Xcode 6.3 (with Swift 1.2)." + - ./script/import-certificates + - sudo gem install cocoapods + - sudo gem install xcpretty + - brew install carthage + - carthage bootstrap test: override: - #- ./script/check-carthage-compatibility - #- pod lib lint - #- set -o pipefail && xcodebuild test -scheme APIKit-iOS | xcpretty -c -r junit -o $CIRCLE_TEST_REPORTS/test-report-ios.xml - #- set -o pipefail && xcodebuild test -scheme APIKit-Mac | xcpretty -c -r junit -o $CIRCLE_TEST_REPORTS/test-report-mac.xml - #- set -o pipefail && xcodebuild build -scheme DemoApp -sdk iphonesimulator | xcpretty -c - - echo "skip testing until Circle CI supports Xcode 6.3 (with Swift 1.2)." - + - ./script/check-carthage-compatibility + - pod lib lint + - set -o pipefail && xcodebuild test -scheme APIKit-iOS | xcpretty -c -r junit -o $CIRCLE_TEST_REPORTS/test-report-ios.xml + - set -o pipefail && xcodebuild test -scheme APIKit-Mac | xcpretty -c -r junit -o $CIRCLE_TEST_REPORTS/test-report-mac.xml + - set -o pipefail && xcodebuild build -scheme DemoApp -sdk iphonesimulator | xcpretty -c From ca33796293a2b6abd613626d8544ab4519e476df Mon Sep 17 00:00:00 2001 From: Syo Ikeda Date: Sun, 3 May 2015 09:08:30 +0900 Subject: [PATCH 2/5] Update brew before install --- circle.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/circle.yml b/circle.yml index a2a7194c..8c4a65be 100644 --- a/circle.yml +++ b/circle.yml @@ -9,6 +9,7 @@ dependencies: - ./script/import-certificates - sudo gem install cocoapods - sudo gem install xcpretty + - brew update - brew install carthage - carthage bootstrap From 8c74ac42e66002525820029f4799bebfcde38ef3 Mon Sep 17 00:00:00 2001 From: Syo Ikeda Date: Sun, 3 May 2015 10:56:05 +0900 Subject: [PATCH 3/5] Try to fix "Simulator verification failed." --- circle.yml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/circle.yml b/circle.yml index 8c4a65be..d1d94b34 100644 --- a/circle.yml +++ b/circle.yml @@ -6,6 +6,9 @@ machine: dependencies: override: + - sudo chown :wheel "/Library/Developer/CoreSimulator/Profiles/Runtimes/iOS 7.1.simruntime/Contents/Resources/RuntimeRoot/usr/lib/dyld_sim" + - sudo chown :wheel "/Library/Developer/CoreSimulator/Profiles/Runtimes/iOS 8.1.simruntime/Contents/Resources/RuntimeRoot/usr/lib/dyld_sim" + - sudo chown :wheel "/Library/Developer/CoreSimulator/Profiles/Runtimes/iOS 8.2.simruntime/Contents/Resources/RuntimeRoot/usr/lib/dyld_sim" - ./script/import-certificates - sudo gem install cocoapods - sudo gem install xcpretty From 4095122821b7edd62ab9cd5466cadd83180c448e Mon Sep 17 00:00:00 2001 From: Syo Ikeda Date: Sun, 3 May 2015 11:50:34 +0900 Subject: [PATCH 4/5] Allow warnings for validating the pod spec --- circle.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/circle.yml b/circle.yml index d1d94b34..d4e8bb4b 100644 --- a/circle.yml +++ b/circle.yml @@ -19,7 +19,7 @@ dependencies: test: override: - ./script/check-carthage-compatibility - - pod lib lint + - pod lib lint --allow-warnings - set -o pipefail && xcodebuild test -scheme APIKit-iOS | xcpretty -c -r junit -o $CIRCLE_TEST_REPORTS/test-report-ios.xml - set -o pipefail && xcodebuild test -scheme APIKit-Mac | xcpretty -c -r junit -o $CIRCLE_TEST_REPORTS/test-report-mac.xml - set -o pipefail && xcodebuild build -scheme DemoApp -sdk iphonesimulator | xcpretty -c From 3db1833fb7f466cf21104e0983efa6fe7a80c313 Mon Sep 17 00:00:00 2001 From: Syo Ikeda Date: Sun, 3 May 2015 11:59:28 +0900 Subject: [PATCH 5/5] Fix build configuration settings for Mac target Release was set to "Run"(LaunchAction), not "Test"(TestAction). --- APIKit.xcodeproj/xcshareddata/xcschemes/APIKit-Mac.xcscheme | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/APIKit.xcodeproj/xcshareddata/xcschemes/APIKit-Mac.xcscheme b/APIKit.xcodeproj/xcshareddata/xcschemes/APIKit-Mac.xcscheme index c45b3d99..ed8993c5 100644 --- a/APIKit.xcodeproj/xcshareddata/xcschemes/APIKit-Mac.xcscheme +++ b/APIKit.xcodeproj/xcshareddata/xcschemes/APIKit-Mac.xcscheme @@ -26,7 +26,7 @@ selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB" selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB" shouldUseLaunchSchemeArgsEnv = "YES" - buildConfiguration = "Debug"> + buildConfiguration = "Release"> @@ -54,7 +54,7 @@ selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB" launchStyle = "0" useCustomWorkingDirectory = "NO" - buildConfiguration = "Release" + buildConfiguration = "Debug" ignoresPersistentStateOnLaunch = "NO" debugDocumentVersioning = "YES" allowLocationSimulation = "YES">