0

在此处输入图像描述

此弹出窗口阻止其他脚本运行并打印以下内容:

仪器[2596]:kCGErrorInvalidConnection:CGSGetCurrentCursorLocation:无效连接仪器[2596]:kCGErrorFailure:设置断点@CGErrorBreakpoint()以在记录错误时捕获错误。

分段错误:11

我使用子进程(在 python 中)运行多个脚本来测试我的应用程序。

它是仪器中的错误吗?导致有时它只是打印以记录调试事件:“目标应用程序似乎已经死亡”,这不会停止脚本流。

有任何想法吗?

[编辑]

我昨天更新了命令行工具,现在似乎提供了更多详细信息:

[__NSCFType transport]: unrecognized selector sent to instance 0x7fa54ba61b50 

09:43:49.987 instruments[2544:1203]_stopScript: threw -[__NSCFType transport]: unrecognized selector sent to instance 0x7fa54ba61b50 

2012-06-15 09:43:49.988 instruments[2544:1203] * -[NSConditionLock dealloc]: lock (NSConditionLock: 0x7fa548dbd480> '(null)') deallocated while still in use 

2012-06-15 09:43:49.988 instruments[2544:1203] * Break on _NSLockError() to debug.
4

1 回答 1

1

您需要使用 iPhone 模拟器目录中的 .app 文件。

(或者)

使用标志执行 xcodebuildDSTROOT以存放应用程序并将其用于自动化。

xcodebuild -workspace ./ProjectWorkspace.xcworkspace -scheme "SchemeName" -sdk 
iphonesimulator5.1 -configuration "Debug" clean build install 
DSTROOT=~/Desktop/tmp/yourAppName.app
于 2012-06-27T17:18:50.240 回答