【发布时间】:2014-10-07 04:08:49
【问题描述】:
我正在使用 Xcode 6 beta 5 中的“调试选定视图”功能,我在 prepareForInterfaceBuilder() 函数中设置了一个断点。
但是当我尝试使用 po 命令时,它给了我一个错误:
(lldb) po almondImage
error: Error in auto-import:
Failed to load linked library swiftQuartzCore of module TrailMixKit - errors:
Looking for "@rpath/libswiftQuartzCore.dylib", error: not a string object
这是我文件的前几行(包括导入):
//
// TrailMixIngredientImageView.swift
// Trailmix
import UIKit
import QuartzCore
如果我在模拟器中运行应用程序时设置断点,po 命令可以正常工作。
【问题讨论】:
-
尝试打印 almondImage。顺便说一句,almondImage 是什么类型的对象?
-
@artud2000 显然,这是一个杏仁的图像。 :P
-
使用“打印”时出现同样的错误。如果我尝试打印任何其他变量,包括 String 对象,我也会得到同样的错误。还要澄清一下,almondImage 是一些杏仁的 JPG 图像(可能应该重命名为“almondsImage”)
-
我遇到了这个问题,无论对象类型如何,我尝试使用的任何 po 都会发生这种情况。
-
在 Xcode 6.0.1 中仍然看到这个问题