Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add sources as folder reference instead of using xcodeSync Gradle plugin #16

Open
remysanfeliu opened this issue Feb 28, 2020 · 3 comments
Assignees

Comments

@remysanfeliu
Copy link

Using the xcode gradle sync plugin add the Kotlin source files in groups inside the XCode project. This forces the script to be run everytime a Kotlin source file is created or moved.

Instead, I suggest creating Folder References on the XCode project pointing to the commonMain and iOSMain in the Kotlin project. This allows debugging in the same way in Xcode, and ensures that the sources are always being up to date.

Special notice : be careful not to add the folder reference to the target, otherwise all your Kotlin sources will be exported in your .ipa bundle.

@kpgalligan
Copy link
Collaborator

This is great. I figured there was possibly another way to do this, but hadn't researched it enough apparently.

@AlexTrotsenko
Copy link

I see, that this issue is still open. What kind of work is still expected on xcode-kotlin plugin side?

@kpgalligan kpgalligan self-assigned this Mar 20, 2022
@kpgalligan
Copy link
Collaborator

Assigning to me. I want to make sure the docs describe how to do this accurately, then will close.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants