我有一些我已经创建的自定义控件,我正在新项目中使用它们.但是,我在接口构建器中不断收到错误:

Failed to update auto layout status: Failed to load designables from path (null)

Failed to render instance of <control>: Failed to load designables from path (null)

I've tested out the controls in another project and they seem to render c或rectly in interface builder, but I cannot get them to w或k in the current project. What causes this err或 and how might I fix it?

提前谢谢...

推荐答案

我也有同样的问题.我用的是CocoaPods,有一个CocoaPods用的是可设计的.所以诀窍是添加"use_framework!"添加到Podfile.执行"pod update",重新打开Xcode项目,错误消息应该不会出现.

Ios相关问答推荐

在选项卡内列出导航内视图断开导航标题的动画

从后台线程调用DispatchObject的方法安全吗?

Xamarin Forms CustomPin iOS Render

如何防止UITest套件与Fastlane一起执行?

SwiftUI-工作表不显示导航标题

分配给指针会通过 class_addMethod 导致 EXC_BAD_ACCESS

当虚拟对象附加到其网格时,如何刷新创建 ARView 的 SwiftUI UIViewRepresentable?

保存和读取登录到 keys 串不工作 IOS swift

如何制作支持不同语言的iOS应用

如何在Combine发布者之间强制执行最小延迟

ITMS-90432:将应用上传到应用store 时出现问题

Flutter动画放大图

查找东南亚语言(泰语、高棉语、老挝语、缅甸语)中的单词边界

如何擦除 Swift 中的 Core Graphics Context 绘图?

iOS 16 堆栈视图中按钮的奇怪动画

实现一个将块用作回调的方法

如何 comments .plist 文件中的行?

警告:iPad:Icon-72.png:图标尺寸(0 x 0)

Swift:如何在设备旋转后刷新 UICollectionView 布局

错误 itms-90035 - Xcode