The following answers from this thread helped me resolve this issue
If you're using CocoaPods as well as WatchKit or a Today Extension, there is an open issue on the CocoaPods repo explaining what your problem might be.
The solution for me was to remove the
Copy Pod Resources phase from the WatchKit Extension and Today Extension targets under
Build Phases. The project compiled and archived as expected once I did this.
Hope this helps someone, this had me stumped for an entire day!
If you export the archive, open it and see
/urs/local/include in Products try this suggestion:
In each pod, under
Private Headers Folder Pathand
Public Headers Folder Pathis set to
/usr/local/include. If I clear them then I get a valid archive.
Worked for me after upgrading my React Native app to
7 and CocoaPods