I was having this issue with one of my Cocoapods libraries after updating to Xcode 14.3. I was able to get around the error by adding use_frameworks! to my Podfile.
Topic:
App & System Services
SubTopic:
Core OS
Tags: