# iOS build fails with 'WebRTC/RTCMediaStreamTrack.h' file not found

**URL:** <https://react-native-webrtc.discourse.group/t/ios-build-fails-with-webrtc-rtcmediastreamtrack-h-file-not-found/1075>\
**Category:** iOS\
**Created:** [December 19, 2020, 9:43am UTC](https://react-native-webrtc.discourse.group/t/ios-build-fails-with-webrtc-rtcmediastreamtrack-h-file-not-found/1075 "2020-12-19T09:43:53Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![loredanacirstea](https://yyz2.discourse-cdn.com/free1/user_avatar/react-native-webrtc.discourse.group/loredanacirstea/32/332_2.png) [@loredanacirstea](https://react-native-webrtc.discourse.group/u/loredanacirstea)\
**Post date:** [December 19, 2020, 9:43am UTC](https://react-native-webrtc.discourse.group/t/ios-build-fails-with-webrtc-rtcmediastreamtrack-h-file-not-found/1075/1 "2020-12-19T09:43:53Z")

</div>

iOS build fails with `'WebRTC/RTCMediaStreamTrack.h' file not found`. Same for simulator or device.  
It has also failed with `'WebRTC/RTCCameraVideoCapturer.h' file not found`. And with `'WebRTC/RTCMediaStream.h' file not found` after a `pod update`.

I use:

- `platform :ios, '11.0'` in my Podfile
- `"react-native": "0.63.4"`
- CocoaPods 1.8.4

I did:

```auto
yarn add react-native-webrtc
npx pod-install

```

and it was successful: `Installing react-native-webrtc (1.87.2)`, but trying to run it on the iPhone 12 (14.2) Simulator, or on a device with iOS 12.4.9, results in the above error.

I then separately tried to build and run [https://github.com/react-native-webrtc/react-native-webrtc/tree/master/examples/GumTestApp](https://github.com/react-native-webrtc/react-native-webrtc/tree/master/examples/GumTestApp). Same error.  
Also tried ["Simplest example possible" updated to RN 0.63.3](https://react-native-webrtc.discourse.group/t/simplest-example-possible-updated-to-rn-0-63-3/1047) with the same error.

Any ideas?

---

<div class="post-metadata">

**Author:** ![loredanacirstea](https://yyz2.discourse-cdn.com/free1/user_avatar/react-native-webrtc.discourse.group/loredanacirstea/32/332_2.png) [@loredanacirstea](https://react-native-webrtc.discourse.group/u/loredanacirstea)\
**Post date:** [December 19, 2020, 3:48pm UTC](https://react-native-webrtc.discourse.group/t/ios-build-fails-with-webrtc-rtcmediastreamtrack-h-file-not-found/1075/2 "2020-12-19T15:48:57Z")

</div>

I totally misread the CocoaPods version on the installation notice ([https://github.com/react-native-webrtc/react-native-webrtc/blob/master/Documentation/iOSInstallation.md#ios-installation](https://github.com/react-native-webrtc/react-native-webrtc/blob/master/Documentation/iOSInstallation.md#ios-installation)) `IMPORTANT: Make sure you are using CocoaPods 1.10 or higher.` - it is in fact the **latest** version.

So updated to 1.10 and the build was successful.
