olofd / react-native-photos-framework

A modern and comprehensive CameraRoll/iCloud-library-API for React Native 📸 📹
MIT License
220 stars 99 forks source link

TypeError: Cannot read property 'pbxprojPath' of null #82

Open ghost opened 6 years ago

ghost commented 6 years ago

I got this error during the installation

image

MaximeTroiano commented 6 years ago

Hi, have you been able to resolve this?

SMSwiti commented 6 years ago

any help here ?

dave4jr commented 6 years ago

Also getting this error.

dadisigursveinn commented 6 years ago

✋

MoezAbid commented 6 years ago

Try to run react-native upgrade

sethjdev commented 6 years ago

@MoezAbid thank you this worked. Do you know why this worked?

MoezAbid commented 6 years ago

@sethjdev Glad it worked for you. As you may have noticed, when you run that command, the ios and Android folders will appear in your project's root directory. So when you link the libraries to your project, they will have a "target" folder to be linked to whether it's the android folder or the ios folder. This is done to make adding features to your app easier because not all the apps use native capabilities. My answer might not be 100% correct, but I hope it gave you some insight on why that worked. Visit https://facebook.github.io/react-native/docs/linking-libraries-ios.html for more information.