My macbook pro has M2 chip. I had macOS Monterey and xcode 13.4.1 in my system and my iOS project was building and running properly. Then I updated macOS to Ventura 13.0 and xcode to 14.0.1. At first, I got errors regarding bitcode. I set "Enable Bitcode" option to "no" in all targets, including pod targets. Now I'm getting many other errors.
One error I noticed as something important is regarding bridging header.
:0: error: failed to emit precompiled header '/Library/Developer/Xcode/DerivedData/project-aizvv/Build/Intermediates.noindex/PrecompiledHeaders/project-Bridging-Header-swift_37CYKUIBOA6M1-clang_3BJMUTP0IBSLM.pch' for bridging header '/myPath/project-Bridging-Header.h'
Another error is from GoogleSignIn. GoogleSignIn was installed through cocoapod. And in xcode 14, it is asking to specify development team in signing section.
could not build module 'GoogleSignIn' 1. while building module 'GoogleSignIn' imported from /myPath/project-Bridging-Header.h:6:
There are many such errors from different pods.
could not build module 'GTMSessionFetcher'
redefinition of 'GTMSessionFetcherError'
And on top of all the errors,
error build: too many errors emitted, stopping now
Why all these issues are coming after macOS and xcode update? Is there any way I can continue development without disabling bitcode?
This issue was because of GoogleSignIn pod that I used in my project. GoogleSignIn pod's latest version was giving errors. But once I used version 6.2.2, project is building successfully. @Jason Thanks for your help.