Could not build Objective-C module 'EnxRTCiOS'

Hi,

We have developed EnxRTCiOS framework, which is working perfect when we import in any app target. But when I am same in my broadcast extension "SampleHandler" its giving error - "Could not build Objective-C module 'EnxRTCiOS'" and my framework "'RTCCameraVideoCapturer' is unavailable: not available on iOS (App Extension) - Camera not available in app extensions."

I have clean Xcode many time, deleted drive data many time, remove POD file and reinstall still not working. Kindly help me in this.
Add a Comment

Replies

Any Suggestion, Where is the issue. My framework working perfect in application , but when I am importing same in broadcast extension "SampleHandler" its giving error - "Could not build Objective-C module 'EnxRTCiOS'", I have also try with "BroadcastExtension-Bridging-Header.h" but no luck.

Any suggestion please.

Also when I am start broadcast through below code:-

let broadCast = RPSystemBroadcastPickerView(frame: CGRect(x: 20, y: 40, width: 51, height: 51))

            

            broadCast.preferredExtension = "Bundle Identifier for Broadcast Target"

            broadCast.isHidden = true

            broadCast.showsMicrophoneButton = false

            let buttonPress = NSSelectorFromString("buttonPressed:")

             if broadCast.responds(to: buttonPress) {

                broadCast.perform(buttonPress, with: nil)

            }

            self.view.addSubview(broadCast)

            self.view.bringSubviewToFront(broadCast)

            broadCast.center = self.view.center

I can see broadcast picker start broadcasting my iPhone screen, but i am not getting any event inside "RPBroadcastSampleHandler"
How do I get "CMSampleBuffer" from "RPBroadcastSampleHandler" to my application.

Any suggestion please.