hi, this work for me
add to info.plist :
privacy - Photo Library Usage Description
privacy - Camera Library Usage Description
The problem was in the security of the xcode that does not allow the access to the camera and gallery if you do not specify so that you use them