oney / RCTWebRTCDemo

MIT License
215 stars 141 forks source link

Unable to run the demo iOS app on device #43

Closed payalbaldota closed 7 years ago

payalbaldota commented 7 years ago

img_3249 I am getting above error when i run the demo iOS project. My configurations are: "react": "^15.4.2", "react-native": "^0.40.0", "react-native-webrtc": "git+https://git@github.com/oney/react-native-webrtc.git", "socket.io-client": "^1.3.7" I have already tried the solution mentioned here. https://github.com/facebook/react-native/issues/4968. but still the error persists

payalbaldota commented 7 years ago

Upgrading react-native version to 0.40.0 solved the issue. Also I changed the import statement for socket.io in main .js file. Following are the steps to solve the build errors.

Clone/Download repository
hit npm install on project root folder from terminal
hit react-native-git-upgrade on root folder
hit rm -rf node_modules
hit watchman watch-del-all
Change import statement "import io from 'socket.io-client/socket.io';" in main.js to "import io from 'socket.io-client/dist/socket.io';"
hit npm install --save on root folder from terminal

Now you can run the demo iOS project with few signing related changes. Forked working copy https://github.com/payalbaldota/RCTWebRTCDemo

zxcpoiu commented 7 years ago

thanks for sharing