AgoraIO / agora-react-native-rtm

React Native around the Agora RTM SDKs for Android and iOS agora
https://www.agora.io/en/
MIT License
63 stars 36 forks source link

Compatibility with Swift dynamic frameworks #38

Open alan-ren opened 3 years ago

alan-ren commented 3 years ago

Will this library be updated so that it's compatible with CocoaPods projects that rely on use_frameworks!? Currently, it fails to pass the pod install step due to the following error:

[!] The 'Pods-Project' target has transitive dependencies that include statically linked binaries: 
(/SRCROOT/ios/Pods/AgoraRtm_iOS/AgoraRtmKit.framework)

In comparison, the react-native-agora library which exposes the RTC SDK works fine. Currently, the Agora developer blog recommends using the RTM SDK alongside the RTC SDK because the former supports methods to track chat room membership. However, this implementation is unfeasible on React Native for projects that rely on use_frameworks!. Since both projects seem to share maintainers, I figured I'd ask. Thanks for all your hard work!

LichKing-2234 commented 3 years ago

There are no differences between the podfile of react-native-agora and agora-react-native-rtm.

alan-ren commented 3 years ago

I think the issue is that AgoraRtmKit.framework is a transitive dependency for agora-react-native-rtm and not react-native-agora. However, feel free to close this issue — I ended up changing my project to avoid using use_frameworks! and thus am able to include statically linked binaries now with no problems.