操作无法完成.(CHSErrorDomain 错误 1300.) [英] The operation couldn’t be completed. (CHSErrorDomain error 1300.)

查看:44
本文介绍了操作无法完成.(CHSErrorDomain 错误 1300.)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试预览我在 Xcode 中制作的小部件,但出现以下错误:

I'm trying to preview my widget I've made in Xcode, and I'm getting the following error:

RemoteHumanReadableError

ProcessError: Failed to launch widget extension: The operation couldn’t be completed. (CHSErrorDomain error 1300.)

我在互联网上根本找不到与之相关的任何内容,所以我来到了这里.任何帮助将不胜感激.

I can't find anything on the internet related to it at all, so I've come here. Any help will be appreciated.

我试过重新启动、重新启动 &清理 Xcode 构建文件夹并使用 DevCleaner 清理所有 Xcode 缓存

I've tried rebooting, restarting & cleaning the Xcode build folder and using DevCleaner to clean ALL of Xcode's cache

更新:只有当我将 .previewContext(WidgetPreviewContext(family: .systemSmall)) 添加到我的预览时才会发生这种情况.如果我不这样做,它就会完美构建.

Update: This only will happen if I have my .previewContext(WidgetPreviewContext(family: .systemSmall)) added to my preview. If I don't, it builds perfectly.

推荐答案

我最终通过编辑构建阶段设置解决了这个问题.

I ended up solving this by editing my Build Phases settings.

您的项目 > >构建阶段 >嵌入应用扩展 >取消选中仅在安装时复制"

Your Project > <Widget Extension> > Build Phases > Embed App Extensions > Unchecked 'copy only when installing'

返回预览,加载没有问题.

Went back to previews and they loaded no trouble.

这篇关于操作无法完成.(CHSErrorDomain 错误 1300.)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