简体   繁体   English

在Interface Builder中显示自定义视图

[英]Display Custom View in Interface Builder

I have an objective-c custom view, I marked it as IB_DESIGNABLE and I got error in the storyboard: 我有一个objective-c自定义视图,我将其标记为IB_DESIGNABLE并且我在故事板中出错:

MainStoryboard_iPhone.storyboard: error: IB Designables: Failed to update auto layout status: dlopen(example.app, 1): no suitable image found. MainStoryboard_iPhone.storyboard:错误:IB Designables:无法更新自动布局状态:dlopen(example.app,1):找不到合适的图像。 Did find: example.app: mach-o, but wrong architecture 找到了:example.app:mach-o,但错误的架构

and another one: 另一个:

MainStoryboard_iPhone.storyboard: error: IB Designables: Failed to render instance of CustomView: dlopen(example.app, 1): no suitable image found. MainStoryboard_iPhone.storyboard:错误:IB Designables:无法呈现CustomView的实例:dlopen(example.app,1):找不到合适的图像。 Did find: example.app: mach-o, but wrong architecture 找到了:example.app:mach-o,但错误的架构

I am working on Xcode 6.1 beta. 我正在研究Xcode 6.1 beta。 I tried to make a framework as described in the WWDC session 411, but I got same error. 我尝试按照WWDC会话411中的描述制作一个框架,但是我得到了同样的错误。

any idea, what's missing? 任何想法,缺少什么?

Valid Architectures: arm64 有效架构:arm64

you should add arm64 to Valid Architectures. 你应该将arm64添加到Valid Architectures。 Designables need it! Designables需要它!

将arm64添加到构建设置 - >体系结构,清理和删除派生数据对我有用。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM