ios - Swift Package Manager and IBDesignable Error
问题描述
I'm working on adding Swift Package Manager support to an existing iOS library that I have that already supports CocoaPods and Carthage. I was able to able to setup the Package.swift
file and create the package and push those changes to the repo. It compiles fine in Xcode and builds fine on the command line.
The issue I'm having is when I add it as a dependency to a test application, the IBDesignable stuff won't compile, and errors with a Build Failed
flag. The message states:
The built product "" does not exist in the file system. Make sure your built products contains either an application or a framework product.
I have tried cleaning, deleting derived data, and removing/re-adding the package to the project.
My Package.swift
file is as follows:
// swift-tools-version:5.3
import PackageDescription
let package = Package(
name: "package_name",
platforms: [
.iOS(.v11)
],
products: [
.library(
name: "package_name",
targets: ["target_name"])
],
targets: [
.target(
name: "target_name"
)
])
Is there something I'm missing or a setting that needs to be set in order for it to function properly?
Thanks in advance for all the help.
解决方案
推荐阅读
- javascript - React Native:[未处理的承诺拒绝:错误:无效的钩子调用。Hooks 只能在函数组件的主体内部调用
- regex - 正则表达式多个字符串公司缩写
- c - copy_from_user()/__get_user() 在 ioctl 内工作正常,但在 ioctl 外失败
- django - 如何在 django api 中添加计算正确答案的功能?
- firebase - Flutter 和 Firebase 通过查看器 id(与 uid 相同)过滤器将产品附加到用户
- python - python错误消息AttributeError:'Bird'对象没有属性'unsetflapped'
- c# - 如何在 uwp 中使用自动换行优化长文本的渲染性能?
- android - 因为 Aysnc 任务被贬低了我可以使用什么替代方案以及如何使用
- android - 尝试 Bitmap 转换 PDF 文件并尝试将文件保存在 android 的下载目录中
- firebase - 如何使用 Firebase 在 Facebook/Instagram 中的帖子上实现“喜欢/不喜欢”?