目前,我正在尝试为 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
然后,对于不支持的以下扩展,请仅选择“平台”iOS
或 MacOS
,它应如下所示:
完成后请务必清理并重建!
关于ios - 为 Mac Catalyst 构建时扩展不可用,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/59795971/