mym0404 / react-native-kakao

🟡 Kakao SDK All-In-One Solution Supports Android, iOS, Web, New architecture, Old Architecture, Expo
https://rnkakao.dev
MIT License
36 stars 0 forks source link

Fabric Swift Compiler Hack with C++ intelop #28

Open mym0404 opened 1 month ago

mym0404 commented 1 month ago

It turns out that Swift compiler will compile(EmitSwiftModule command) whole files declared in source_files of podspec.

If any file import Fabric stuff is compiled by Swift, then it breaks compiling.

It is because of Swift Compiler Can't compile C++.

At a first glance, we doesn't need Swift at all for using KakaoMapsSDK. But If it is, we should hack podspec configuration like this way.

And more great example about it is react-native-vision-camera podspec.

He separated modules with subspec.

Yes, Fabric interoperability with Swift is not so good at now.

Creating a subspec for .h imports Fabric stuff and separating files will be a valid solution.

github-actions[bot] commented 3 weeks ago

This issue is stale because it has been open 30 days with no activity. Remove stale label or comment or this will be closed in 2 days.