# Not working on m1 mac iOS simulator?

**URL:** <https://react-native-webrtc.discourse.group/t/not-working-on-m1-mac-ios-simulator/1347>\
**Category:** Help\
**Created:** [September 4, 2021, 11:56pm UTC](https://react-native-webrtc.discourse.group/t/not-working-on-m1-mac-ios-simulator/1347 "2021-09-04T23:56:55Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![goulash](https://yyz2.discourse-cdn.com/free1/user_avatar/react-native-webrtc.discourse.group/goulash/32/505_2.png) [@goulash](https://react-native-webrtc.discourse.group/u/goulash)\
**Post date:** [September 4, 2021, 11:56pm UTC](https://react-native-webrtc.discourse.group/t/not-working-on-m1-mac-ios-simulator/1347/1 "2021-09-04T23:56:55Z")

</div>

Is it possible to use this library on the iOS simulator for m1 macs? Installing this library works fine using `pod install`, but trying to build the app in xcode shows errors like:

```auto
.../react-native-webrtc/ios/RCTWebRTC/WebRTCModule.h:15:9: 'WebRTC/RTCMediaStream.h' file not found

```

Building for a physical iOS device works fine.

If this is not supported currently, is it possible to add support?

Thanks in advance!

---

<div class="post-metadata">

**Author:** ![irohitb](https://yyz2.discourse-cdn.com/free1/user_avatar/react-native-webrtc.discourse.group/irohitb/32/438_2.png) [@irohitb](https://react-native-webrtc.discourse.group/u/irohitb)\
**Post date:** [September 9, 2021, 7:34pm UTC](https://react-native-webrtc.discourse.group/t/not-working-on-m1-mac-ios-simulator/1347/2 "2021-09-09T19:34:56Z")

</div>

Hey,

I use the library on m1 mac.

Can you confirm that you are building by turning the rosetta on? (Xcode → Open using Rosetta)

Second, remove pods, podfile.lock and then do pod `arch -x86_64 pod install`

let me know if this doesn’t work

---

<div class="post-metadata">

**Author:** ![goulash](https://yyz2.discourse-cdn.com/free1/user_avatar/react-native-webrtc.discourse.group/goulash/32/505_2.png) [@goulash](https://react-native-webrtc.discourse.group/u/goulash)\
**Post date:** [September 9, 2021, 8:20pm UTC](https://react-native-webrtc.discourse.group/t/not-working-on-m1-mac-ios-simulator/1347/3 "2021-09-09T20:20:41Z")

</div>

Hey thank you Rohit! I was able to get it working using Rosetta. 🙂

Is there a way to get this working natively on m1 / would it be possible to add support?
