Created
April 15, 2015 01:55
-
-
Save sharplet/fc584a2f9cfeecc201be to your computer and use it in GitHub Desktop.
Rake output building a framework and XCTest bundle from the command line
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ rake | |
mkdir -p Build | |
mkdir -p Build/Switch.framework | |
mkdir -p Build/Switch.framework/Versions/A/Modules/Switch.swiftmodule | |
ln -sf A Build/Switch.framework/Versions/Current | |
ln -sf Versions/Current/Modules Build/Switch.framework/Modules | |
ln -sf Versions/Current/Switch Build/Switch.framework/Switch | |
xcrun -sdk macosx swiftc -module-name Switch -emit-library -o Build/Switch.framework/Versions/Current/Switch -- Source/Switch.swift | |
xcrun -sdk macosx swiftc -module-name Switch -emit-module-path Build/Switch.framework/Versions/A/Modules/Switch.swiftmodule/x86_64.swiftmodule -- Source/Switch.swift | |
touch Build/Switch.framework | |
mkdir -p Build/Specs.xctest | |
xcrun -sdk macosx swiftc -lswiftCore -FBuild -FCarthage/Build/Mac -F/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/Library/Frameworks -Xlinker -rpath -Xlinker Carthage/Build/Mac -Xlinker -rpath -Xlinker /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/Library/Frameworks -o Build/Specs.xctest/Specs -- Specs/SwitchSpec.swift | |
touch Build/Specs.xctest | |
xcrun -sdk macosx xctest Build/Specs.xctest/Specs | |
Test Suite 'Specs.xctest' started at 2015-04-15 01:54:50 +0000 | |
Test Suite 'SwitchSpec' started at 2015-04-15 01:54:50 +0000 | |
Test Case '-[Specs.SwitchSpec Switch__has_a_test]' started. | |
Test Case '-[Specs.SwitchSpec Switch__has_a_test]' passed (0.009 seconds). | |
Test Suite 'SwitchSpec' passed at 2015-04-15 01:54:50 +0000. | |
Executed 1 test, with 0 failures (0 unexpected) in 0.009 (0.009) seconds | |
Test Suite 'Specs.xctest' passed at 2015-04-15 01:54:50 +0000. | |
Executed 1 test, with 0 failures (0 unexpected) in 0.009 (0.013) seconds |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment