Sunday, September 25, 2022
HomeiOS Developmentios - Hyperlink binary with library from podspec

ios – Hyperlink binary with library from podspec

I’m growing a React-Native library that incorporates native modules. This library will depend on react-native-webrtc and likewise has a local dependency on the WebRTC.xcframework that’s shipped with react-native-webrtc as a vendored_framework. Now to make this work I must hyperlink my library with WebRTC.xcframework. Nonetheless this has to occur within the podspec of my library as customers of my library shouldn’t hyperlink my shipped pod manually with the WebRTC framework, so utilizing the “Hyperlink Binary with Libraries” construct part is just not an possibility. Because the framework is just not being revealed with my library, utilizing the vendored_framework spec additionally would not work.

My podspec up to now tries this:

  s.pod_target_xcconfig = { 
    "FRAMEWORK_SEARCH_PATHS" =>  '"${PODS_ROOT}/../../node_modules/react-native-webrtc/apple"',
    "HEADER_SEARCH_PATHS" => '"{PODS_ROOT}/../../node_modules/react-native-webrtc/apple"',
    "OTHER_LDFLAGS" => '-framework WebRTC'

Nonetheless, the #import <WebRTC/WebRTC.h> in my code nonetheless would not work.
Grateful for any assist!



Please enter your comment!
Please enter your name here

Most Popular

Recent Comments