Skip to content
This repository has been archived by the owner on Jan 4, 2020. It is now read-only.

Running Marathon on macOS Catalina does not work #206

Open
LambdaDigamma opened this issue Jul 22, 2019 · 5 comments
Open

Running Marathon on macOS Catalina does not work #206

LambdaDigamma opened this issue Jul 22, 2019 · 5 comments

Comments

@LambdaDigamma
Copy link

Platform
macOS Catalina Version 10.15 Beta (19A512f)

Issue
I freshly installed Marathon the recommended way on macOS Catalina Beta Version.
It seems to install without any error, but when trying to run Marathon via marathon I get the following error:
This copy of libswiftCore.dylib requires an OS version prior to 10.14.4.
[1] 13259 abort marathon run

I didn't dig into source code yet, but does anybody know a fast way to solve this error?
Thanks in advance!

@LambdaDigamma
Copy link
Author

I resolved this error by switching Command Line Tools to use Xcode 11 Beta:
sudo xcode-select --switch /Applications/Xcode-beta.app/Contents/Developer

Please excuse the inconvenience!

@johndpope
Copy link

johndpope commented Jul 25, 2019

I'm seeing this error - although at some stage it was working fine.

cd "/Users/johndpope/.marathon/Scripts/Cache/-Users-johndpope-Downloads-frontpage-ios-app-FrontPage-src-Sync/" && readlink OriginalFile
/Users/johndpope/Downloads/frontpage-ios-app/FrontPage/src/Sync.swift
$ cd "/Users/johndpope/Downloads/frontpage-ios-app/FrontPage/src/" && /usr/bin/env xcrun --sdk macosx swift package --version
Apple Swift Package Manager - Swift 5.1.0 (swiftpm-14672.3)
$ cd "/Users/johndpope/.marathon/Scripts/Cache/-Users-johndpope-Downloads-frontpage-ios-app-FrontPage-src-Sync/" && /usr/bin/env xcrun --sdk macosx swift build -C /Users/johndpope/.marathon/Scripts/Cache/-Users-johndpope-Downloads-frontpage-ios-app-FrontPage-src-Sync/
[1/3] Compiling Sync main.swift
:0: error: invalid value '5.1' in '-swift-version 5.1'
:0: note: valid arguments to '-swift-version' are '4', '4.2', '5'
warning: '--chdir/-C' option is deprecated; use '--package-path' instead
💥 Failed to compile script

swift --version
Apple Swift version 5.1 (swiftlang-1100.0.38.29 clang-1100.0.20.14)
Target: x86_64-apple-darwin19.0.0

xcode beta 11

my bad - this fixes it
sudo xcode-select --switch /Applications/Xcode-10.1.app/Contents/Developer

marathon run Sync.swift --verbose
🏃 $ cd "/Users/johndpope/.marathon/Scripts/Cache/-Users-johndpope-Downloads-frontpage-ios-app-FrontPage-src-Sync/" && readlink OriginalFile
/Users/johndpope/Downloads/frontpage-ios-app/FrontPage/src/Sync.swift
$ cd "/Users/johndpope/Downloads/frontpage-ios-app/FrontPage/src/" && /usr/bin/env xcrun --sdk macosx swift package --version
Apple Swift Package Manager - Swift 5.0.0 (swiftpm-14490.62.2)
$ cd "/Users/johndpope/Downloads/frontpage-ios-app/FrontPage/src/" && /usr/bin/env xcrun --sdk macosx swift package --version
Apple Swift Package Manager - Swift 5.0.0 (swiftpm-14490.62.2)
$ cd "/Users/johndpope/.marathon/Scripts/Cache/-Users-johndpope-Downloads-frontpage-ios-app-FrontPage-src-Sync/" && /usr/bin/env xcrun --sdk macosx swift build -C /Users/johndpope/.marathon/Scripts/Cache/-Users-johndpope-Downloads-frontpage-ios-app-FrontPage-src-Sync/
[1/7] Compiling Swift Module 'ShellOut' (1 sources)
[2/7] Compiling Swift Module 'SwiftyJSON' (1 sources)
[3/7] Compiling Swift Module 'Alamofire' (17 sources)
[4/7] Compiling Swift Module 'Apollo' (43 sources)
[5/7] Compiling Swift Module 'Sync' (1 sources)
[6/7] Linking ./.build/x86_64-apple-macosx/debug/Sync
[7/7] Linking ./.build/x86_64-apple-macosx/debug/libMarathonDependencies.dylib
$ cd "/Users/johndpope/Downloads/frontpage-ios-app/FrontPage/src/" && /Users/johndpope/.marathon/Scripts/Cache/-Users-johndpope-Downloads-frontpage-ios-app-FrontPage-src-Sync/.build/debug/Sync "--verbose"
This copy of libswiftCore.dylib requires an OS version prior to 10.14.4.
/bin/bash: line 1: 38767 Abort trap: 6 /Users/johndpope/.marathon/Scripts/Cache/-Users-johndpope-Downloads-frontpage-ios-app-FrontPage-src-Sync/.build/debug/Sync "--verbose"
💥 Failed to run script
👉 This copy of libswiftCore.dylib requires an OS version prior to 10.14.4.
/bin/bash: line 1: 38767 Abort trap: 6 /Users/johndpope/.marathon/Scripts/Cache/-Users-johndpope-Downloads-frontpage-ios-app-FrontPage-src-Sync/.build/debug/Sync "--verbose"

going in circles

@LambdaDigamma
Copy link
Author

You are right. After successful installation I wasn't successful in building and compiling a Marathon Script on Catalina either.

@LambdaDigamma LambdaDigamma reopened this Jul 25, 2019
@jstewuk
Copy link

jstewuk commented Aug 24, 2019

Installed without an issue but unable to complete helloWorld example. Tests also failing.
XCode11b6, Catalina beta "10.15 Beta (19A536g)". Haven't had time to chase.

@JohnSundell
Copy link
Owner

Hi everyone, please note that Marathon is being deprecated and will not be updated for macOS Catalina (at least not by me). Feel free to either debug this and submit a PR, or migrate your scripts to use SwiftPM directly (which is my personal recommendation).

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants