Closed haifengkao closed 5 years ago
-XSwiftc will take double quote as the part of argument, but nodejs needs shell: true to support it (https://github.com/nodejs/node/issues/10461)
-XSwiftc
shell: true
my settings.json needs to pass -target to swift compiler by
settings.json
-target
"sde.swiftBuildingParams" : [ "build", "-Xswiftc", "\"-target\"", "-Xswiftc", "\"x86_64-apple-ios12.1-simulator\"", "-Xswiftc", "\"-sdk\"", "-Xswiftc", "\"/Applications/Xcode-beta.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator13.0.sdk\"" ]
The double quote\" is not correctly handled without shell: true close #55
\"
Thank you very much for your contribution!
This won't fix #55 alone, but combined with a fix of me (SDE was confused if Sources were mentioned in config-targets and Package.swift-sources).
-XSwiftc
will take double quote as the part of argument, but nodejs needsshell: true
to support it (https://github.com/nodejs/node/issues/10461)my
settings.json
needs to pass-target
to swift compiler byThe double quote
\"
is not correctly handled withoutshell: true
close #55