Open mym0404 opened 1 month ago
It turns out that Swift compiler will compile(EmitSwiftModule command) whole files declared in source_files of podspec.
EmitSwiftModule
source_files
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.
KakaoMapsSDK
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.
.h
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.
It turns out that Swift compiler will compile(
EmitSwiftModule
command) whole files declared insource_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.