customerio / customerio-reactnative

MIT License
25 stars 11 forks source link

chore: fix apn sample app compiling locally #275

Closed levibostian closed 3 months ago

levibostian commented 3 months ago

This pull request addresses an issue encountered during the compilation process where the error message "Can't find the 'node' binary to build the React Native bundle." was displayed. The root cause of this issue is related to me using asdf for managing Node.js installations on the development machine, but you could also experience this if you use something like nvm.

To resolve this issue, I modified the xcode build phases in the APN app to match the FCM app. I also created a new RN app to confirm that the build phase in new apps matches the FCM app (it does).

I also added the xcprivacy file that RN generates for you. This file is also required to make the app compile locally.