IB Designables:无法更新自动布局状态:无法从路径加载可设计项(null) [英] IB Designables: Failed to update auto layout status: Failed to load designables from path (null)

查看:1206
本文介绍了IB Designables:无法更新自动布局状态:无法从路径加载可设计项(null)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我看到了XIB的这个错误。但其他一切都会编译,这个错误似乎没有造成任何伤害。这是我需要担心的吗?这里有什么问题,我将如何解决这个问题?

I'm seeing this error for a XIB. But everything else compiles and there doesn't seem to be any harm done by this error. Is this something I need to worry about? What's the problem here and how would I go about fixing this?

更新:
我已将cocoapods更新到最新版本(0.36.3),虽然修复了一些编译的问题,但错误已经恢复,我现在看到一个额外的错误:

UPDATE: I've updated cocoapods to the latest version (0.36.3) and while that fixed the problem for a few compiles, the error has returned and I'm now seeing an additional error:

推荐答案

这是CocoaPods中的一个已知问题。
已在版本 0.36.1 中修复。
只需更新您的CocoaPods,然后在您的pod文件中添加特定代码行:
use_frameworks! platform:ios,'7.0'

It is a known issue in CocoaPods. It has been fixed in version 0.36.1. Just update your CocoaPods and then add specific line of code to your pod file: use_frameworks! after platform :ios, '7.0'

所以你的文件看起来像这样:

So your file will look like this:

platform :ios, '7.0'

use_frameworks!

/// here will be dependencies etc. ///

已更新:

updated:

一劳永逸地解决问题的完整步骤列表:

Full list of steps to get rid of the problem once and for all:


  • 关闭项目;

  • 打开终端应用程序;

  • 将CocoaPods本身更新为ver。 0.36.1 - 你已经做过这个 - 你可以跳过这一步;

  • 导航到终端中的项目文件夹;

  • 类型:pod update(不带引号);

  • 等待更新完成;

  • 在xCode中打开您的项目;

  • 清理项目;

  • 再次构建项目。

  • Close project;
  • open Terminal App;
  • Update CocoaPods itself to ver. 0.36.1 - you already did this one - you can skip the step this time;
  • navigate to your project folder in Terminal;
  • type: "pod update" (without quotes);
  • wait for updating to finish;
  • Open your project in xCode;
  • Clean project;
  • Build project again.

这篇关于IB Designables:无法更新自动布局状态:无法从路径加载可设计项(null)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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