Coder Social home page Coder Social logo

Comments (9)

fluidsonic avatar fluidsonic commented on June 26, 2024 1

Passing -target to swift in the cato script solves this:

@@ -72,4 +72,4 @@

 FRAMEWORKS="`ls "$PKG_DIR/Rome"|grep -v 'Pods_cato'|sed -e 's/\.framework$//' -e 's/^/-framework /'`"

-exec xcrun swift -F"$PKG_DIR/Rome" -F"$FRAMEWORKS_PATH" `echo $FRAMEWORKS` "$SCRIPT" $@
+exec xcrun swift -target x86_64-apple-macosx10.10 -F"$PKG_DIR/Rome" -F"$FRAMEWORKS_PATH" `echo $FRAMEWORKS` "$SCRIPT" $@

from cato.

neonichu avatar neonichu commented on June 26, 2024

Ah, annoying — which version of macOS are you on?

from cato.

fluidsonic avatar fluidsonic commented on June 26, 2024

I'm on 10.11.5

from cato.

neonichu avatar neonichu commented on June 26, 2024

Hm, I'm having a hard time reproducing this — what is your selected version of Xcode? Is it by any chance an older one that only includes the 10.10 SDK?

from cato.

fluidsonic avatar fluidsonic commented on June 26, 2024
$ xcode-select -p
/Applications/Xcode.app/Contents/Developer

$ xcodebuild -version
Xcode 7.3.1
Build version 7D1014

$ xcodebuild -showsdks
OS X SDKs:
    OS X 10.11                      -sdk macosx10.11

iOS SDKs:
    iOS 9.3                         -sdk iphoneos9.3

iOS Simulator SDKs:
    Simulator - iOS 9.3             -sdk iphonesimulator9.3

tvOS SDKs:
    tvOS 9.2                        -sdk appletvos9.2

tvOS Simulator SDKs:
    Simulator - tvOS 9.2            -sdk appletvsimulator9.2

watchOS SDKs:
    watchOS 2.2                     -sdk watchos2.2

watchOS Simulator SDKs:
    Simulator - watchOS 2.2         -sdk watchsimulator2.2

I have no other Xcode versions installed.


I added the -v flag to cato's swift invocation.
Looks like that the swift tool uses x86_64-apple-macosx10.9 as the default target for me when not specifying an explicit target using -target.

$ ./Script.swift 
Apple Swift version 2.2 (swiftlang-703.0.18.8 clang-703.0.31)
Target: x86_64-apple-macosx10.9
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/swift -frontend -interpret ./Script.swift -target x86_64-apple-macosx10.9 -enable-objc-interop -sdk /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.11.sdk -F /Users/marc/.📦/Script/Rome -F /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.11.sdk/../../Library/Frameworks -color-diagnostics -module-name Script -framework AEXML
./Script.swift:3:8: error: module file's minimum deployment target is OS X v10.10: /Users/marc/.📦/Script/Rome/AEXML.framework/Modules/AEXML.swiftmodule/x86_64.swiftmodule
import AEXML

from cato.

neonichu avatar neonichu commented on June 26, 2024

You're right, the same is actually happening for me. I see the issue now, AEXML is the one requesting a newer macOS version. I think it would be best if cato would actually use the newest available SDK instead of swift default.

from cato.

neonichu avatar neonichu commented on June 26, 2024

This works for me on macOS 10.12 with Xcode 8 (using a private build of CP to resolve some unrelated issues). I hope I didn't break support for 10.11 and Xcode 7.3, but unfortunately are unable to test this right now. The testsuite is also not really up to the task of handling multiple Xcode versions at the moment 😱

@fluidsonic would appreciate if you could give this a quick swing, I'll update in Homebrew if you can confirm this works.

from cato.

fluidsonic avatar fluidsonic commented on June 26, 2024

@neonichu Works for me on macOS 10.11.6 with Xcode 7.3.1 :)

from cato.

neonichu avatar neonichu commented on June 26, 2024

Thanks for testing, shipped as 0.2.1

from cato.

Related Issues (15)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.