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

[FR]: iOS Static Framework, use_frameworks! support #31

Closed galaxykhh closed 1 month ago

galaxykhh commented 1 month ago

Is there an existing issue for this?

Describe the problem

When using use_frameworks!, get a "RNCKakaoCore-Swift.h file not found" error during the build process.

Environment

Podfile

target 'picasso' do
  use_expo_modules!
  config = use_native_modules!

  # Firebase
  use_frameworks! :linkage => :static
  $RNFirebaseAsStaticFramework = true

  use_react_native!(

  ...

Build output

❌  (node_modules/@react-native-kakao/core/ios/RNCKakaoCore.mm:2:9)

  1 | #import "RNCKakaoCore.h"
> 2 | #import "RNCKakaoCore-Swift.h"
    |         ^ 'RNCKakaoCore-Swift.h' file not found
  3 | 
  4 | @implementation RNCKakaoCore
  5 | 

Describe the solution

Build success with use_frameworks!

Additional context

No response

Code of Conduct

mym0404 commented 1 month ago

Oh, pod with swift + objc always makes my working harder. I'll support static framework soon. thank you.

mym0404 commented 1 month ago

2.2.2 includes this patch.

galaxykhh commented 1 month ago

감사합니다~~~ Thanks !