react-native-documents / document-picker

Document Picker for React Native
https://react-native-documents.github.io/
MIT License
1.35k stars 437 forks source link

Yarn link doesn't create release react-native-document-picker. Leads to Library not found in release builds #540

Closed sdb1228 closed 2 years ago

sdb1228 commented 2 years ago

Bug report

Summary

This is a follow up to https://github.com/rnmods/react-native-document-picker/issues/534 This is still an issue for release builds. when you npm install the library it creates a folder /Users/<Your-User>/Library/Developer/Xcode/DerivedData/<Project-Hash>/Build/Products/Debug-iphoneos/react-native-document-picker/ but the release builds pull the libraries from /Users/<your-User>/Library/Developer/Xcode/DerivedData/<Project-Hash>/Build/Products/Release-iphoneos.

Reproducible sample code

Steps to reproduce

  1. Create Fresh react native project
  2. install react-native-document-picker
  3. Try to run an archive or release build

Describe what you expected to happen:

  1. Build for release should come back successfully

Environment info

library version: 8.0.0

iOS any

sdb1228 commented 2 years ago

I was mistaken the lack of copying of resources was due to my upgrade in ios versions not due to the library. Carry on.

sdb1228 commented 2 years ago

For more details go here https://github.com/facebook/react-native/issues/30335