我在 Xcode 6 beta 5 中使用“调试选定 View ”功能,我在我的 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 命令可以正常运行。
最佳答案
无法添加评论,但是您是否添加了 QuartzCore 的框架?
关于ios - 在 Xcode 6 beta 5 中使用 'po' 命令调试选定 View ,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/25292259/