Reset data on real device iOS 7/8?

I would like to have the app’s data reset between scenarios on the device, just like it does when running with the iOS simulator.

I don’t need the actual installation process (I can do it externally), but appium tries to reinstall when I set full reset to true.
If there is another way to reset the app’s data between scenarios, I’d love to use it. I assumed not because of this info message:
“info: [debug] On a real device; cannot clean device state”

However when Appium tries to install an app on a real device, fruitstrap crashes. (Whether the app was previously installed or not).

When testing a single time, without trying to reset and installing externally, everything works fine.

Appium Log:
info: [debug] App is an iOS bundle, will attempt to run as pre-existing
info: [debug] Creating new appium session 0c4cf6e7-0186-48ba-a8ff-eda64048c2e3
info: [debug] Removing any remaining instruments sockets
info: [debug] Cleaned up instruments socket /tmp/instruments_sock
info: [debug] Setting Xcode folder
info: [debug] Setting Xcode version

info: [debug] Setting iOS SDK Version

info: [debug] Getting sdk version from xcrun with a timeout

info: [debug] iOS SDK Version set to 8.1

info: [debug] Not checking whether simulator is available since we’re on a real device

info: [debug] Detecting automation tracetemplate

info: [debug] Not auto-detecting udid, running on sim
info: [debug] Could not parse plist file (as binary) at /Applications/Appium.app/Contents/Resources/node_modules/appium/com.trendy.icecreamfrog/en.lproj/Localizable.strings
info: Will try to parse the plist file as XML
info: [debug] Could not parse plist file (as XML) at /Applications/Appium.app/Contents/Resources/node_modules/appium/com.trendy.icecreamfrog/en.lproj/Localizable.strings
warn: Could not parse app Localizable.strings; assuming it doesn’t exist
info: [debug] Creating instruments
info: On some xcode 6 platforms, instruments-without-delay does not work. If you experience this, you will need to re-run appium with the --native-instruments-lib flag
info: [debug] Preparing uiauto bootstrap
info: [debug] Dynamic bootstrap dir: /Users/eladlebovitch/Library/Application Support/appium/bootstrap
info: [debug] Dynamic env: {“nodePath”:"/Applications/Appium.app/Contents/Resources/node/bin/node",“commandProxyClientPath”:"/Applications/Appium.app/Contents/Resources/node_modules/appium/node_modules/appium-uiauto/bin/command-proxy-client.js",“instrumentsSock”:"/tmp/instruments_sock",“interKeyDelay”:null,“justLoopInfinitely”:false,“autoAcceptAlerts”:false}

info: [debug] Dynamic bootstrap code: // This file is automatically generated. Do not manually modify!

info: [debug] Dynamic bootstrap path: /Users/eladlebovitch/Library/Application Support/appium/bootstrap/bootstrap-60f23230385b0cfa.js

info: [debug] Reusing dynamic bootstrap: /Users/eladlebovitch/Library/Application Support/appium/bootstrap/bootstrap-60f23230385b0cfa.js
info: [debug] Getting device string from opts: {“forceIphone”:false,“forceIpad”:false,“xcodeVersion”:“6.1”,“iOSSDKVersion”:“8.1”,“deviceName”:“iPhone 5”,“platformVersion”:“7.1”}
info: [debug] fixDevice is on
info: [debug] Final device string is: ‘iPhone 5 (7.1 Simulator)’
info: [debug] Not setting device type since we’re on a real device
info: [debug] Checking whether we need to set app preferences
info: [debug] Not setting iOS and app preferences since we’re on a real device
info: [debug] Running ios sim reset flow
info: [debug] Killing the simulator process
info: [debug] Killall iOS Simulator
info: [debug] Killing any other simulator daemons

info: [debug] On a real device; cannot clean device state
info: [debug] Not setting locale because we’re using a real device
info: [debug] No iOS / app preferences to set
info: [debug] Starting iOS device log capture via deviceconsole

info: [debug] Not pre-launching simulator

info: [debug] Creating iDevice object with udid b9c8f1f8573dd7b154d0c9efb99190d2783f9a05
info: [debug] Checking app install status using: /Applications/Appium.app/Contents/Resources/node_modules/appium/build/fruitstrap/fruitstrap isInstalled --id b9c8f1f8573dd7b154d0c9efb99190d2783f9a05 --bundle com.trendy.icecreamfrog

info: [debug] App is installed.

info: [debug] fullReset requested. Forcing app install.
info: [debug] Installing app using cmd: /Applications/Appium.app/Contents/Resources/node_modules/appium/build/fruitstrap/fruitstrap install --id b9c8f1f8573dd7b154d0c9efb99190d2783f9a05 --bundle “com.trendy.icecreamfrog”

info: [debug] Cleaning up appium session

error: Failed to start an Appium session, err was: Error: Unable to install [com.trendy.icecreamfrog] to device with id [b9c8f1f8573dd7b154d0c9efb99190d2783f9a05]. Error [Error: Command failed: Assertion failed: (access(app_path, F_OK) == 0), function main, file fruitstrap.c, line 718.
]

info: [debug] Error: Unable to install [com.trendy.icecreamfrog] to device with id [b9c8f1f8573dd7b154d0c9efb99190d2783f9a05]. Error [Error: Command failed: Assertion failed: (access(app_path, F_OK) == 0), function main, file fruitstrap.c, line 718.
]
at /Applications/Appium.app/Contents/Resources/node_modules/appium/lib/devices/common.js:147:10
at ChildProcess.exithandler (child_process.js:652:7)
at ChildProcess.emit (events.js:98:17)
at maybeClose (child_process.js:756:16)
at Socket. (child_process.js:969:11)
at Socket.emit (events.js:95:17)
at Pipe.close (net.js:465:12)
info: [debug] Responding to client with error: {“status”:33,“value”:{“message”:“A new session could not be created. (Original error: Unable to install [com.trendy.icecreamfrog] to device with id [b9c8f1f8573dd7b154d0c9efb99190d2783f9a05]. Error [Error: Command failed: Assertion failed: (access(app_path, F_OK) == 0), function main, file fruitstrap.c, line 718.\n])”,“origValue”:“Unable to install [com.trendy.icecreamfrog] to device with id [b9c8f1f8573dd7b154d0c9efb99190d2783f9a05]. Error [Error: Command failed: Assertion failed: (access(app_path, F_OK) == 0), function main, file fruitstrap.c, line 718.\n]”},“sessionId”:null}

info: <-- POST /wd/hub/session 500 1974.483 ms - 584

fruitstap log:

Process: fruitstrap [80772]
Path: /Applications/Appium.app/Contents/Resources/node_modules/appium/build/fruitstrap/fruitstrap
Identifier: fruitstrap
Version: 0
Code Type: X86-64 (Native)
Parent Process: node [80708]
Responsible: Appium [78739]
User ID: 501

Date/Time: 2014-11-17 18:37:39.822 +0200
OS Version: Mac OS X 10.10 (14A389)
Report Version: 11
Anonymous UUID: ADC44CBB-093B-0125-8CD2-60931CD3A0A7

Sleep/Wake UUID: 85A9E16D-A4FE-4868-8874-376E69F37FD2

Time Awake Since Boot: 39000 seconds
Time Since Wake: 7900 seconds

Crashed Thread: 0 Dispatch queue: com.apple.main-thread

Exception Type: EXC_CRASH (SIGABRT)
Exception Codes: 0x0000000000000000, 0x0000000000000000

Application Specific Information:
Assertion failed: (access(app_path, F_OK) == 0), function main, file fruitstrap.c, line 718.

Thread 0 Crashed:: Dispatch queue: com.apple.main-thread
0 libsystem_kernel.dylib 0x00007fff89cae282 __pthread_kill + 10
1 libsystem_c.dylib 0x00007fff8f041b73 abort + 129
2 libsystem_c.dylib 0x00007fff8f009c59 __assert_rtn + 321
3 fruitstrap 0x000000010df12301 main + 833
4 libdyld.dylib 0x00007fff8e5aa5c9 start + 1

Thread 0 crashed with X86 Thread State (64-bit):
rax: 0x0000000000000000 rbx: 0x0000000000000006 rcx: 0x00007fff51cf1998 rdx: 0x0000000000000000
rdi: 0x0000000000000713 rsi: 0x0000000000000006 rbp: 0x00007fff51cf19c0 rsp: 0x00007fff51cf1998
r8: 0x0000000000000000 r9: 0x00000000000002ce r10: 0x0000000008000000 r11: 0x0000000000000206
r12: 0x000000010df13f07 r13: 0x000000010e159000 r14: 0x00007fff7790b300 r15: 0x000000010df12e2c
rip: 0x00007fff89cae282 rfl: 0x0000000000000206 cr2: 0x00007fff77326fd8

Logical CPU: 0
Error Code: 0x02000148
Trap Number: 133

