I have cocoapods 1.12.1, xcode 14.3.1 and I still have the problem. The .sh file already looks like the accepted answer here, yet I still have the error.
My app is generated from react native. Any other ideas? (Cleaned build folder so many times already)