Friday, September 23, 2022
HomeiOS Developmentios - Hyperlink binary with library from podspec

ios – Hyperlink binary with library from podspec

I’m creating a React-Native library that comprises native modules. This library relies 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 have to 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 section shouldn’t be an possibility. Because the framework shouldn’t be being printed with my library, utilizing the vendored_framework spec additionally does 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 does not work.
Grateful for any assist!



Please enter your comment!
Please enter your name here

Most Popular

Recent Comments