Binary Images:
0x10df0e000 - 0x10df13fff +fruitstrap (0) /Applications/Appium.app/Contents/Resources/node_modules/appium/build/fruitstrap/fruitstrap
0x10df18000 - 0x10e030fff com.apple.mobiledevice (757.1.5.0.2 - 757.1.5.0.2) <364C6894-934B-3844-A77F-7DFEC21F8AEE> /System/Library/PrivateFrameworks/MobileDevice.framework/Versions/A/MobileDevice
0x10e0ac000 - 0x10e0e1ff7 libssl.0.9.8.dylib (52) <70680606-475F-3C89-BB5F-E274253DC7C6> /usr/lib/libssl.0.9.8.dylib
0x7fff67340000 - 0x7fff67376837 dyld (353.2.1) <4696A982-1500-34EC-9777-1EF7A03E2659> /usr/lib/dyld
0x7fff85a7e000 - 0x7fff85a86ff7 com.apple.icloud.FindMyDevice (1.0 - 1) /System/Library/PrivateFrameworks/FindMyDevice.framework/Versions/A/FindMyDevice
0x7fff86008000 - 0x7fff86022ff7 liblzma.5.dylib (7) <1D03E875-A7C0-3028-814C-3C27F7B7C079> /usr/lib/liblzma.5.dylib
0x7fff860ad000 - 0x7fff860b1fff libpam.2.dylib (20) /usr/lib/libpam.2.dylib
0x7fff869f8000 - 0x7fff86a03fdb com.apple.AppleFSCompression (68.1.1 - 1.0) /System/Library/PrivateFrameworks/AppleFSCompression.framework/Versions/A/AppleFSCompression
0x7fff86a04000 - 0x7fff86adaff3 com.apple.DiskImagesFramework (10.10 - 389.1) <7DE2208C-BD55-390A-8167-4F9F11750C4B> /System/Library/PrivateFrameworks/DiskImages.framework/Versions/A/DiskImages
0x7fff86adb000 - 0x7fff86adffff libsystem_stats.dylib (163.1.4) <1DB04436-5974-3F16-86CC-5FF5F390339C> /usr/lib/system/libsystem_stats.dylib
0x7fff86f19000 - 0x7fff86f21fff libsystem_dnssd.dylib (561.1.1) <62B70ECA-E40D-3C63-896E-7F00EC386DDB> /usr/lib/system/libsystem_dnssd.dylib
0x7fff86f8a000 - 0x7fff870abfff com.apple.LaunchServices (644.10 - 644.10) <0B1C68BC-0AEB-38E2-ABC8-E92728FEC475> /System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/LaunchServices.framework/Versions/A/LaunchServices
0x7fff870ac000 - 0x7fff870e7fff com.apple.QD (301 - 301) /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/QD.framework/Versions/A/QD
0x7fff87153000 - 0x7fff87162fff com.apple.LangAnalysis (1.7.0 - 1.7.0) /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/LangAnalysis.framework/Versions/A/LangAnalysis
0x7fff87b1d000 - 0x7fff87b1dff7 liblaunch.dylib (559.1.22) <8A988924-8BE7-35FE-BF7D-322E90EFE49E> /usr/lib/system/liblaunch.dylib
0x7fff87b22000 - 0x7fff87b27ffb libheimdal-asn1.dylib (398.1.2) /usr/lib/libheimdal-asn1.dylib
0x7fff87b28000 - 0x7fff87b76fff libcurl.4.dylib (83.1.2) <337A1FF8-E8B1-3173-9F29-C0D4C851D8E1> /usr/lib/libcurl.4.dylib
0x7fff887f2000 - 0x7fff887f8ff7 libsystem_networkextension.dylib (167.1.10) <29AB225B-D7FB-30ED-9600-65D44B9A9442> /usr/lib/system/libsystem_networkextension.dylib
0x7fff887f9000 - 0x7fff887f9fff com.apple.Accelerate.vecLib (3.10 - vecLib 3.10) <01E92F9F-EF29-3745-8631-AEA692F7F29C> /System/Library/Frameworks/Accelerate.framework/Versions/A/Frameworks/vecLib.framework/Versions/A/vecLib
0x7fff888d8000 - 0x7fff888dafff libsystem_configuration.dylib (699.1.5) <9FBA1CE4-97D0-347E-A443-93ED94512E92> /usr/lib/system/libsystem_configuration.dylib
0x7fff88917000 - 0x7fff88b1aff3 com.apple.CFNetwork (720.0.9 - 720.0.9) <78EE1B88-394F-3BB8-93A6-E068990559EC> /System/Library/Frameworks/CFNetwork.framework/Versions/A/CFNetwork
0x7fff88b1b000 - 0x7fff88b1bfff com.apple.Accelerate (1.10 - Accelerate 1.10) /System/Library/Frameworks/Accelerate.framework/Versions/A/Accelerate
0x7fff88b36000 - 0x7fff88b5fffb libxslt.1.dylib (13) /usr/lib/libxslt.1.dylib
0x7fff88bd8000 - 0x7fff88c0aff3 com.apple.frameworks.CoreDaemon (1.3 - 1.3) /System/Library/PrivateFrameworks/CoreDaemon.framework/Versions/B/CoreDaemon
0x7fff88c0b000 - 0x7fff88c13ffb libcopyfile.dylib (118.1.2) <0C68D3A6-ACDD-3EF3-991A-CC82C32AB836> /usr/lib/system/libcopyfile.dylib
0x7fff88c14000 - 0x7fff88d06fff libxml2.2.dylib (26) /usr/lib/libxml2.2.dylib
0x7fff88d07000 - 0x7fff89114ff7 libLAPACK.dylib (1128) /System/Library/Frameworks/Accelerate.framework/Versions/A/Frameworks/vecLib.framework/Versions/A/libLAPACK.dylib
0x7fff89126000 - 0x7fff89126fff libOpenScriptingUtil.dylib (162) /usr/lib/libOpenScriptingUtil.dylib
0x7fff891c7000 - 0x7fff89258ff7 libCoreStorage.dylib (471) <5CA37ED3-320C-3469-B4D2-6F045AFE03A1> /usr/lib/libCoreStorage.dylib
0x7fff89259000 - 0x7fff89281fff libxpc.dylib (559.1.22) <9437C02E-A07B-38C8-91CB-299FAA63083D> /usr/lib/system/libxpc.dylib
0x7fff8929b000 - 0x7fff892a9ff7 com.apple.opengl (11.0.7 - 11.0.7) /System/Library/Frameworks/OpenGL.framework/Versions/A/OpenGL
0x7fff892c2000 - 0x7fff892d2ff7 libbsm.0.dylib (34) /usr/lib/libbsm.0.dylib
0x7fff892ea000 - 0x7fff8930efef libJPEG.dylib (1231) <3F87A0CA-14FA-3034-A332-DD57A092B08F> /System/Library/Frameworks/ImageIO.framework/Versions/A/Resources/libJPEG.dylib
0x7fff8943d000 - 0x7fff8948cff7 libstdc++.6.dylib (104.1) <803F6AC8-87DC-3E24-9E80-729B551F6FFF> /usr/lib/libstdc++.6.dylib
0x7fff894ab000 - 0x7fff894acfff com.apple.TrustEvaluationAgent (2.0 - 25) <2D61A2C3-C83E-3A3F-8EC1-736DBEC250AB> /System/Library/PrivateFrameworks/TrustEvaluationAgent.framework/Versions/A/TrustEvaluationAgent
0x7fff8965d000 - 0x7fff897ebfff libBLAS.dylib (1128) <497912C1-A98E-3281-BED7-E9C751552F61> /System/Library/Frameworks/Accelerate.framework/Versions/A/Frameworks/vecLib.framework/Versions/A/libBLAS.dylib
0x7fff89818000 - 0x7fff8981efff libsystem_trace.dylib (72.1.3) /usr/lib/system/libsystem_trace.dylib
0x7fff898b4000 - 0x7fff898c0ff7 com.apple.OpenDirectory (10.10 - 187) <1D0066FC-1DEB-381B-B15C-4C009E0DF850> /System/Library/Frameworks/OpenDirectory.framework/Versions/A/OpenDirectory
0x7fff8995b000 - 0x7fff89993ffb libsystem_network.dylib (411) /usr/lib/system/libsystem_network.dylib
0x7fff89c64000 - 0x7fff89c97ff7 com.apple.MediaKit (16 - 757) <345EDAFE-3E39-3B0F-8D84-54657EC4396D> /System/Library/PrivateFrameworks/MediaKit.framework/Versions/A/MediaKit
0x7fff89c98000 - 0x7fff89cb5fff libsystem_kernel.dylib (2782.1.97) <93E0E0A9-75B6-3904-BB4E-4BC7C05F4B6B> /usr/lib/system/libsystem_kernel.dylib
0x7fff89cdc000 - 0x7fff89ce0ff7 com.apple.TCC (1.0 - 1) /System/Library/PrivateFrameworks/TCC.framework/Versions/A/TCC
0x7fff89cea000 - 0x7fff89cf7ff7 libxar.1.dylib (254) /usr/lib/libxar.1.dylib
0x7fff89cf8000 - 0x7fff89d35ff3 com.apple.bom (14.0 - 193.6) <3CE5593D-DB28-3BFD-943E-6261006FA292> /System/Library/PrivateFrameworks/Bom.framework/Versions/A/Bom
0x7fff89f7e000 - 0x7fff89f86ff7 com.apple.AppleSRP (5.0 - 1) <01EC5144-D09A-3D6A-AE35-F6D48585F154> /System/Library/PrivateFrameworks/AppleSRP.framework/Versions/A/AppleSRP
0x7fff89f88000 - 0x7fff8a07cff7 libFontParser.dylib (134) <506126F8-FDCE-3DE1-9DCA-E07FE658B597> /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/ATS.framework/Versions/A/Resources/libFontParser.dylib
0x7fff8a07d000 - 0x7fff8a080fff com.apple.IOSurface (97 - 97) /System/Library/Frameworks/IOSurface.framework/Versions/A/IOSurface
0x7fff8a081000 - 0x7fff8a097ff7 libsystem_asl.dylib (267) /usr/lib/system/libsystem_asl.dylib
0x7fff8a098000 - 0x7fff8a0c3fff com.apple.DictionaryServices (1.2 - 229) <6789EC43-CADA-394D-8FE8-FC3A2DD136B9> /System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/DictionaryServices.framework/Versions/A/DictionaryServices
0x7fff8a0c4000 - 0x7fff8a138fff com.apple.ApplicationServices.ATS (360 - 375) <62828B40-231D-3F81-8067-1903143DCB6B> /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/ATS.framework/Versions/A/ATS
0x7fff8a283000 - 0x7fff8a284fff libSystem.B.dylib (1213) /usr/lib/libSystem.B.dylib
0x7fff8a2f3000 - 0x7fff8a323ffb com.apple.GSS (4.0 - 2.0) /System/Library/Frameworks/GSS.framework/Versions/A/GSS
0x7fff8a722000 - 0x7fff8a796ff3 com.apple.securityfoundation (6.0 - 55126) /System/Library/Frameworks/SecurityFoundation.framework/Versions/A/SecurityFoundation
0x7fff8a7bc000 - 0x7fff8a7c7fff libGL.dylib (11.0.7) /System/Library/Frameworks/OpenGL.framework/Versions/A/Libraries/libGL.dylib
0x7fff8a7cc000 - 0x7fff8a7d5fff libGFXShared.dylib (11.0.7) /System/Library/Frameworks/OpenGL.framework/Versions/A/Libraries/libGFXShared.dylib
0x7fff8a8df000 - 0x7fff8ab47ffb com.apple.security (7.0 - 57031.1.35) <96141D1F-614E-32C4-8AC2-F47481F23F43> /System/Library/Frameworks/Security.framework/Versions/A/Security
0x7fff8abb0000 - 0x7fff8abbaff7 com.apple.NetAuth (5.0 - 5.0) /System/Library/PrivateFrameworks/NetAuth.framework/Versions/A/NetAuth
0x7fff8abd5000 - 0x7fff8abd7fff com.apple.loginsupport (1.0 - 1) <35A2A071-606C-39A5-8C11-E4CAF98D934C> /System/Library/PrivateFrameworks/login.framework/Versions/A/Frameworks/loginsupport.framework/Versions/A/loginsupport
0x7fff8aefd000 - 0x7fff8af9cdf7 com.apple.AppleJPEG (1.0 - 1) <9BB3D7DF-630A-3E1C-A124-12D6C4D0DE70> /System/Library/PrivateFrameworks/AppleJPEG.framework/Versions/A/AppleJPEG
0x7fff8b23c000 - 0x7fff8b24dfff libcmph.dylib (1) <46EC3997-DB5E-38AE-BBBB-A035A54AD3C0> /usr/lib/libcmph.dylib
0x7fff8b24e000 - 0x7fff8b269ff7 libCRFSuite.dylib (34) /usr/lib/libCRFSuite.dylib
0x7fff8b74f000 - 0x7fff8b756ff7 libcompiler_rt.dylib (35) /usr/lib/system/libcompiler_rt.dylib
0x7fff8b757000 - 0x7fff8b7a3ff7 libcups.2.dylib (408) <9CECCDE3-51D7-3028-830C-F58BD36E3317> /usr/lib/libcups.2.dylib
0x7fff8b7a4000 - 0x7fff8b8eafef libsqlite3.dylib (168) <8B78BED1-7B9B-3943-80DC-0871015AEAC4> /usr/lib/libsqlite3.dylib
0x7fff8bc12000 - 0x7fff8bc5bff3 com.apple.HIServices (1.22 - 519) <59D78E07-C3F1-3272-88F1-876B836D5517> /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/HIServices.framework/Versions/A/HIServices
0x7fff8bdc2000 - 0x7fff8bdc4fff libRadiance.dylib (1231) /System/Library/Frameworks/ImageIO.framework/Versions/A/Resources/libRadiance.dylib
0x7fff8bdc5000 - 0x7fff8bdefff7 libdispatch.dylib (442.1.4) <502CF32B-669B-3709-8862-08188225E4F0> /usr/lib/system/libdispatch.dylib
0x7fff8bdf0000 - 0x7fff8be61ff7 com.apple.framework.IOKit (2.0.2 - 1050.1.21) /System/Library/Frameworks/IOKit.framework/Versions/A/IOKit
0x7fff8bf7b000 - 0x7fff8bf7ffff libCoreVMClient.dylib (79) /System/Library/Frameworks/OpenGL.framework/Versions/A/Libraries/libCoreVMClient.dylib
0x7fff8bffe000 - 0x7fff8c32cff7 com.apple.Foundation (6.9 - 1151.16) <18EDD673-A010-3E99-956E-DA594CE1FA80> /System/Library/Frameworks/Foundation.framework/Versions/C/Foundation
0x7fff8c34d000 - 0x7fff8c34dff7 libkeymgr.dylib (28) <77845842-DE70-3CC5-BD01-C3D14227CED5> /usr/lib/system/libkeymgr.dylib
0x7fff8c34e000 - 0x7fff8c35fff7 libz.1.dylib (55) <88C7C7DE-04B8-316F-8B74-ACD9F3DE1AA1> /usr/lib/libz.1.dylib
0x7fff8c360000 - 0x7fff8c3b4fff libc++.1.dylib (120) <1B9530FD-989B-3174-BB1C-BDC159501710> /usr/lib/libc++.1.dylib
0x7fff8c3b5000 - 0x7fff8c3d1ff7 libsystem_malloc.dylib (53.1.1) <19BCC257-5717-3502-A71F-95D65AFA861B> /usr/lib/system/libsystem_malloc.dylib
0x7fff8c4cc000 - 0x7fff8c4f7fff libc++abi.dylib (125) <88A22A0F-87C6-3002-BFBA-AC0F2808B8B9> /usr/lib/libc++abi.dylib
0x7fff8c4f8000 - 0x7fff8c5eaff7 libiconv.2.dylib (42) <2A06D02F-8B76-3864-8D96-64EF5B40BC6C> /usr/lib/libiconv.2.dylib
0x7fff8c5eb000 - 0x7fff8c5eefff com.apple.xpc.ServiceManagement (1.0 - 1) <7E9E6BB7-AEE7-3F59-BAC0-59EAF105D0C8> /System/Library/Frameworks/ServiceManagement.framework/Versions/A/ServiceManagement
0x7fff8c613000 - 0x7fff8c617ff7 libGIF.dylib (1231) /System/Library/Frameworks/ImageIO.framework/Versions/A/Resources/libGIF.dylib
0x7fff8c618000 - 0x7fff8c618fff com.apple.ApplicationServices (48 - 48) <5BF7910B-C328-3BF8-BA4F-CE52B574CE01> /System/Library/Frameworks/ApplicationServices.framework/Versions/A/ApplicationServices
0x7fff8c633000 - 0x7fff8c69aff7 com.apple.datadetectorscore (6.0 - 396.1) <5D348063-1528-3E2F-B587-9E82970506F9> /System/Library/PrivateFrameworks/DataDetectorsCore.framework/Versions/A/DataDetectorsCore
0x7fff8cf45000 - 0x7fff8d22cffb com.apple.CoreServices.CarbonCore (1108.1 - 1108.1) <55A16172-ACC0-38B7-8409-3CB92AF33973> /System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/CarbonCore.framework/Versions/A/CarbonCore
0x7fff8e53e000 - 0x7fff8e563fff libPng.dylib (1231) <759DF465-B08C-3E97-9A07-3CD447F84F78> /System/Library/Frameworks/ImageIO.framework/Versions/A/Resources/libPng.dylib
0x7fff8e594000 - 0x7fff8e5a6fff libsasl2.2.dylib (193) /usr/lib/libsasl2.2.dylib
0x7fff8e5a7000 - 0x7fff8e5aaff7 libdyld.dylib (353.2.1) <19FAF435-C165-3374-9DEF-D7BBA7D61DB6> /usr/lib/system/libdyld.dylib
0x7fff8e719000 - 0x7fff8e7c8fe7 libvMisc.dylib (512) /System/Library/Frameworks/Accelerate.framework/Versions/A/Frameworks/vecLib.framework/Versions/A/libvMisc.dylib
0x7fff8e7c9000 - 0x7fff8e7ceff7 libmacho.dylib (862) <126CA2ED-DE91-308F-8881-B9DAEC3C63B6> /usr/lib/system/libmacho.dylib
0x7fff8e9b9000 - 0x7fff8e9d2ff7 com.apple.CFOpenDirectory (10.10 - 187) <0ECA5D80-A045-3A2C-A60C-E1605F3AB6BD> /System/Library/Frameworks/OpenDirectory.framework/Versions/A/Frameworks/CFOpenDirectory.framework/Versions/A/CFOpenDirectory
0x7fff8ea06000 - 0x7fff8eb40ff7 com.apple.ImageIO.framework (3.3.0 - 1038) /System/Library/Frameworks/ImageIO.framework/Versions/A/ImageIO
0x7fff8eb41000 - 0x7fff8eb92ff7 com.apple.audio.CoreAudio (4.3.0 - 4.3.0) /System/Library/Frameworks/CoreAudio.framework/Versions/A/CoreAudio
0x7fff8eb93000 - 0x7fff8ebaaff7 libLinearAlgebra.dylib (1128) /System/Library/Frameworks/Accelerate.framework/Versions/A/Frameworks/vecLib.framework/Versions/A/libLinearAlgebra.dylib
0x7fff8ebba000 - 0x7fff8ec4fff7 com.apple.ColorSync (4.9.0 - 4.9.0) /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/ColorSync.framework/Versions/A/ColorSync
0x7fff8ec7e000 - 0x7fff8ecedfff com.apple.SearchKit (1.4.0 - 1.4.0) /System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/SearchKit.framework/Versions/A/SearchKit
0x7fff8ed52000 - 0x7fff8ed5bff7 libsystem_notify.dylib (133.1.1) <61147800-F320-3DAA-850C-BADF33855F29> /usr/lib/system/libsystem_notify.dylib
0x7fff8ee5d000 - 0x7fff8eecbffb com.apple.Heimdal (4.0 - 2.0) /System/Library/PrivateFrameworks/Heimdal.framework/Versions/A/Heimdal
0x7fff8efe3000 - 0x7fff8efe3fff com.apple.CoreServices (62 - 62) <9E4577CA-3FC3-300D-AB00-87ADBDDA2E37> /System/Library/Frameworks/CoreServices.framework/Versions/A/CoreServices
0x7fff8efe4000 - 0x7fff8f070fff libsystem_c.dylib (1044.1.2) /usr/lib/system/libsystem_c.dylib
0x7fff8f071000 - 0x7fff8f071ff7 libunc.dylib (29) <5676F7EA-C1DF-329F-B006-D2C3022B7D70> /usr/lib/system/libunc.dylib
0x7fff8f072000 - 0x7fff8f408fff com.apple.CoreFoundation (6.9 - 1151.16) /System/Library/Frameworks/CoreFoundation.framework/Versions/A/CoreFoundation
0x7fff8f409000 - 0x7fff8f44afff libGLU.dylib (11.0.7) <8037342E-1ECD-385F-B4C3-545CE97B76AE> /System/Library/Frameworks/OpenGL.framework/Versions/A/Libraries/libGLU.dylib
0x7fff8f4fb000 - 0x7fff8f6e0267 libobjc.A.dylib (646) <3B60CD90-74A2-3A5D-9686-B0772159792A> /usr/lib/libobjc.A.dylib
0x7fff8f8b0000 - 0x7fff8f8caff7 com.apple.AppleVPAFramework (1.0.30 - 1.0.30) /System/Library/PrivateFrameworks/AppleVPA.framework/Versions/A/AppleVPA
0x7fff8f919000 - 0x7fff8f91afff liblangid.dylib (117) /usr/lib/liblangid.dylib
0x7fff8f91b000 - 0x7fff8f9fefff libcrypto.0.9.8.dylib (52) <7208EEE2-C090-383E-AADD-7E1BD1321BEC> /usr/lib/libcrypto.0.9.8.dylib
0x7fff8fb6c000 - 0x7fff8fb77ff7 com.apple.speech.synthesis.framework (5.2.6 - 5.2.6) <9434AA45-B6BD-37F7-A866-172196A7F91B> /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/SpeechSynthesis.framework/Versions/A/SpeechSynthesis
0x7fff8fb78000 - 0x7fff8fc33ff7 com.apple.DiscRecording (9.0 - 9000.4.1) /System/Library/Frameworks/DiscRecording.framework/Versions/A/DiscRecording
0x7fff8fc34000 - 0x7fff8fc36ff7 libsystem_sandbox.dylib (358.1.1) /usr/lib/system/libsystem_sandbox.dylib
0x7fff8fd03000 - 0x7fff8fd20ffb libresolv.9.dylib (57) <26B38E61-298A-3C3A-82C1-3B5E98AD5E29> /usr/lib/libresolv.9.dylib
0x7fff8fd21000 - 0x7fff8fd51fff libsystem_m.dylib (3086.1) <1E12AB45-6D96-36D0-A226-F24D9FB0D9D6> /usr/lib/system/libsystem_m.dylib
0x7fff8fdfd000 - 0x7fff90130fff libmecabra.dylib (666) <2CE5540A-D412-3D53-9E11-86C24D61713B> /usr/lib/libmecabra.dylib
0x7fff903cd000 - 0x7fff903d4fff com.apple.NetFS (6.0 - 4.0) <1581D25F-CC07-39B0-90E8-5D4F3CF84EBA> /System/Library/Frameworks/NetFS.framework/Versions/A/NetFS
0x7fff908c2000 - 0x7fff908cdfff libcommonCrypto.dylib (60061) /usr/lib/system/libcommonCrypto.dylib
0x7fff908ce000 - 0x7fff908d6ffb com.apple.CoreServices.FSEvents (1210 - 1210) <782A9C69-7A45-31A7-8960-D08A36CBD0A7> /System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/FSEvents.framework/Versions/A/FSEvents
0x7fff908f3000 - 0x7fff908f4fff libDiagnosticMessagesClient.dylib (100) <2EE8E436-5CDC-34C5-9959-5BA218D507FB> /usr/lib/libDiagnosticMessagesClient.dylib
0x7fff9092e000 - 0x7fff90942ff7 com.apple.ProtectedCloudStorage (1.0 - 1) <52CFE68A-0663-3756-AB5B-B42195026052> /System/Library/PrivateFrameworks/ProtectedCloudStorage.framework/Versions/A/ProtectedCloudStorage
0x7fff90c5b000 - 0x7fff90c5dfff com.apple.EFILogin (2.0 - 2) /System/Library/PrivateFrameworks/EFILogin.framework/Versions/A/EFILogin
0x7fff9119e000 - 0x7fff912b0ff7 libvDSP.dylib (512) /System/Library/Frameworks/Accelerate.framework/Versions/A/Frameworks/vecLib.framework/Versions/A/libvDSP.dylib
0x7fff912fe000 - 0x7fff91318ff7 libextension.dylib (55) <17514AB2-C503-3D49-A725-EBC1140567A6> /usr/lib/libextension.dylib
0x7fff91322000 - 0x7fff91323fff libsystem_secinit.dylib (18) <581DAD0F-6B63-3A48-B63B-917AF799ABAA> /usr/lib/system/libsystem_secinit.dylib
0x7fff91324000 - 0x7fff91351fff com.apple.CoreVideo (1.8 - 145.1) <18DB07E0-B927-3260-A234-636F298D1917> /System/Library/Frameworks/CoreVideo.framework/Versions/A/CoreVideo
0x7fff91352000 - 0x7fff9135fff7 libbz2.1.0.dylib (36) <2DF83FBC-5C08-39E1-94F5-C28653791B5F> /usr/lib/libbz2.1.0.dylib
0x7fff91391000 - 0x7fff91399fff libsystem_platform.dylib (63) <64E34079-D712-3D66-9CE2-418624A5C040> /usr/lib/system/libsystem_platform.dylib
0x7fff9139a000 - 0x7fff91614fff com.apple.CoreData (110 - 526) /System/Library/Frameworks/CoreData.framework/Versions/A/CoreData
0x7fff91b29000 - 0x7fff91b6fffb libFontRegistry.dylib (134) <01B8034A-45FD-3360-A347-A1896F591363> /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/ATS.framework/Versions/A/Resources/libFontRegistry.dylib
0x7fff91bf7000 - 0x7fff91bf9fff libCVMSPluginSupport.dylib (11.0.7) <29D775BB-A11D-3140-A478-2A0DA1A87420> /System/Library/Frameworks/OpenGL.framework/Versions/A/Libraries/libCVMSPluginSupport.dylib
0x7fff91c17000 - 0x7fff91c20fff libsystem_pthread.dylib (105.1.4) <26B1897F-0CD3-30F3-B55A-37CB45062D73> /usr/lib/system/libsystem_pthread.dylib
0x7fff91c21000 - 0x7fff91c22ff7 libsystem_blocks.dylib (65) <9615D10A-FCA7-3BE4-AA1A-1B195DACE1A1> /usr/lib/system/libsystem_blocks.dylib
0x7fff91f8a000 - 0x7fff91f9bff7 libsystem_coretls.dylib (35.1.2) /usr/lib/system/libsystem_coretls.dylib
0x7fff92063000 - 0x7fff92153fef libJP2.dylib (1231) /System/Library/Frameworks/ImageIO.framework/Versions/A/Resources/libJP2.dylib
0x7fff92154000 - 0x7fff921f2fff com.apple.Metadata (10.7.0 - 916) /System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/Metadata.framework/Versions/A/Metadata
0x7fff921f3000 - 0x7fff921f4ffb libremovefile.dylib (35) <3485B5F4-6CE8-3C62-8DFD-8736ED6E8531> /usr/lib/system/libremovefile.dylib
0x7fff9229c000 - 0x7fff922c4fff libsystem_info.dylib (459) /usr/lib/system/libsystem_info.dylib
0x7fff92336000 - 0x7fff9233afff libcache.dylib (69) <45E9A2E7-99C4-36B2-BEE3-0C4E11614AD1> /usr/lib/system/libcache.dylib
0x7fff92346000 - 0x7fff9252bff3 libicucore.A.dylib (531.30) /usr/lib/libicucore.A.dylib
0x7fff9252c000 - 0x7fff9252eff7 libquarantine.dylib (76) /usr/lib/system/libquarantine.dylib
0x7fff9252f000 - 0x7fff9284afcf com.apple.vImage (8.0 - 8.0) <1183FE6A-FDB6-3B3B-928D-50C7909F2308> /System/Library/Frameworks/Accelerate.framework/Versions/A/Frameworks/vImage.framework/Versions/A/vImage
0x7fff931b7000 - 0x7fff931e2ff3 libarchive.2.dylib (30) <8CBB4416-EBE9-3574-8ADC-44655D245F39> /usr/lib/libarchive.2.dylib
0x7fff9326f000 - 0x7fff9327aff7 libkxld.dylib (2782.1.97) /usr/lib/system/libkxld.dylib
0x7fff9327b000 - 0x7fff933e6ff7 com.apple.audio.toolbox.AudioToolbox (1.12 - 1.12) <5C6DBEB4-F2EA-3262-B9FC-AFB89404C1DA> /System/Library/Frameworks/AudioToolbox.framework/Versions/A/AudioToolbox
0x7fff93454000 - 0x7fff9356cffb com.apple.CoreText (352.0 - 454.1) /System/Library/Frameworks/CoreText.framework/Versions/A/CoreText
0x7fff9356d000 - 0x7fff93572fff com.apple.DiskArbitration (2.6 - 2.6) <0DFF4D9B-2AC3-3B82-B5C5-30F4EFBD2DB9> /System/Library/Frameworks/DiskArbitration.framework/Versions/A/DiskArbitration
0x7fff93573000 - 0x7fff93578ff7 libunwind.dylib (35.3) /usr/lib/system/libunwind.dylib
0x7fff93fd3000 - 0x7fff9402efef libTIFF.dylib (1231) <115791FB-8C49-3410-AC23-56F4B1CFF124> /System/Library/Frameworks/ImageIO.framework/Versions/A/Resources/libTIFF.dylib
0x7fff9408a000 - 0x7fff940a4ff7 com.apple.Kerberos (3.0 - 1) <7760E0C2-A222-3709-B2A6-B692D900CEB1> /System/Library/Frameworks/Kerberos.framework/Versions/A/Kerberos
0x7fff940a5000 - 0x7fff940a7ff7 libutil.dylib (38) <471AD65E-B86E-3C4A-8ABD-B8665A2BCE3F> /usr/lib/libutil.dylib
0x7fff943c0000 - 0x7fff94400ff7 libGLImage.dylib (11.0.7) <7CBCEB4B-D22F-3116-8B28-D1C22D28C69D> /System/Library/Frameworks/OpenGL.framework/Versions/A/Libraries/libGLImage.dylib
0x7fff94410000 - 0x7fff94412ff7 libsystem_coreservices.dylib (9) <41B7C578-5A53-31C8-A96F-C73E030B0938> /usr/lib/system/libsystem_coreservices.dylib
0x7fff94488000 - 0x7fff944ceff7 libauto.dylib (186) /usr/lib/libauto.dylib
0x7fff944cf000 - 0x7fff94529ff7 com.apple.LanguageModeling (1.0 - 1) /System/Library/PrivateFrameworks/LanguageModeling.framework/Versions/A/LanguageModeling
0x7fff9452a000 - 0x7fff94589ff3 com.apple.AE (681 - 681) <7F544183-A515-31A8-B45F-89A167F56216> /System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/AE.framework/Versions/A/AE
0x7fff9458a000 - 0x7fff94593ff3 com.apple.CommonAuth (4.0 - 2.0) /System/Library/PrivateFrameworks/CommonAuth.framework/Versions/A/CommonAuth
0x7fff946a4000 - 0x7fff9471afe7 libcorecrypto.dylib (233.1.2) /usr/lib/system/libcorecrypto.dylib
0x7fff9480d000 - 0x7fff9485aff3 com.apple.print.framework.PrintCore (10.0 - 451) <3CA58254-D14F-3913-9DFB-CAC499570CC7> /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/PrintCore.framework/Versions/A/PrintCore
0x7fff9485b000 - 0x7fff948d3ff7 com.apple.SystemConfiguration (1.14 - 1.14) /System/Library/Frameworks/SystemConfiguration.framework/Versions/A/SystemConfiguration
0x7fff948d8000 - 0x7fff9490fffb com.apple.LDAPFramework (2.4.28 - 194.5) <4CFE8010-CE3F-35EC-90BA-529B74321029> /System/Library/Frameworks/LDAP.framework/Versions/A/LDAP
0x7fff94910000 - 0x7fff95149ff3 com.apple.CoreGraphics (1.600.0 - 772) <936D081F-37B3-3DA3-B725-118D0B07DDD2> /System/Library/Frameworks/CoreGraphics.framework/Versions/A/CoreGraphics
0x7fff95158000 - 0x7fff951d5fff com.apple.CoreServices.OSServices (640.3 - 640.3) <28445162-08E9-3E24-84E4-617CE5FE1367> /System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/OSServices.framework/Versions/A/OSServices
0x7fff95205000 - 0x7fff95210ff7 libcsfde.dylib (471) <797691FA-FC0A-3A95-B6E8-BDB75AEAEDFD> /usr/lib/libcsfde.dylib

External Modification Summary:
Calls made by other processes targeting this process:
task_for_pid: 0
thread_create: 0
thread_set_state: 0
Calls made by this process:
task_for_pid: 0
thread_create: 0
thread_set_state: 0
Calls made by all processes on this machine:
task_for_pid: 21872
thread_create: 1
thread_set_state: 0

VM Region Summary:
ReadOnly portion of Libraries: Total=144.6M resident=60.8M(42%) swapped_out_or_unallocated=83.8M(58%)
Writable regions: Total=17.8M written=416K(2%) resident=544K(3%) swapped_out=0K(0%) unallocated=17.2M(97%)

REGION TYPE VIRTUAL
=========== =======
Kernel Alloc Once 4K
MALLOC 9572K
MALLOC (admin) 32K
STACK GUARD 56.0M
Stack 8192K
VM_ALLOCATE 12K
__DATA 6792K
__LINKEDIT 70.5M
__TEXT 74.1M
__UNICODE 544K
shared memory 4K
=========== =======
TOTAL 225.2M

Model: MacBookPro11,3, BootROM MBP112.0138.B11, 4 processors, Intel Core i7, 2.3 GHz, 16 GB, SMC 2.19f12
Graphics: Intel Iris Pro, Intel Iris Pro, Built-In
Graphics: NVIDIA GeForce GT 750M, NVIDIA GeForce GT 750M, PCIe, 2048 MB
Memory Module: BANK 0/DIMM0, 8 GB, DDR3, 1600 MHz, 0x02FE, -
Memory Module: BANK 1/DIMM0, 8 GB, DDR3, 1600 MHz, 0x02FE, -
AirPort: spairport_wireless_card_type_airport_extreme (0x14E4, 0x134), Broadcom BCM43xx 1.0 (7.15.124.12.8)
Bluetooth: Version 4.3.0f10 14890, 3 services, 27 devices, 1 incoming serial ports
Network Service: Wi-Fi, AirPort, en0
PCI Card: Apple 57761-B0, Ethernet Controller, Thunderbolt 192,0,0
PCI Card: pci11c1,5901, IEEE 1394 Open HCI, Thunderbolt 191,0,0
PCI Card: pci12d8,400e, USB Open Host Controller, Thunderbolt 197,0,0
PCI Card: pci12d8,400e, USB Open Host Controller, Thunderbolt 197,0,1
PCI Card: pci12d8,400f, USB Enhanced Host Controller, Thunderbolt 197,0,2
Serial ATA Device: APPLE SSD SM0512F, 500.28 GB
USB Device: Hub
USB Device: Keyboard Hub
USB Device: Apple Keyboard
USB Device: FaceTime HD Camera (Display)
USB Device: Display Audio
USB Device: Apple Thunderbolt Display
USB Device: Internal Memory Card Reader
USB Device: iPhone
USB Device: Apple Internal Keyboard / Trackpad
USB Device: BRCM20702 Hub
USB Device: Bluetooth USB Host Controller
Thunderbolt Bus: MacBook Pro, Apple Inc., 17.1
Thunderbolt Device: Thunderbolt Display, Apple Inc., 1, 26.2

If anyone is interested… I finally resolved this with the following setup, it’s not as fast as just reseting the app data in the simulator, but it gets the job done… :
The code must run on the same machine that is connected to the device.

  1. Installed ideviceinstaller on the machine using brew install --HEAD ideviceinstaller
  2. Added install/uninstall logic to the @before method. Here is the java setup code I used:

private void setupAppOnDevice (){
Runtime rt = Runtime.getRuntime();

    try {

        // First, uninstall the app
        System.out.println("Uninstalling app from device: " + deviceUDID);
        String[] deleteCommands = new String[]{"/usr/local/bin/ideviceinstaller","-u",deviceUDID, "-U", appBundleID};
        Process deleteProcess = rt.exec(deleteCommands);
        deleteProcess.waitFor();

        // Now install it
        System.out.println("Installing " + ipaPath + " to device: " + deviceUDID);
        String[] installCommands = new String[]{"/usr/local/bin/ideviceinstaller","-u",deviceUDID, "-i", ipaPath};
        Process installProcess = rt.exec(installCommands);
        installProcess.waitFor();

    }catch (Exception e){

        System.out.println(e.toString());
    }
}
1 Like