olofd/react-native-photos-framework

TypeError: Cannot read property 'pbxprojPath' of null

tchret opened this issue ยท 7 comments

I got this error during the installation

image

Hi, have you been able to resolve this?

any help here ?

Also getting this error.

โœ‹

Try to run react-native upgrade

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

@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.