I am trying to build a Framework and make it run in iOS Simulator. It builds fine with No Custom Frameworks added to it. I am adding a Framework via CocoaPods and it starts throwing Semantic Issues and Parse Issues errors related to Foundation Framework. No idea about all the errors coming.
Attaching the Image with the errors for reference.
/Applications/Xcode_11.5.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator13.5.sdk/System/Library/Frameworks/Foundation.framework/Headers/NSZone.h:11:1: Unknown type name 'NS_ASSUME_NONNULL_BEGIN'
/Applications/Xcode_11.5.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator13.5.sdk/System/Library/Frameworks/Foundation.framework/Headers/NSZone.h:15:1: Unknown type name 'FOUNDATION_EXPORT'
/Applications/Xcode_11.5.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator13.5.sdk/System/Library/Frameworks/Foundation.framework/Headers/NSZone.h:17:38: Unknown type name 'NSZone'
Everything works fine in the device but my primary objective is to build the Framework and make it run in iOS Simulator. I am using Xcode 11.5 and iOS 13.5. Got struck on this badly. Any help would be appreciated.