I have a shared source set for objc code but it do...
# multiplatform
m
I have a shared source set for objc code but it doesn't seem to work because it doesn't pick up dependencies on IntelliJ:
Copy code
objcMain <- iosArm64Main
         <- iosX64Main
         <- macosX64Main
IntelliJ can't even resolve
platform.darwin.*
. Gradle builds work fine though. How can I have shared code for all objc-based platforms with dependencies intact in IntelliJ? EDIT: As a workaround I'll use the shared source set
objcMain
only for managing dependencies and without source files and instead symlink each platform-specific sources folder to the shared sources folder.
not nice but works 😕 in this case with only iOS sources, no macOS sources
d
IntelliJ can't handle platform specific shared source sets yet. This is actively being worked on.
🎉 1
To solve this, you can have gradle adjust the source set config for the IDE then use your normal config when publishing.
m
Thanks for the info, looking forward to it! 🙏
s