Kare Morstol
c36f2e1051
Update Xcode project. ( #94 )
...
As suggested by Xcode 12. Also update Swift version.
2020-09-25 22:31:02 +02:00
Kare Morstol
dd25f7bcb8
Xcode project: set deployment target, remove unused iOS stuff. ( #89 )
2020-07-13 00:50:57 +02:00
Kare Morstol
a1ad3fb25c
Reformat code using swiftformat 0.40.14
...
Because it is the last version that does indentation and alignment correctly (tabs for indentation, spaces for alignment).
2020-07-11 15:33:57 +02:00
Kare Morstol
8c1e54f420
Remove missing files from Xcode project.
2020-07-10 22:37:51 +02:00
Kare Morstol
fc130c441d
Fix indentation, remove platform restriction from Package.swift.
2019-08-11 16:07:51 +02:00
KarlZeo
b5c925dfcc
support old macOS version
...
Signed-off-by: KarlZeo <nieyujiang@gmail.com >
2019-08-11 16:07:51 +02:00
Kare Morstol
4a104a5aea
fix framework build setting from corrupting xcode archive type.
2019-08-11 15:22:42 +02:00
Kare Morstol
0488a479d7
'exit' functions only print filename and line number in debug builds.
2019-03-27 22:22:36 +01:00
Kare Morstol
153bfc58d2
Update to Swift 5
2019-03-26 16:54:01 +01:00
Kare Morstol
0b1fe3aed3
Set minimum macOS version to 10.13.
...
Because it is using methods on Process that were added in 10.13.
2019-03-26 16:49:07 +01:00
Kare Morstol
9ae82dc6db
Move AsyncCommand.launch back to RunOutput(launch:).
...
Since AsyncCommand.launch was private and only used by RunOutput.
2018-10-03 17:52:36 +02:00
Kare Morstol
97e68ec5bb
Remove swiftlint build phase.
...
Was inactive anyway.
2018-07-31 17:51:30 +02:00
Kare Morstol
eedbd2ab73
Move all Process-specific code to its own file.
2018-04-06 21:41:45 +02:00
Kare Morstol
edfad8d0b7
Xcode 9.3: update to recommended project settings.
2018-04-05 21:03:11 +02:00
Kare Morstol
66fb0be630
Try with 4.0-DEVELOPMENT-SNAPSHOT-2017-06-19-a instead.
2017-06-23 20:29:37 +02:00
Kare Morstol
eb9ded045b
Update to Swift 4.
2017-06-23 20:15:44 +02:00
Kare Morstol
ae127df8c5
Remove Scripts directory reference in XCode.
2017-05-11 21:41:58 +02:00
Kare Morstol
fdf348859c
Remove space before ( in function declarations.
...
I used to think it looked better for some reason.
2017-04-20 20:32:29 +02:00
Kare Morstol
e7e43b42ba
Cleanup code.
...
With the help of SwiftLint.
2017-04-18 19:05:36 +02:00
Kare Morstol
38f3d41ca7
Also rename in LinuxMain.swift.
2017-03-31 00:08:56 +02:00
Kare Morstol
4d2ed74b55
Massive renaming: avoid words Type, Task and Shell.
...
Protocols should no longer end in Type, Task has been renamed in Foundation and the word Shell is not appropriate for running commands / launching processes, it describes terminal applications and shell interpreters like bash. Which means the name SwiftShell itself is probably a misnomer but I am not about to change that now.
Also remove any mentions of SwiftShell 2.
2017-03-30 20:10:05 +02:00
Kare Morstol
03adb38f56
Update to Xcode 8.3.
...
Can't update .swift-version to 3.1 yet because of Travis and swiftenv.
2017-03-29 19:11:11 +02:00
Kare Morstol
af7399e93a
Fix up ReadableStream.onStringOutput, set framework as dependency for all unit test targets.
2017-03-02 19:15:49 +01:00
Kare Morstol
d944464578
Update podspec with iOS deployment target 9.0.
2017-03-01 21:58:37 +01:00
Kare Morstol
fa70e419dd
Enable building for iOS. Just the Stream part. So FileSmith can use it.
...
The rest cannot build on iOS because it uses Process.
Move the Stream files into its own directory.
2017-02-28 01:45:24 +01:00
Kare Morstol
11b979c690
Fix AssertNoThrow silencing test failures. Cleanup test helping code.
2017-01-30 20:27:12 +01:00
Kare Morstol
e53557624c
Update to recommended settings in Xcode 8.2.
2016-12-16 20:13:43 +01:00
Kare Morstol
e7af9e3449
Remove Linux from supported platforms.
...
Linux isn't quite supported yet.
Also Cartage gives error
Parse error: unexpected SDK key "linux"
2016-10-09 23:30:39 +02:00
Kare Morstol
ed36e0228f
Add ‘Tests’ suffix to test folders. As required by Swift Package Manager.
2016-10-07 22:11:37 +02:00
Kare Morstol
867efc06df
Set minimum deployment target to 10.9 – see #23 .
...
"
Running 10.12. Framework installed in ~/Library/Frameworks/. Whenever I run a swift script importing SwiftShell, I get the following error:
./swifttest:4:8: error: module file's minimum deployment target is OS X v10.11: /Users/xxxxx/Library/Frameworks/SwiftShell.framework/Modules/SwiftShell.swiftmodule/x86_64.swiftmodule
"
2016-09-23 22:27:27 +02:00
Kare Morstol
27a7cde34a
Update to Swift 3.0 final release.
...
3 unit tests are failing. Not sure why.
2016-09-15 13:10:30 +02:00
Kare Morstol
b65bc584d5
Update for Xcode 8 beta 3.
2016-07-26 12:19:04 +02:00
Kare Morstol
0e14578942
Update to DEVELOPMENT-SNAPSHOT-2016-06-20-a.
...
Lots of name and value changes in Foundation.
Currently does not build using the Swift Package Manager ("<unknown>:0: error: Swift does not support the SDK 'MacOSX10.11.sdk'"), but builds fine from Xcode 8.
2016-06-22 00:01:27 +02:00
Kare Morstol
3bffc67f63
Move String.swift out of “General”, as it isn't. General that is.
2016-06-07 22:18:52 +02:00
Kare Morstol
04759e9245
Reorganise to use "swift test". Replace Xcode project with one auto-generated by swiftpm.
...
The “Scripts” folder is temporarily moved out of "Tests" because it doesn't work with the Swift Package Manager.
2016-06-06 01:48:36 +02:00
Kare Morstol
2d368bf7d6
Remove old Xcode project and unused files.
2015-09-08 18:04:37 +02:00
Kare Morstol
ed2b96f8d5
Remove non-working playground. Update project format to 6.3.
2015-07-19 21:59:50 +02:00
Kare Morstol
0b5680c9ab
Simplify speedtests.
...
Pretty sure this used to not work. Why else would this not already be here?
2015-07-09 20:38:41 +02:00
Kare Morstol
0e369c5b48
Update to Xcode 7 beta 3.
2015-07-09 20:37:25 +02:00
Kare Morstol
068473a2fb
Enable tests that now pass in Swift 2.0 .
...
Nice.
2015-06-28 00:54:09 +02:00
Kare Morstol
a9dbdcf629
Update to Swift 2.0 .
...
Wow, lots of changes in Swift 2.0! And all of them great, except for renaming println to print. What's up with that?
This is just to get it to compile, we will be trying and throwing errors in no time.
2015-06-28 00:52:40 +02:00
Kare Morstol
6c22fb9e14
Disable unit tests with runtime crashes in Swift 1.2
...
So we can run the rest of the unit tests.
2015-02-13 23:18:40 +01:00
Kare Morstol
cc1d152f14
Rename /Div folder to Misc.
...
Well this is awkward. It seems a Norwegian term has snuck its way into the project. I meant Misc for Miscellaneous.
2015-01-05 19:40:27 +01:00
Kare Morstol
7ffcf7be5f
Skip speed test "testSpeedSwiftSplit" as it takes a very long time.
...
Also improve output of "testWhenSplitFileAsStringBecomesQuicker".
2014-12-18 01:49:46 +01:00
Kare Morstol
11a028d4ff
Fix #2 : "ReadableStreamType.readSome crashes with error "6555 Illegal instruction: 4" when using a Release build of SwiftShell."
...
Also fixes #1 : "SwiftShell_Speed_Tests unit tests never finish.".
It turns out NSString(data data: NSData, encoding encoding: UInt) returns an optional String, something Xcode/Swift neglected to tell me. Which is strange as they are normally very strict about these things. But what really solved these 2 issues (which are really the same issue) was removing the unnecessary cast "as String". For more on this really bizarre bug in the Swift compiler, see https://devforums.apple.com/message/1084852#1084852 .
2014-12-18 01:47:33 +01:00
Kare Morstol
caaf5459db
Move Files_Tests to its rightful position.
2014-12-01 23:44:39 +01:00
Kare Morstol
a2985b049d
Add shell unit tests and update test scripts.
...
Run SwiftShellTests/Scripts/runtests.bash to perform all unit tests.
2014-11-26 20:58:22 +01:00
Kare Morstol
b33bfb9a5f
Move "temporaryDirectory" to new file Files.swift and rename it "tempdirectory".
...
Because it could be useful in scripts too.
2014-11-25 20:38:32 +01:00
Kare Morstol
e67f465457
Add "countOccurrencesOf" to String.
2014-11-05 17:40:13 +01:00
Kare Morstol
7c0048820a
Enable build for running again, so SwiftShell will work in a playground.
2014-10-24 20:21:55 +02:00