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

Describe Xcode integration ways #44

Closed
Alex009 opened this issue May 10, 2022 · 5 comments · Fixed by #62
Closed

Describe Xcode integration ways #44

Alex009 opened this issue May 10, 2022 · 5 comments · Fixed by #62
Labels
documentation Improvements or additions to documentation

Comments

@Alex009
Copy link
Member

Alex009 commented May 10, 2022

How to integrate without cocoapods, directly to project - https://github.com/Alex009/moko-kswift-usage-sample/tree/regular-framework
How to integrate with cocoapods - call kswift****podspec task, add generated podspec to project podfile (sample in moko-kswift use this way)

@Alex009 Alex009 added the documentation Improvements or additions to documentation label May 10, 2022
@alandoni
Copy link

is this working for you? I tried using the snippet in your example to copy the swift file to generated, but still can't use swift framework, actually, it doesn't even create a framework for swift, it's only one file...

@Alex009
Copy link
Member Author

Alex009 commented May 28, 2022

plugin not generates any framework. it generates swift files that you can compile with your project and kotlin framework. maybe links here help you

@alandoni
Copy link

well, it seems that with cocoapods it generates the library by itself, so I thought that it would generate the framework as well

ema987 added a commit to ema987/moko-kswift that referenced this issue Sep 22, 2022
Hello,

thanks for the very helpful project! I found Xcode integration information where all scattered through different issues, so I tried to recap them in the README.

Might close icerockdev#44
ema987 added a commit to ema987/moko-kswift that referenced this issue Sep 22, 2022
Hello,

thanks for the very helpful project! I found Xcode integration information where all scattered through different issues, so I tried to recap them in the README.

Might close icerockdev#44
ema987 added a commit to ema987/moko-kswift that referenced this issue Sep 22, 2022
@lammertw
Copy link

lammertw commented Oct 4, 2022

Is there any other way to integrate with Xcode without Cocoapods? If you copy it into Xcode, the file will be out of date whenever you change a sealed class. And my whole idea of using this project is not too miss any cases. And also creating an Xcode reference doesn't work since the file is put into a folder such as iosSimulatorArm64/debugFramework which changes based on current architecture and build configuration. I even tried to copy the file in an Xcode Run Script phase but that also doesn't work since the current architecture cannot be used during that (and is actually undefined). Or perhaps I am missing something?

@hoc081098
Copy link

Is there any other way to integrate with Xcode without Cocoapods? If you copy it into Xcode, the file will be out of date whenever you change a sealed class. And my whole idea of using this project is not too miss any cases. And also creating an Xcode reference doesn't work since the file is put into a folder such as iosSimulatorArm64/debugFramework which changes based on current architecture and build configuration. I even tried to copy the file in an Xcode Run Script phase but that also doesn't work since the current architecture cannot be used during that (and is actually undefined). Or perhaps I am missing something?

See my comment #55 (comment)

hbmartin pushed a commit to hbmartin/moko-kswift that referenced this issue Mar 5, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation Improvements or additions to documentation
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants