Skip to content

Instantly share code, notes, and snippets.

2014-01-16 14:22:47.760 WatchNotifications[49218:507] >> __CFNotification 0x7fc202100000 {name = com.apple.iphonesimulator.ready; userInfo = {
supportedArches = (
0,
"x86_64",
i386
);
supportedDeviceInfos = (
iPhone,
"iPhone Retina (3.5-inch)",
"iPhone Retina (4-inch)",
$ /Users/fpotter/Library/Developer/Xcode/DerivedData/xctool-coaqfpnavanndzgumiqgxmfwpkjd/Build/Products/Debug/bin/xctool -project xctool/xctool-tests/TestData/TestProject-Library/TestProject-Library.xcodeproj -scheme TestProject-Library -sdk iphonesimulator test -showTasks
================================================================================
LAUNCHING TASK (finding Xcode path via xcode-select --print-path):
/usr/bin/xcode-select \
--print-path
================================================================================
================================================================================
$ /Users/fpotter/Library/Developer/Xcode/DerivedData/xctool-coaqfpnavanndzfpotter-mbp:xctool fpotter$ /Users/fpotter/Library/Developer/Xcode/DerivedData/xctool-coaqfpnafpotter-mbp:xctool fpotter$ /Users/fpottfpofpofpotter-mbp:xctool fpotter$ /Users/fpotter/Library/Developer/Xcode/DerivedData/xctool-coaqfpnavanndzgumiqgxmfwpkjd/Build/Products/Debug/bin/xctool -project xctool/xctool-tests/TestData/TestProject-Library/TestProject-Library.xcodeproj -scheme TestProject-Library -sdk iphonesimulator test -showCommands
================================================================================
LAUNCHING COMMAND (finding Xcode path via xcode-select --print-path):
/usr/bin/xcode-select \
--print-path
================================================================================
================================================================================
name = com.apple.iphonesimulator.startSession; userInfo = {
applicationArguments = (
"-NSTreatUnknownArgumentsAsOpen",
NO,
"-ApplePersistenceIgnoreState",
YES,
"-XCTest",
All,
"/Users/fpotter/Library/Developer/Xcode/DerivedData/MyNewApp-evmsrdiuslovudazszcvkywfesit/Build/Products/Debug-iphonesimulator/MyNewAppTests.xctest"
);
$ xctool -project XctoolFailureExample.xcodeproj -scheme XctoolFailureExample -sdk iphonesimulator test
[Info] Loading settings for scheme 'XctoolFailureExample' ... (472 ms)
=== TEST ===
xcodebuild build build
XctoolFailureExample / XctoolFailureExample (Debug)
✓ Check dependencies (19 ms)
✓ Precompile XctoolFailureExample-Prefix.pch (429 ms)
✓ Compile XctoolFailureExample.m (18 ms)
$ ./xctool.sh -project xctool/xctool-tests/TestData/TestProject-Library/TestProject-Library.xcodeproj -scheme TestProject-Library test -sdk iphonesimulator
=== BUILDING XCTOOL ===
/Users/fpotter/xctool/build.sh
✓ Built xctool (1000 ms)
[Info] Loading settings for scheme 'TestProject-Library' ... (462 ms)
=== TEST ===
Exception: *** Collection <__NSArrayM: 0x40098e8c0> was mutated while being enumerated.
Stack:
0 0x00007fff81091aee __exceptionPreprocess (in CoreFoundation)
1 0x00007fff8b3f63f0 objc_exception_throw (in libobjc.A.dylib)
2 0x00007fff81125cb8 __NSFastEnumerationMutationHandler (in CoreFoundation)
3 0x000000010452b21d +[PBXBuildRule systemBuildRulesForToolchains:platform:buildPhaseIdentifier:] (in DevToolsCore)
4 0x0000000104634af7 +[XCBuildRuleDGSnapshot systemBuildRulesForToolchains:platform:] (in DevToolsCore)
5 0x000000010461dd52 -[XCTargetDGSnapshot initWithInformationFromTarget:withBuildParameters:] (in DevToolsCore)
6 0x0000000104620a7d -[XCNativeTargetDGSnapshot initWithInformationFromTarget:withBuildParameters:] (in DevToolsCore)
7 0x000000010450c633 -[PBXTarget createDependencyGraphSnapshotWithTargetBuildParameters:] (in DevToolsCore)
// Example output for xctool with `-reporter raw`.
//
// NOTE: Each dictionary you see below would normally be on a single line.
// e.g. --
// {"title":"UICatalog", "event":"begin-xcodebuild", "command":"build"}
//
{
"title" : "UICatalog",
"event" : "begin-xcodebuild",
"command" : "build"
@fpotter
fpotter / dtrace_rubymotion_repl
Created May 6, 2012 22:06
DTrace script to observe UNIX socket traffic to/from a RubyMotion app
#!/usr/bin/env dtrace -s
/*
* DTrace script to observe UNIX socket reads/writes for RubyMotion apps running
* in the iOS Simulator.
*
* Usage: sudo dtrace_rubymotion_repl <pid of running RubyMotion iOS app>
*
*/
syscall::sendto:entry
<iframe src="//www.pieceable.com/view/embed/v2/p/a23faec69edeb82fc838d85192f00422c11a4baa" width="390" height="550" frameBorder="0"></iframe>