When I archive an iPhone project, it returns a failure:
Could not build module \"Foundation\".
However, when I debug on the iPho
Set to YES target's Allow Non-modular Includes in Framework Modules in Build Settings.
what you could try is :
yarn install
in root dircd ios
pod install
This happened to me after trying to build a third party library. It made a symbolic link in the iPhoneOS.sdk/usr/include to a non-existent header file in iPhoneSimulator.sdk/usr/include.
After deleting the bad symbolic link, Xcode started building correctly again.
Only reinstalling Xcode worked for me.