xcode - 催化剂:UIKit 中缺少 UIReferenceLibraryViewController?
问题描述
在我的 iOS 应用程序中,我使用 UIReferenceLibraryViewController (UIKit) 在字典中查找单词。工作正常。在为 Catalyst 构建时,我得到:
Showing Recent Issues
Undefined symbol: _OBJC_CLASS_$_UIReferenceLibraryViewController
Undefined symbols for architecture x86_64:
"_OBJC_CLASS_$_UIReferenceLibraryViewController", referenced from:
objc-class-ref in WoordvinderViewController.o
objc-class-ref in AnagramViewController.o
ld: symbol(s) not found for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
UIReferenceLibraryViewController 只是从 UIKit 框架中丢失,还是我错过了什么?
Apple 的代码级别支持告诉我报告错误...嗯.. 在错误报告器中进行反馈,但错误报告未得到确认。Xcode 12 beta 没有修复它,Xcode 12 也没有发布。
解决方案
尽管文档说它受支持,但该类尚未为 Catalyst 实现。我什至检查了 UIKit 的 macOS 端口,/System/iOSSupport/System/Library/PrivateFrameworks/UIKitCore.framework/Versions/A/UIKitCore
发现没有引用该类。
我想目前唯一的解决方案是创建一个 macOS 插件,通过调用NSView.showDefinition()
.
推荐阅读
- monitoring - Zabbix:“内存使用”和“内存利用率”之间的区别
- node.js - Nest 无法解析 ....的依赖关系。请确保索引 [0] 处的参数 .. 在
- sql-server - 什么可能导致 SSMS 查询反映不正确的数据,我们如何解决问题?
- java - STS JVM 参数中有时允许使用空格
- c++ - 我可以通过不正确地使用指针分配和值更改来破坏我的操作系统吗?
- r - 有条件地舍入大于一定数量小数的值
- c# - 使用 c# wpf 获取网络上所有连接设备的操作系统名称
- python - 2D XArray cfgrib 引擎索引
- c++ - 为什么我无法从文件中读取对象?
- python - 我该如何解决这个问题:ValueError invalid literal for int() with base 10: ''? Python