Giter VIP home page Giter VIP logo

Comments (6)

mattt avatar mattt commented on June 26, 2024 1

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.

bonyadmitr avatar bonyadmitr commented on June 26, 2024

i've found doc description:
https://github.com/apple/swift-syntax#embedding-swiftsyntax-in-an-application

from swiftsyntaxhighlighter.

mattt avatar mattt commented on June 26, 2024

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.

bonyadmitr avatar bonyadmitr commented on June 26, 2024

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.

mattt avatar mattt commented on June 26, 2024

@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 then xed <#Package#>.xcodeproj to open the generated project directly.

from swiftsyntaxhighlighter.

bonyadmitr avatar bonyadmitr commented on June 26, 2024

@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 then xed <#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 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.