Coder Social home page Coder Social logo

Comments (5)

kpgalligan avatar kpgalligan commented on May 31, 2024

We had discussed this internally but holidays, etc. Anyway, the "plugin" uses lldb, and relies on Xcode to set breakpoints based on file line numbers. All of that is handled by lldb and whatever the Kotlin compiler writes out for lldb. That's a long way to say, if some breakpoints work and others don't, reinstalling the plugin won't do much. When you update Xcode, you need to refresh the uuid, but if some breakpoints are working, that shouldn't be an issue.

It looks like you're using Xcode 14.2 and judging by the date, I assume you're on Kotlin 1.7.x. 1.7.x only supports Xcode 13.x. We've run into issues with cinterop and Xcode 14.x on Kotlin 1.7.20. I don't know if that's contributing, but installing 13.4.1 and clean building everything (including the kotlin build dir) would be something to try. The Kotlin compiler uses the Xcode build tools, so it's important to stay with supported versions.

Outside of that, it looks like all of your code is built locally, but that's another potential cause of this. lldb writes absolute paths of source files in debug binaries, so if your binary is built on CI, or built locally but you're pointing to source in a different folder for some reason, breakpoints won't work. That's not a Kotlin-specific issue. Swift, etc, same.

Outside of those, there's not much we can do without a repro. As you've stated, this works for KaMP Kit and other projects we use it for.

from xcode-kotlin.

sean-howard avatar sean-howard commented on May 31, 2024

Ah okay thanks for detailed response @kpgalligan! Looks like this issue has coincided with an upgrade to Xcode 14.2 then. Sadly we're unable to revert to an older version of Xcode right now due to some Swift 5.7 language features we're leveraging.

Is it safe to assume that upgrading to Kotlin 1.8 would play friendly with Xcode 14.x?

from xcode-kotlin.

kpgalligan avatar kpgalligan commented on May 31, 2024

Well, "officially" 14.1, but I'm guessing it'll be generally OK with 14.2.

Source: https://kotlinlang.org/docs/whatsnew18.html#kotlin-native

from xcode-kotlin.

sean-howard avatar sean-howard commented on May 31, 2024

Closing until I'm able to test using Kotlin 1.8, thanks for the information!

from xcode-kotlin.

feiliu123 avatar feiliu123 commented on May 31, 2024

I have encountered the same problem, Xcode 14.2,mac M1,koltion 1.8.21, there is further progress on this problem, has it been solved? If possible, could you share your experience? Thanks a million

from xcode-kotlin.

Related Issues (20)

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.