question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

[iOS] latest version does not build Release: 'WebRTC/RTCMediaStream.h' file not found

See original GitHub issue

Description:

Cannot successfully build a RELEASE version of Jitsi Meet on iOS. Debug version builds without any issues. xCode returns ‘WebRTC/RTCMediaStream.h’ file not found in /jitsi-meet/node_modules/react-native-webrtc/ios/RCTWebRTC/WebRTCModule+Permissions.m

Steps to reproduce:

I followed the manual: https://jitsi.github.io/handbook/docs/dev-guide/dev-guide-mobile

  1. Cloned the most recent version of Jitsi meet (git clone https://github.com/jitsi/jitsi-meet.git)
  2. NPM install inside /jitsi-meet folder (successful)
  3. POD install inside /jitsi-meet/ios folder (successful)
  4. Started xCode and opened /jitsi-meet/ios/jitsi-meet.xcworkspace
  5. Build with iPhone 11 as simulator, successful. App loads on the iPhone 11 with Metro terminal in the background.
  6. xCode > Product > Scheme Edit Scheme > and set build to Release instead of Debug
Screenshot 2021-01-31 at 13 51 18
  1. Pressed the Build button with iPhone 11 as simulator
  2. xCode build fails with error ‘WebRTC/RTCMediaStream.h’ file not found
Screenshot 2021-01-31 at 13 56 49

Expected behavior:

It should run the RELEASE version of Jitsi-Meet on the xCode iPhone 11 simulator

Version information:

  • Jitsi Meet version: latest with git clone, jitsi-meet_5471
  • Operating System: macOS Cataline version 10.15.7
  • NPM version 7.4.3
  • POD version 1.10.1

NPM install log

> jitsi-meet@0.0.0 postinstall
> jetify

Jetifier found 1030 file(s) to forward-jetify. Using 8 workers...

added 2200 packages, and audited 2201 packages in 1m

21 low severity vulnerabilities

To address issues that do not require attention, run:
  npm audit fix

To address all issues (including breaking changes), run:
  npm audit fix --force

Run `npm audit` for details.

POD install log

Analyzing dependencies
Fetching podspec for `DoubleConversion` from `../node_modules/react-native/third-party-podspecs/DoubleConversion.podspec`
Fetching podspec for `Folly` from `../node_modules/react-native/third-party-podspecs/Folly.podspec`
Fetching podspec for `glog` from `../node_modules/react-native/third-party-podspecs/glog.podspec`
Downloading dependencies
Installing AppAuth (1.2.0)
Installing BVLinearGradient (2.5.6)
Installing CocoaLumberjack (3.5.3)
Installing DoubleConversion (1.1.6)
Installing FBLazyVector (0.61.5-jitsi.2)
Installing FBReactNativeSpec (0.61.5-jitsi.2)
Installing Firebase (6.33.0)
Installing FirebaseAnalytics (6.8.3)
Installing FirebaseCore (6.10.3)
Installing FirebaseCoreDiagnostics (1.7.0)
Installing FirebaseCrashlytics (4.6.1)
Installing FirebaseDynamicLinks (4.3.1)
Installing FirebaseInstallations (1.7.0)
Installing Folly (2018.10.22.00)
Installing GTMAppAuth (1.0.0)
Installing GTMSessionFetcher (1.2.2)
Installing GoogleAppMeasurement (6.8.3)
Installing GoogleDataTransport (7.4.0)
Installing GoogleSignIn (5.0.1)
Installing GoogleUtilities (6.7.2)
Installing ObjectiveDropboxOfficial (3.9.4)
Installing PromisesObjC (1.2.10)
Installing RCTRequired (0.61.5-jitsi.2)
Installing RCTTypeSafety (0.61.5-jitsi.2)
Installing RNCAsyncStorage (1.13.2)
Installing RNDefaultPreference (1.4.2)
Installing RNDeviceInfo (8.0.0)
Installing RNGoogleSignin (3.0.1)
Installing RNSVG (12.1.0)
Installing RNSound (0.11.0)
Installing RNWatch (0.4.3)
Installing React (0.61.5-jitsi.2)
Installing React-Core (0.61.5-jitsi.2)
Installing React-CoreModules (0.61.5-jitsi.2)
Installing React-RCTActionSheet (0.61.5-jitsi.2)
Installing React-RCTAnimation (0.61.5-jitsi.2)
Installing React-RCTBlob (0.61.5-jitsi.2)
Installing React-RCTImage (0.61.5-jitsi.2)
Installing React-RCTLinking (0.61.5-jitsi.2)
Installing React-RCTNetwork (0.61.5-jitsi.2)
Installing React-RCTSettings (0.61.5-jitsi.2)
Installing React-RCTText (0.61.5-jitsi.2)
Installing React-RCTVibration (0.61.5-jitsi.2)
Installing React-cxxreact (0.61.5-jitsi.2)
Installing React-jsi (0.61.5-jitsi.2)
Installing React-jsiexecutor (0.61.5-jitsi.2)
Installing React-jsinspector (0.61.5-jitsi.2)
Installing ReactCommon (0.61.5-jitsi.2)
Installing Yoga (1.14.0)
Installing boost-for-react-native (1.63.0)
Installing glog (0.3.5)
Installing nanopb (1.30906.0)
Installing react-native-background-timer (2.4.0)
Installing react-native-calendar-events (2.0.0)
Installing react-native-keep-awake (4.0.0)
Installing react-native-netinfo (4.1.5)
Installing react-native-splash-screen (3.2.0)
Installing react-native-webrtc (1.87.3)
Installing react-native-webview (11.0.2)
Generating Pods project
Integrating client projects
Pod installation complete! There are 47 dependencies from the Podfile and 59 total pods installed.

[!] The Podfile contains framework or static library targets (JitsiMeetSDK), for which the Podfile does not contain host targets (targets which embed the framework).
If this project is for doing framework development, you can ignore this message. Otherwise, add a target to the Podfile that embeds these frameworks to make this message go away (e.g. a test target).

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Reactions:4
  • Comments:6 (1 by maintainers)

github_iconTop GitHub Comments

6reactions
9amcodercommented, May 26, 2021

I had the same issue described above.

image

Xcode Version 12.2 (12B45b) iOS SDK 14.2 CocoaPods 1.10.x

0reactions
stale[bot]commented, Jan 9, 2022

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

Read more comments on GitHub >

github_iconTop Results From Across the Web

[iOS] latest version does not build Release: 'WebRTC ...
Debug version builds without any issues. xCode returns 'WebRTC/RTCMediaStream.h' file not found in /jitsi-meet/node_modules/react-native-webrtc/ ...
Read more >
WebRTC.h File Not Found - Stack Overflow
When I tried to create an Archive built, I got this error: WebRTC/WebRTC.h' file not found. Error log ... #if TARGET_OS_IPHONE #import ...
Read more >
new builds not show in app store c… | Apple Developer Forums
i had upload new build(version 6.8.9) with application loader about 20 hours ago, and loader show success, but the new build 6.9.9 not...
Read more >
Places SDK for iOS release notes - Google Developers
If your dependencies do not specify a version number, your IDE will load the newest SDK version and new builds of your app...
Read more >
Release notes for iOS - Zoom Support
This requires version 5.12.6 and not all apps will be immediately available, as app developers must meet some additional requirements set by Apple....
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found