Comments (9)
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.
Ah, annoying — which version of macOS are you on?
from cato.
I'm on 10.11.5
from cato.
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.
$ 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.
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.
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.
@neonichu Works for me on macOS 10.11.6 with Xcode 7.3.1 :)
from cato.
Thanks for testing, shipped as 0.2.1
from cato.
Related Issues (15)
- Proper error handling
- Homebrew formula HOT 1
- Proper README
- Allow reinstalling dependencies
- cato fails to execute Swift file and shows usage if the script file doesn't have a .swift extension HOT 4
- Allow specifying versions of third-party imports
- Importing dependencies where the module name differs from the pod name HOT 1
- Allow reinstalling dependencies HOT 1
- Offer an export option
- What about carthage support? HOT 1
- Brew can't find dependencies HOT 3
- Add support for CocoaPods 1.0
- Can't use HOT 3
- Example Doesn't Work HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from cato.