Comments (6)
I was able to get this working in Xcode 12.5 using the latest OSS Toolchain. I just updated the README with details about how to do this with 72f1496.
from swiftsyntaxhighlighter.
i've found doc description:
https://github.com/apple/swift-syntax#embedding-swiftsyntax-in-an-application
from swiftsyntaxhighlighter.
Added SwiftSyntaxHighlighter using SPM in new macOS project and got error:
When do you get this error? Is it when you try building and running your package executable with Xcode?
from swiftsyntaxhighlighter.
Added SwiftSyntaxHighlighter using SPM in new macOS project and got error:
When do you get this error? Is it when you try building and running your package executable with Xcode?
yes, on running with Xcode.
from swiftsyntaxhighlighter.
@bonyadmitr Thanks for confirming. This looks like the same issue as SwiftDocOrg/SwiftSemantics#2:
Until a better solution is provided upstream, my suggestion would be to run
swift package generate-xcodeproj
to generate an Xcode project and thenxed <#Package#>.xcodeproj
to open the generated project directly.
from swiftsyntaxhighlighter.
@bonyadmitr Thanks for confirming. This looks like the same issue as SwiftDocOrg/SwiftSemantics#2:
Until a better solution is provided upstream, my suggestion would be to run
swift package generate-xcodeproj
to generate an Xcode project and thenxed <#Package#>.xcodeproj
to open the generated project directly.
yea, seems the same.
maybe it should be fixed by doc link:
https://github.com/apple/swift-syntax#embedding-swiftsyntax-in-an-application
i tried it but couldn't build it yourself from the Swift repository,
. i got build-parser-lib
script error.
and thanks for answer!
from swiftsyntaxhighlighter.
Related Issues (4)
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 swiftsyntaxhighlighter.