ios - 为 Mac Catalyst 构建时扩展不可用

标签 ios xcode mac-catalyst

目前,我正在尝试为 Mac Catalyst 构建一个 iOS 应用程序,不幸的是,在构建时,我针对某些不同的目标出现以下错误:

Building for Mac Catalyst, but the embedded app extension 'ShareExtension.appex' is building for iOS. You may need to configure 'ShareExtension.appex' to build for Mac Catalyst or restrict the platforms for which this app extension should be embedded in the target editor.

当我构建的平台为 MacOS 时,如何禁用共享扩展?

最佳答案

解决方案是转到您的应用程序:

Target > General > Frameworks, Libraries & Embedded Contant

然后,对于不支持的以下扩展,请仅选择“平台”iOSMacOS,它应如下所示:

完成后请务必清理并重建!

enter image description here

关于ios - 为 Mac Catalyst 构建时扩展不可用,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/59795971/

相关文章:

ios - 防止在移动 Safari/Webview 中的 touchstart 上出现灰色覆盖

ios - Swift 2 - 将数据从数组加载到 UITableView 中的单元格中

ios - 检测在手势识别器对象区域之外开始的滑动

ios - 推送通知在 macOS Catalyst 应用程序上不起作用

ios - 找不到用于 clang 构建 Mac Catalyst 的 UIKit/UIKit.h

ios - 游戏循环更新方法中使用的时间增量或时间戳是什么?

ios - 编译 OpenCV 时未找到 <tr1/random>

ios - 多目标 Xcode 7.3 iOS 9+ 应用程序启动屏幕 xib 问题

ios - Mac 催化剂和 iOS 13.5

ios - 如何深度复制 NSMutableURLRequest?