error: unknown type name 'tls_protocol_version_t' after upgrading to xcode 11.1 & macOS 10.15 Catalina

Updated my macOS to 10.15 Catalina & also updated xcode to 11.1. Now on building my code I get error "error: unknown type name 'tls_protocol_version_t'". I cleaned the build folder, reset xcode, cleared xcode cache. Nothing seems to solve the issue.

Complete error log is as follows -

In file included from /My Repo/MyApp/trunk/App/App-Prefix.pch:8:

In file included from /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/Cocoa.framework/Headers/Cocoa.h:12:

In file included from /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/Foundation.framework/Headers/Foundation.h:128:

/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/Foundation.framework/Headers/NSURLSession.h:744:11: error: unknown type name 'tls_protocol_version_t'

@property tls_protocol_version_t TLSMinimumSupportedProtocolVersion API_AVAILABLE(macos(10.15), ios(13.0), watchos(6.0), tvos(13.0));

Hi all,

I am also facing similiar kind of issue when creating build or pushing to device using xcode 11.
Any help?
Logs


In file included from /Users/mkumar/Desktop/repo/expriements/sdk/sdk53/TestApp/platforms/ios/CordovaLib/CordovaLib_Prefix.pch:21:

In file included from /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS13.0.sdk/System/Library/Frameworks/Foundation.framework/Headers/Foundation.h:6:

In file included from /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS13.0.sdk/System/Library/Frameworks/CoreFoundation.framework/Headers/CoreFoundation.h:44:

/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS13.0.sdk/System/Library/Frameworks/CoreFoundation.framework/Headers/CFArray.h:49:1: error: unknown type name 'CF_IMPLICIT_BRIDGING_ENABLED'

CF_IMPLICIT_BRIDGING_ENABLED

^

/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS13.0.sdk/System/Library/Frameworks/CoreFoundation.framework/Headers/CFArray.h:50:18: error: expected ';' after top level declarator

CF_EXTERN_C_BEGIN

^

/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS13.0.sdk/System/Library/Frameworks/CoreFoundation.framework/Headers/CFArray.h:74:47: error: unknown type name 'CFAllocatorRef'

typedef const void * (*CFArrayRetainCallBack)(CFAllocatorRef allocator, const void *value);

^

/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS13.0.sdk/System/Library/Frameworks/CoreFoundation.framework/Headers/CFArray.h:75:41: error: unknown type name 'CFAllocatorRef'

typedef void (*CFArrayReleaseCallBack)(CFAllocatorRef allocator, const void *value);

^


Hi all,
I was able to fix it when upgrading myxcode to 11.1 and Mac update, I have also removed ~/.cocoapods folder. Not sure what make it working but it's working now.

Were you ever able to solve this issue? I'm finding the same thing on Xcode 13.2.1, macOS Montery, building for iOS 14.1.

error: unknown type name 'tls_protocol_version_t' after upgrading to xcode 11.1 & macOS 10.15 Catalina
 
 
Q