oney / RCTWebRTCDemo

MIT License
215 stars 142 forks source link

Hi, I running into error for IOS build #45

Closed ankurToko closed 7 years ago

ankurToko commented 7 years ago

`2017-02-24

16:56:58.643363 RCTWebRTCDemo[385:25301] [] nw_connection_get_connected_socket_block_invoke 4 Connection has no connected handler 2017-02-24 16:56:58.650 [warn][tid:main][RCTEventEmitter.m:54] Sending websocketFailed with no listeners registered. 2017-02-24 16:56:58.650087 RCTWebRTCDemo[385:25260] Sending websocketFailed with no listeners registered. 2017-02-24 16:56:58.683 [info][tid:com.facebook.react.WebSocketModuleQueue][RCTSRWebSocket.m:555] SocketRocket: In debug mode. Allowing connection to any root cert 2017-02-24 16:56:58.683025 RCTWebRTCDemo[385:25336] SocketRocket: In debug mode. Allowing connection to any root cert 2017-02-24 16:56:58.690 [info][tid:main][RCTRootView.m:271] Running application RCTWebRTCDemo ({ initialProps = { }; rootTag = 1; }) 2017-02-24 16:56:58.689996 RCTWebRTCDemo[385:25260] Running application RCTWebRTCDemo ({ initialProps = { }; rootTag = 1; }) 2017-02-24 16:56:58.691 [info][tid:com.facebook.react.JavaScript] Running application "RCTWebRTCDemo" with appParams: {"rootTag":1,"initialProps":{}}. DEV === true, development-level warning are ON, performance optimizations are OFF 2017-02-24 16:56:58.690908 RCTWebRTCDemo[385:25328] Running application "RCTWebRTCDemo" with appParams: {"rootTag":1,"initialProps":{}}. DEV__ === true, development-level warning are ON, performance optimizations are OFF 2017-02-24 16:57:00.387 [info][tid:com.facebook.react.JavaScript] connect 2017-02-24 16:57:00.387905 RCTWebRTCDemo[385:25328] connect 2017-02-24 16:57:00.459498 RCTWebRTCDemo[385:25260] [MC] System group container for systemgroup.com.apple.configurationprofiles path is /private/var/containers/Shared/SystemGroup/systemgroup.com.apple.configurationprofiles 2017-02-24 16:57:00.460864 RCTWebRTCDemo[385:25260] [MC] Reading from public effective user settings. 2017-02-24 16:57:00.517 [info][tid:com.facebook.react.JavaScript] [ { id: 'com.apple.avfoundation.avcapturedevice.built-in_video:0', label: 'Back Camera', facing: 'back', kind: 'video' }, { id: 'com.apple.avfoundation.avcapturedevice.built-in_video:1', label: 'Front Camera', facing: 'front', kind: 'video' }, { id: 'com.apple.avfoundation.avcapturedevice.built-in_audio:0', label: 'iPad Microphone', facing: '', kind: 'audio' } ] 2017-02-24 16:57:00.517686 RCTWebRTCDemo[385:25328] [ { id: 'com.apple.avfoundation.avcapturedevice.built-in_video:0', label: 'Back Camera', facing: 'back', kind: 'video' }, { id: 'com.apple.avfoundation.avcapturedevice.built-in_video:1', label: 'Front Camera', facing: 'front', kind: 'video' }, { id: 'com.apple.avfoundation.avcapturedevice.built-in_audio:0', label: 'iPad Microphone', facing: '', kind: 'audio' } ] 2017-02-24 16:57:00.542124 RCTWebRTCDemo[385:25305] [access] This app has crashed because it attempted to access privacy-sensitive data without a usage description. The app's Info.plist must contain an NSMicrophoneUsageDescription key with a string value explaining to the user how the app uses this data.`

ankurToko commented 7 years ago

I think I got it. It is related to the permissions. I am new to IOS programming.

Cheers!

kim-jikyung commented 7 years ago

You should be able to solve this.

  1. Open your Project to Info.plist.
  2. And, add two items as shown below and rebuild. Privacy - Microphone Usage Description Privacy - Camera Usage Description

info_plist

Good luck:D

ankurToko commented 7 years ago

Hi @kim-jikyung . Yeah, I was able to fix that. Thanks :)