ios - 无法打开依赖文件 SwiftStdLibToolInputDependencies.dep
问题描述
我正在使用 Siri Shortcuts 开发 iOS objc 应用程序。我让一切正常工作,但是当我添加一个 Intents 扩展(以处理后台支持)并尝试运行该应用程序时,我得到了一个错误。
Intent Extension 的 IntentHandler 只有默认实现。
错误:
Exiting early, found no Swift version in executables.
error: unable to open dependencies file (/.../.../Library/Developer/Xcode/DerivedData/.../Build/Intermediates.noindex/App Name.build/Debug-iphoneos/ShortcutExtension.build/SwiftStdLibToolInputDependencies.dep)
在构建阶段:
扩展包含在目标依赖项中。
扩展包含在嵌入应用扩展中。
ps:清除DerivedData,清理构建,清理项目并重新启动不起作用。
我真的不知道如何解决这个问题。希望有人可以帮助我!
解决方案
自己找到了解决方案。
要解决此问题,您必须转到 Extension > Build Settings 并将 Always Embed Swift Standard 库设置为 NO。
然后清理项目并构建应用程序将使错误消失(至少对我来说是这样)。
推荐阅读
- c# - 将每个列单元格值与一行中的下一个列单元格值进行比较
- php - 是否有任何选项可以根据 if 条件使用 eloquent 与关系?
- c - 如何将存储在另一个指针指向的地址的值分配给指向指针的地址?
- css - 如何将按钮与页面底部对齐
- javascript - 如何从外部 url (json) 读取数据并在另一个 html 页面中使用 javascript 打印它?
- javascript - 在 JavaScript 中使用空值对 JSON 数组进行排序
- flutter - 如何在 Flutter 中弹出没有动画的屏幕
- python - ModuleNotFoundError:没有名为“bs4”的模块/没有名为“请求”的模块
- shell - 在多行中分隔 sh 命令
- flutter - 如何使用没有OTP的电话号码将用户注册到firebase?