olofd / react-native-photos-framework

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

Build fails using RN 0.45.1 #50

Closed rossmartin closed 7 years ago

rossmartin commented 7 years ago

I had an existing RN project using 0.43.3 and RNPhotosFramework worked fine. I updated to the latest (0.45.1) and now I cannot build my project unless I comment out line 3 on PHChangeObserver.m shown below.

I also created a new 0.45.1 project and it builds fine up until I add react-native-photos-framework and link it. Here are some screenshots of the issues -

screen shot 2017-06-19 at 6 51 18 pm image

jasongaare commented 7 years ago

Try deleting your DerivedData folder - worked for me. It was using an older version of React despite a fresh install.

rossmartin commented 7 years ago

@jasongaare thanks. With your suggestion I tried deleting DerivedData via File->Project Setting but I've had no luck.

I removed react-native-photos-framework and reinstalled it after deleting DerivedData completely but I still have issues. Any other suggestions?

olofd commented 7 years ago

Just did a fresh install on 0.47.2 and it worked. If you need support for older versions you will ave to fork or submit and PR. Reopen if this is still an issue!