【发布时间】:2020-02-06 18:52:45
【问题描述】:
将我的 macOS 更新到 10.15 Catalina 并将 xcode 更新到 11.1。现在在构建我的代码时,我收到错误“错误:未知类型名称'tls_protocol_version_t'”。我清理了构建文件夹,重置了 xcode,清除了 xcode 缓存。似乎没有什么能解决问题。
完整的错误日志如下-
在 /My Repo/MyApp/trunk/App/App-Prefix.pch:8 中包含的文件中:
在 /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/Cocoa.framework/Headers/Cocoa.h 中包含的文件中: 12:
在 /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:错误:未知类型名称'tls_protocol_version_t'
@property tls_protocol_version_t TLSMinimumSupportedProtocolVersion API_AVAILABLE(macos(10.15), ios(13.0), watchos(6.0), tvos(13.0));
【问题讨论】:
-
我也试过 xcode 11。同样的问题发生了。恢复到 xcode 10.3,一切正常。
标签: xcode macos xcode11 macos-catalina