using patch package will solve the issue, in my case I just add
"postinstall": "patch-package" in package.json script object. and and then run npm i patch-package
After the install finish I create the build and upload it to testflight and it works.