Comments (3)
llvm adds absolute paths to files for debugging purposes. The kotlin compiler certainly does this, and as I understand it, so does Swift. That means, if you have a binary built on your machine, you can debug it. If you get a binary from another machine (with different source paths), you can't. There are ways to fix this, which we're looking into. Packaging and distributing binaries is a big internal focus right now (both cocoapods and SPM/xcframework).
What are you using for xcframework and SPM, by the way? Curious. I've gotten xcframeworks to build locally, but haven't tried SPM integration yet.
from xcode-kotlin.
Oh that makes sense. Thank you for the clarification. I'll be excited to see what's coming down the line!
I currently have a pretty simple gradle task that calls out to xcodebuild and passes in the framework and dsym files to generate the xcframework and puts it in a specific frameworks folder in the github repo. I then defined a top level Package.swift file that defines a binaryTarget. Then with our standard release flow/tagging it's available for our iOS project. My biggest frustration so far is how to switch from a remote package to using a local one (don't seem to have a good alternative for something like mavenLocal), but otherwise it is an extremely easy way to have a versioned package for iOS.
The project isn't open source, but if you would like to see examples of any of those steps I would be happy to post generic versions
from xcode-kotlin.
Closing this. We are internally building tools for publishing and additions to the Xcode plugin to allow debugging of code built on other machines (CI, etc). This will also include SPM publishing tools.
from xcode-kotlin.
Related Issues (20)
- Can set breakpoints in Xcode 15 , but unable to view variable content HOT 4
- Breakpoints became disable when we run the app HOT 4
- Support for multiproject Kotlin builds HOT 3
- Amend Sync paragraph with OS update case HOT 1
- How does the functionality of this plugin differ from the official KMM plugin? HOT 1
- Support tvos, watchos and macos
- Add "Building" and "Contributing" sections to the README
- Do not uninstall LLDB init when reinstalling
- Kotlin Code Completion in Xcode HOT 2
- xcode-kotlin install crash (XCode 13.4) HOT 7
- Step into Kotlin from Swift/Objc
- Can set breakpoints in release build in Xcode, but debug build doesn't see Kotlin files at all HOT 3
- Look at K/N lldb scripts to see if xcode-kotlin needs an update HOT 1
- Xcode breakpoints indicating that the code is not compiled HOT 5
- Is this project alive? HOT 1
- Kotlin 1.9.0-RC has a significantly updated lldb script HOT 3
- Xcode 15 beta has issues HOT 5
- Xcode 15 beta crashes on launch if Xcode-kotlin is installed HOT 18
- Xcode crashes on launch with xcode-kotlin installed after updating to macOS 13.5 HOT 3
- Build failure against gradle 8.3 HOT 1
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 xcode-kotlin.