wix/AppleSimulatorUtils

applesimutils byName hangs on circle ci

OrLevy23 opened this issue · 32 comments

Description
I've just encountered that when using applesimutils --byName 'iPad Pro (12.9-inch) (2nd generation)'... that the script hangs and does not finish (neither success nor failure).
issue only happen to me on CI (circle ci) and does not recunsruct on local machine, note that i've entered CI machine on ssh and verified that the device by name exist.
when switching to applesimutils --byId issue does not recunstruct

Environment

  • Xcode version: 10.2

Does applesimutils --list work as expected on the machine?

@LeoNatan yes, and the device appear on the list

Could you please run the following command in CI:

lldb -o run $(which applesimutils) -- --list --byName 'iPad Pro (12.9-inch) (2nd generation)'

Put the arguments you use in your command. Let it hang, hit CTRL+C and type bt. Post the output here.

Thanks

Seeing this same problem for the last few days on Travis trying to run tests with Detox.

Please perform the above request and provide the info. It will help me debug this. Thanks

It looks to be solved for me in CI when I updated detox and applesimutils to the latest versions.

getting a lot of NameError: name 'run_one_line' is not defined Traceback (most recent call last): File "<string>", line 1, in <module>

@OrLevy23 Once it seems hanged in lldb (process not ending), hit CTRL+C to interrupt and type bt.

  {
    "availabilityError" : "",
    "os" : {
      "bundlePath" : "\/Applications\/Xcode-10.2.app\/Contents\/Developer\/Platforms\/iPhoneOS.platform\/Developer\/Library\/CoreSimulator\/Profiles\/Runtimes\/iOS.simruntime",
      "availabilityError" : "",
      "buildversion" : "16E226",
      "availability" : "(available)",
      "isAvailable" : true,
      "identifier" : "com.apple.CoreSimulator.SimRuntime.iOS-12-2",
      "version" : "12.2",
      "name" : "iOS 12.2"
    },
    "availability" : "(available)",
    "deviceType" : {
      "name" : "iPad Pro (12.9-inch) (2nd generation)",
      "bundlePath" : "\/Applications\/Xcode-10.2.app\/Contents\/Developer\/Platforms\/iPhoneOS.platform\/Developer\/Library\/CoreSimulator\/Profiles\/DeviceTypes\/iPad Pro (12.9-inch) (2nd generation).simdevicetype",
      "identifier" : "com.apple.CoreSimulator.SimDeviceType.iPad-Pro--12-9-inch---2nd-generation-"
    },
    "udid" : "18DC2BCC-1363-49B4-946C-07F8666B1DCC",
    "isAvailable" : true,
    "state" : "Shutdown",
    "name" : "iPad Pro (12.9-inch) (2nd generation)"
  },
  {
    "availabilityError" : "",
    "os" : {
      "bundlePath" : "\/Library\/Developer\/CoreSimulator\/Profiles\/Runtimes\/iOS 11.4.simruntime",
      "availabilityError" : "",
      "buildversion" : "15F79",
      "availability" : "(available)",
      "isAvailable" : true,
      "identifier" : "com.apple.CoreSimulator.SimRuntime.iOS-11-4",
      "version" : "11.4",
      "name" : "iOS 11.4"
    },
    "availability" : "(available)",
    "deviceType" : {
      "name" : "iPad Pro (12.9-inch) (2nd generation)",
      "bundlePath" : "\/Applications\/Xcode-10.2.app\/Contents\/Developer\/Platforms\/iPhoneOS.platform\/Developer\/Library\/CoreSimulator\/Profiles\/DeviceTypes\/iPad Pro (12.9-inch) (2nd generation).simdevicetype",
      "identifier" : "com.apple.CoreSimulator.SimDeviceType.iPad-Pro--12-9-inch---2nd-generation-"
    },
    "udid" : "C74F5911-8BAA-45BF-A6FB-8F73F7391306",
    "isAvailable" : true,
    "state" : "Shutdown",
    "name" : "iPad Pro (12.9-inch) (2nd generation)"
  },
  {
    "availabilityError" : "",
    "os" : {
      "bundlePath" : "\/Library\/Developer\/CoreSimulator\/Profiles\/Runtimes\/iOS 10.3.simruntime",
      "availabilityError" : "",
      "buildversion" : "14E8301",
      "availability" : "(available)",
      "isAvailable" : true,
      "identifier" : "com.apple.CoreSimulator.SimRuntime.iOS-10-3",
      "version" : "10.3.1",
      "name" : "iOS 10.3"
    },
    "availability" : "(available)",
    "deviceType" : {
      "name" : "iPad Pro (12.9-inch) (2nd generation)",
      "bundlePath" : "\/Applications\/Xcode-10.2.app\/Contents\/Developer\/Platforms\/iPhoneOS.platform\/Developer\/Library\/CoreSimulator\/Profiles\/DeviceTypes\/iPad Pro (12.9-inch) (2nd generation).simdevicetype",
      "identifier" : "com.apple.CoreSimulator.SimDeviceType.iPad-Pro--12-9-inch---2nd-generation-"
    },
    "udid" : "3E3951B1-BC1F-4C55-A39F-79EF4DEDD5CD",
    "isAvailable" : true,
    "state" : "Booted",
    "name" : "iPad Pro (12.9-inch) (2nd generation)"
  }
]
Process 35566 exited with status = 0 (0x00000000)

Process 35566 launched: '/usr/local/bin/applesimutils' (x86_64)
(lldb) bt
error: invalid thread```

That's no hang, it succeeded in returning a list with all devices named iPad Pro (12.9-inch) (2nd generation). As you can see,

Process 35566 exited with status = 0

i know, but the entire script does hang
applesimutils --byName 'iPad Pro (12.9-inch) (2nd generation)' --bundle com.tapingo.kiosk --setPermissions notifications=YES this is what i ran

OK, so pass those parameters to lldb, instead of --list.

lldb -o run $(which applesimutils) -- --byName 'iPad Pro (12.9-inch) (2nd generation)' --bundle com.tapingo.kiosk --setPermissions notifications=YES

it seems to be stuck at 2019-06-19 06:11:19.757733-0700 simctl[32268:50720] MessageTracer: Falling back to default whitelist Traceback (most recent call last): File "<string>", line 1, in <module> NameError: name 'run_one_line' is not defined 2019-06-19 06:11:20.439943-0700 simctl[32274:50756] MessageTracer: Falling back to default whitelist

That's a message from the debugger, not the applesimutils process. Unfortunately, without the information requested, I cannot investigate, as I am unable to reproduce the issue.

will try to retrieve logs and update

just came across something weird.
ran your lldb script and could not exit process not for a long time (few minutes) the process exit with status = 0(takes a few minutes and endless control+c),
after that the script works perfectly.
when switching to other device (different byName device) issue reconstructs

I might know what the issue is. Before running applesimutils, please try running xcode-select --install.
I saw such a stall on my machine when moving between Xcode 10 and Xcode 11.

getting xcode-select: error: command line tools are already installed, use "Software Update" to install updates

managed to see Error: BulletinBoard property list not found., don't know if it's helpful or not.

Oh I see. I’ll look into this. I think it’s an error I print.

Well, I still can't figure out why this would happen. I thought it might be that notification permission doesn't handle newly booted devices correctly, but that is not the case (tested myself).

The reason it "stalls" is that it a timeout period of 30 seconds, where it tries to find the file once a second. This is to give the system some time if it is booting the first time and the daemons take some time to create the file. But for some reason, on your machine, that file cannot be found.

To test, please run the following script:

SIM=$(xcrun simctl create asmtest "com.apple.CoreSimulator.SimDeviceType.iPad-Pro--12-9-inch---2nd-generation-" "com.apple.CoreSimulator.SimRuntime.iOS-12-2")
echo "Created device $SIM\n"
ls -la ~/Library/Developer/CoreSimulator/Devices/
applesimutils --byId "$SIM" --bundle "com.doesnt.matter" --setPermissions "notifications=YES"
echo "\n"
ls -la ~/Library/Developer/CoreSimulator/Devices/"$SIM"/data/Library/
xcrun simctl delete "$SIM"
echo "\n"
ls -la ~/Library/Developer/CoreSimulator/Devices/

Let it run (do not CTRL+C) until finish and post output. Thanks

bash-3.2$ echo "Created device $SIM\n"
Created device CE7A608E-2C6E-4674-B8F5-C136F639F0CD\n
bash-3.2$ ls -la ~/Library/Developer/CoreSimulator/Devices/
total 24
drwxr-xr-x  72 distiller  staff  2304 Jun 20 00:05 .
drwxr-xr-x   3 distiller  staff    96 Jun 20 00:03 ..
drwxr-xr-x@  4 distiller  staff   128 Jun 20 00:03 0596C00E-9430-4874-BAF6-BC655299057A
drwxr-xr-x@  4 distiller  staff   128 Jun 20 00:04 0A172FFB-26DE-4D09-9296-5B6419527F5A
drwxr-xr-x@  4 distiller  staff   128 Jun 20 00:04 0A716069-6DDE-488C-88BD-17C94809F46A
drwxr-xr-x@  4 distiller  staff   128 Jun 20 00:03 0A8489BB-1E59-487A-AD8E-7D35EC8C304C
drwxr-xr-x@  4 distiller  staff   128 Jun 20 00:03 0A879765-9314-4B22-BD43-1BAC50EBD866
drwxr-xr-x@  4 distiller  staff   128 Jun 20 00:04 1070AE90-BD85-4D44-B9C2-D84C7944BA7C
drwxr-xr-x@  4 distiller  staff   128 Jun 20 00:03 1386D319-7053-4DB6-87CB-9935F9237DFC
drwxr-xr-x@  4 distiller  staff   128 Jun 20 00:04 1859B67D-3C75-4C51-BAAE-B71A35DCE7CC
drwxr-xr-x@  4 distiller  staff   128 Jun 20 00:03 1EC732A0-9FB9-414F-B3FA-BF8A93383EBE
drwxr-xr-x@  4 distiller  staff   128 Jun 20 00:04 212A5620-1EC3-48A2-8493-3348CBDC1773
drwxr-xr-x@  4 distiller  staff   128 Jun 20 00:04 255AEC2D-8C01-4128-B8AB-5C76C0D6033E
drwxr-xr-x@  4 distiller  staff   128 Jun 20 00:04 272D8536-CE08-4D6C-AF60-18AB0B8245E4
drwxr-xr-x@  4 distiller  staff   128 Jun 20 00:04 2BA9EC1B-9E17-4813-8BC2-0A965A47FB91
drwxr-xr-x@  4 distiller  staff   128 Jun 20 00:04 3C5958FA-2EC2-462B-9AF6-8EA2F6DEDF24
drwxr-xr-x@  4 distiller  staff   128 Jun 20 00:04 3D273EA8-78FD-441B-A75E-5983D7E9D546
drwxr-xr-x@  4 distiller  staff   128 Jun 20 00:03 3D73E1A7-3BB6-4EFA-A005-8036F29A092F
drwxr-xr-x@  4 distiller  staff   128 Jun 20 00:04 462A6B49-4851-43A5-A3BA-A4AA54657BA6
drwxr-xr-x@  4 distiller  staff   128 Jun 20 00:04 4B17DE2B-7931-4EB9-853D-907F6E3D4533
drwxr-xr-x@  4 distiller  staff   128 Jun 20 00:03 4BA876BD-956F-4922-AAD7-3B45F0B32BF5
drwxr-xr-x@  4 distiller  staff   128 Jun 20 00:04 4F4F0201-46F3-474E-98F3-5EE5D526BE26
drwxr-xr-x@  4 distiller  staff   128 Jun 20 00:04 53279977-AE09-418A-A0E0-2B1C79282D31
drwxr-xr-x@  4 distiller  staff   128 Jun 20 00:04 56F8D0B9-976E-4A5D-9BB4-E1CE94A36358
drwxr-xr-x@  4 distiller  staff   128 Jun 20 00:03 585EB272-E42D-4729-8975-EA9DF7616C27
drwxr-xr-x@  4 distiller  staff   128 Jun 20 00:04 5CB132B9-01F2-4B9A-B349-14928AC019DE
drwxr-xr-x@  4 distiller  staff   128 Jun 20 00:03 5D6ABB63-DC28-4C5C-9F01-33DE96F683D8
drwxr-xr-x@  4 distiller  staff   128 Jun 20 00:04 5E7AB1D2-DC82-4BD2-A839-2E66F70D9724
drwxr-xr-x@  4 distiller  staff   128 Jun 20 00:03 63B5466B-592B-4F7D-B53B-68827B8FC152
drwxr-xr-x@  4 distiller  staff   128 Jun 20 00:04 6B26EC62-E1A9-4273-ACA3-31C1C8666D36
drwxr-xr-x@  4 distiller  staff   128 Jun 20 00:03 6C543AD0-6E2E-4C17-8E58-34E719443527
drwxr-xr-x@  4 distiller  staff   128 Jun 20 00:03 6DC54A36-A62B-47E6-A130-061E10F05950
drwxr-xr-x@  4 distiller  staff   128 Jun 20 00:04 70A93101-1A2B-478E-A2D8-16A13CA1419F
drwxr-xr-x@  4 distiller  staff   128 Jun 20 00:04 752E0620-E7EA-4200-A315-9C9E407989E3
drwxr-xr-x@  4 distiller  staff   128 Jun 20 00:03 7667399B-204A-4C2D-AEA7-85191677961A
drwxr-xr-x@  4 distiller  staff   128 Jun 20 00:04 77C74729-B871-4241-A4AE-FFF1E8B6DB4B
drwxr-xr-x@  4 distiller  staff   128 Jun 20 00:04 79AB680C-4662-4FC6-9BA6-1D356383E763
drwxr-xr-x@  4 distiller  staff   128 Jun 20 00:04 7BB150FD-22B2-4C62-918D-5E572D02E1EC
drwxr-xr-x@  4 distiller  staff   128 Jun 20 00:04 80BEC9D3-A4C2-4B27-A310-3324000F0187
drwxr-xr-x@  4 distiller  staff   128 Jun 20 00:04 80CE7042-25E0-4477-B846-C6C6C0DD82E7
drwxr-xr-x@  4 distiller  staff   128 Jun 20 00:04 82499A9D-4EAD-4E7E-91E8-429BD966C18C
drwxr-xr-x@  4 distiller  staff   128 Jun 20 00:04 83888921-087B-4D31-92C1-18D629FFFBD8
drwxr-xr-x@  4 distiller  staff   128 Jun 20 00:04 83ED4D7B-BAD8-4B63-A194-CD40BB9D5F04
drwxr-xr-x@  4 distiller  staff   128 Jun 20 00:04 84082289-B3B7-4AF7-BA98-A5032D452C24
drwxr-xr-x@  4 distiller  staff   128 Jun 20 00:03 8CE991DC-B105-4E38-8633-4E131D40A8A8
drwxr-xr-x@  4 distiller  staff   128 Jun 20 00:03 93C59D6D-F0B7-431D-A5BE-49BA8F9F4791
drwxr-xr-x@  4 distiller  staff   128 Jun 20 00:03 9824D3FB-A5D1-4D5C-BFB2-6073D9874A95
drwxr-xr-x@  4 distiller  staff   128 Jun 20 00:04 991C91B7-DFEF-41FF-A1D1-C2DCBAD06A06
drwxr-xr-x@  4 distiller  staff   128 Jun 20 00:03 9D94A26B-AB59-44A9-81B3-4EA2788449AB
drwxr-xr-x@  4 distiller  staff   128 Jun 20 00:04 9EB20548-1DF3-490C-B45C-0186275FD151
drwxr-xr-x@  4 distiller  staff   128 Jun 20 00:04 A3EE7A68-28C2-434B-A024-9BD117738013
drwxr-xr-x@  4 distiller  staff   128 Jun 20 00:04 A61E8057-38BA-4399-B64F-98200A3BC868
drwxr-xr-x@  4 distiller  staff   128 Jun 20 00:04 A6ED9232-5551-4E78-9672-CAD768C091EA
drwxr-xr-x@  4 distiller  staff   128 Jun 20 00:03 BD88F8E8-D979-42BA-B5FF-2B63E5BE3A34
drwxr-xr-x@  4 distiller  staff   128 Jun 20 00:04 C4A13E57-BA91-4CB0-A66A-0A36B6F490B0
drwxr-xr-x@  4 distiller  staff   128 Jun 20 00:05 CE7A608E-2C6E-4674-B8F5-C136F639F0CD
drwxr-xr-x@  4 distiller  staff   128 Jun 20 00:03 D0DA7587-4F11-4E10-AE03-7EAC9AEAEA07
drwxr-xr-x@  4 distiller  staff   128 Jun 20 00:04 D10669BD-A0E0-4FA8-B6C6-C8C2680604C4
drwxr-xr-x@  4 distiller  staff   128 Jun 20 00:03 D5210071-5C76-47C8-901E-06E1ADE7605B
drwxr-xr-x@  4 distiller  staff   128 Jun 20 00:04 DBCE8AA9-765C-4639-968B-5803B4A7059C
drwxr-xr-x@  4 distiller  staff   128 Jun 20 00:04 E8CF6BB3-ADD7-4302-8ACE-4D6C2ADDC3B6
drwxr-xr-x@  4 distiller  staff   128 Jun 20 00:04 EDF60FE0-82EE-4721-BE32-7B3730BF8943
drwxr-xr-x@  4 distiller  staff   128 Jun 20 00:04 EF0D2824-A4F1-4FC5-8064-730553E97CD7
drwxr-xr-x@  4 distiller  staff   128 Jun 20 00:04 F16F6F54-A967-447F-8020-4999A0580CF4
drwxr-xr-x@  4 distiller  staff   128 Jun 20 00:04 F27656CA-63C6-4219-A8EE-AF242A8FC957
drwxr-xr-x@  4 distiller  staff   128 Jun 20 00:04 F2F8D733-0605-49F0-A670-05147B6ECD41
drwxr-xr-x@  4 distiller  staff   128 Jun 20 00:04 F6B3CBB6-35A8-4220-AFF2-61D044965B9F
drwxr-xr-x@  4 distiller  staff   128 Jun 20 00:04 F7371762-07AD-4D06-9388-2AC38ED28B9C
drwxr-xr-x@  4 distiller  staff   128 Jun 20 00:03 F8A2C117-0877-4B7D-AA7A-A2F44B5AA26F
drwxr-xr-x@  4 distiller  staff   128 Jun 20 00:03 FC6B2901-92F0-4F16-BA81-44B26E414290
drwxr-xr-x@  4 distiller  staff   128 Jun 20 00:04 FC87E77C-DC80-40BE-A16F-BCDADEDA7046
-rw-r--r--@  1 distiller  staff  9752 Jun 20 00:05 device_set.plist
bash-3.2$ applesimutils --byId "$SIM" --bundle "com.doesnt.matter" --setPermissions "notifications=YES"
bash: applesimutils: command not found
bash-3.2$ echo "Created device $SIM\n"
Created device CE7A608E-2C6E-4674-B8F5-C136F639F0CD\n
bash-3.2$ applesimutils --byId "$SIM" --bundle "com.doesnt.matter" --setPermissions "notifications=YES"
bash-3.2$ ls -la ~/Library/Developer/CoreSimulator/Devices/"$SIM"/data/Library/
total 0
drwxrwxr-x  55 distiller  staff  1760 Jun 20 00:06 .
drwxrwxr-x  10 distiller  staff   320 Jun 20 00:06 ..
-rw-rw-r--   1 distiller  staff     0 Mar 11 20:57 .localized
drwx------   5 distiller  staff   160 Jun 20 00:06 Accounts
drwxrwxr-x   8 distiller  staff   256 Mar 14 08:39 AddressBook
drwx------   5 distiller  staff   160 Jun 20 00:06 ApplePushService
drwxr-xr-x   2 distiller  staff    64 Jun 20 00:06 Application Support
drwxr-xr-x   8 distiller  staff   256 Jun 20 00:06 Assets
drwxr-xr-x   3 distiller  staff    96 Jun 20 00:06 Assistant
drwxr-xr-x   4 distiller  staff   128 Jun 20 00:06 BulletinBoard
drwxr-xr-x  28 distiller  staff   896 Jun 20 00:06 Caches
drwx------  11 distiller  staff   352 Jun 20 00:06 Calendar
drwxr-xr-x   3 distiller  staff    96 Jun 20 00:06 CallServices
drwxr-xr-x   3 distiller  staff    96 Jun 20 00:06 ControlCenter
drwxr-xr-x   2 distiller  staff    64 Jun 20 00:06 Cookies
drwxr-xr-x   3 distiller  staff    96 Jun 20 00:06 CoreDuet
drwxr-xr-x   3 distiller  staff    96 Jun 20 00:06 CoreFollowUp
drwxr-xr-x   3 distiller  staff    96 Jun 20 00:06 DataAccess
drwxr-xr-x   7 distiller  staff   224 Jun 20 00:06 FileProvider
drwxr-xr-x   5 distiller  staff   160 Jun 20 00:06 FrontBoard
drwxr-xr-x   2 distiller  staff    64 Jun 20 00:06 Health
drwxr-xr-x   7 distiller  staff   224 Jun 20 00:06 IdentityServices
drwxr-xr-x   3 distiller  staff    96 Jun 20 00:06 Keyboard
drwxr-xr-x   2 distiller  staff    64 Jun 20 00:06 KeyboardServices
drwx------  11 distiller  staff   352 Jun 20 00:06 Keychains
drwxr-xr-x   3 distiller  staff    96 Jun 20 00:06 LaunchDaemons
lrwxr-xr-x   1 distiller  staff    80 Jun 20 00:06 Logs -> /Users/distiller/Library/Logs/CoreSimulator/CE7A608E-2C6E-4674-B8F5-C136F639F0CD
drwx------   2 distiller  staff    64 Jun 20 00:06 Mail
drwxr-xr-x   3 distiller  staff    96 Jun 20 00:06 MediaRemote
drwxr-xr-x   9 distiller  staff   288 Jun 20 00:06 MediaStream
drwxr-xr-x   2 distiller  staff    64 Jun 20 00:06 Mobile Documents
drwxr-xr-x   7 distiller  staff   224 Jun 20 00:06 MobileContainerManager
drwxr-xr-x   5 distiller  staff   160 Jun 20 00:06 MobileInstallation
drwx------   6 distiller  staff   192 Jun 20 00:06 Notes
drwxr-xr-x   4 distiller  staff   128 Jun 20 00:06 OnDemandResources
drwx------   3 distiller  staff    96 Jun 20 00:06 PersonalizationPortrait
drwxrwxr-x  70 distiller  staff  2240 Jun 20 00:06 Preferences
drwxr-xr-x   6 distiller  staff   192 Jun 20 00:06 SMS
drwxr-xr-x   6 distiller  staff   192 Jun 20 00:06 Safari
drwxr-xr-x   3 distiller  staff    96 Jun 20 00:06 Sharing
drwxr-xr-x   7 distiller  staff   224 Jun 20 00:06 Spotlight
drwxr-xr-x   8 distiller  staff   256 Jun 20 00:06 SpringBoard
drwxr-xr-x  14 distiller  staff   448 Jun 20 00:06 Suggestions
drwxr-xr-x   2 distiller  staff    64 Jun 20 00:06 SyncedIntentDefinitions
drwxr-xr-x   3 distiller  staff    96 Jun 20 00:06 SyncedPreferences
drwx------   5 distiller  staff   160 Jun 20 00:06 TCC
drwxr-xr-x   8 distiller  staff   256 Jun 20 00:06 UserConfigurationProfiles
drwxr-xr-x   5 distiller  staff   160 Jun 20 00:06 UserNotifications
drwx------   5 distiller  staff   160 Jun 20 00:06 VoiceShortcuts
drwxr-xr-x   3 distiller  staff    96 Jun 20 00:06 WatchConnectivity
drwxr-xr-x   2 distiller  staff    64 Jun 20 00:06 WebClips
drwxr-xr-x   9 distiller  staff   288 Jun 20 00:06 com.apple.itunesstored
drwx------   7 distiller  staff   224 Jun 20 00:06 com.apple.nsurlsessiond
drwxr-xr-x   3 distiller  staff    96 Jun 20 00:06 com.apple.nsurlsessiond-launchd
drwxr-xr-x   4 distiller  staff   128 Jun 20 00:06 dmd
bash-3.2$ xcrun simctl delete "$SIM"
bash-3.2$ echo "\n"
\n
bash-3.2$ ls -la ~/Library/Developer/CoreSimulator/Devices/
total 24
drwxr-xr-x  71 distiller  staff  2272 Jun 20 00:07 .
drwxr-xr-x   3 distiller  staff    96 Jun 20 00:03 ..
drwxr-xr-x@  4 distiller  staff   128 Jun 20 00:03 0596C00E-9430-4874-BAF6-BC655299057A
drwxr-xr-x@  4 distiller  staff   128 Jun 20 00:04 0A172FFB-26DE-4D09-9296-5B6419527F5A
drwxr-xr-x@  4 distiller  staff   128 Jun 20 00:04 0A716069-6DDE-488C-88BD-17C94809F46A
drwxr-xr-x@  4 distiller  staff   128 Jun 20 00:03 0A8489BB-1E59-487A-AD8E-7D35EC8C304C
drwxr-xr-x@  4 distiller  staff   128 Jun 20 00:03 0A879765-9314-4B22-BD43-1BAC50EBD866
drwxr-xr-x@  4 distiller  staff   128 Jun 20 00:04 1070AE90-BD85-4D44-B9C2-D84C7944BA7C
drwxr-xr-x@  4 distiller  staff   128 Jun 20 00:03 1386D319-7053-4DB6-87CB-9935F9237DFC
drwxr-xr-x@  4 distiller  staff   128 Jun 20 00:04 1859B67D-3C75-4C51-BAAE-B71A35DCE7CC
drwxr-xr-x@  4 distiller  staff   128 Jun 20 00:03 1EC732A0-9FB9-414F-B3FA-BF8A93383EBE
drwxr-xr-x@  4 distiller  staff   128 Jun 20 00:04 212A5620-1EC3-48A2-8493-3348CBDC1773
drwxr-xr-x@  4 distiller  staff   128 Jun 20 00:04 255AEC2D-8C01-4128-B8AB-5C76C0D6033E
drwxr-xr-x@  4 distiller  staff   128 Jun 20 00:04 272D8536-CE08-4D6C-AF60-18AB0B8245E4
drwxr-xr-x@  4 distiller  staff   128 Jun 20 00:04 2BA9EC1B-9E17-4813-8BC2-0A965A47FB91
drwxr-xr-x@  4 distiller  staff   128 Jun 20 00:04 3C5958FA-2EC2-462B-9AF6-8EA2F6DEDF24
drwxr-xr-x@  4 distiller  staff   128 Jun 20 00:04 3D273EA8-78FD-441B-A75E-5983D7E9D546
drwxr-xr-x@  4 distiller  staff   128 Jun 20 00:03 3D73E1A7-3BB6-4EFA-A005-8036F29A092F
drwxr-xr-x@  4 distiller  staff   128 Jun 20 00:04 462A6B49-4851-43A5-A3BA-A4AA54657BA6
drwxr-xr-x@  4 distiller  staff   128 Jun 20 00:04 4B17DE2B-7931-4EB9-853D-907F6E3D4533
drwxr-xr-x@  4 distiller  staff   128 Jun 20 00:03 4BA876BD-956F-4922-AAD7-3B45F0B32BF5
drwxr-xr-x@  4 distiller  staff   128 Jun 20 00:04 4F4F0201-46F3-474E-98F3-5EE5D526BE26
drwxr-xr-x@  4 distiller  staff   128 Jun 20 00:04 53279977-AE09-418A-A0E0-2B1C79282D31
drwxr-xr-x@  4 distiller  staff   128 Jun 20 00:04 56F8D0B9-976E-4A5D-9BB4-E1CE94A36358
drwxr-xr-x@  4 distiller  staff   128 Jun 20 00:03 585EB272-E42D-4729-8975-EA9DF7616C27
drwxr-xr-x@  4 distiller  staff   128 Jun 20 00:04 5CB132B9-01F2-4B9A-B349-14928AC019DE
drwxr-xr-x@  4 distiller  staff   128 Jun 20 00:03 5D6ABB63-DC28-4C5C-9F01-33DE96F683D8
drwxr-xr-x@  4 distiller  staff   128 Jun 20 00:04 5E7AB1D2-DC82-4BD2-A839-2E66F70D9724
drwxr-xr-x@  4 distiller  staff   128 Jun 20 00:03 63B5466B-592B-4F7D-B53B-68827B8FC152
drwxr-xr-x@  4 distiller  staff   128 Jun 20 00:04 6B26EC62-E1A9-4273-ACA3-31C1C8666D36
drwxr-xr-x@  4 distiller  staff   128 Jun 20 00:03 6C543AD0-6E2E-4C17-8E58-34E719443527
drwxr-xr-x@  4 distiller  staff   128 Jun 20 00:03 6DC54A36-A62B-47E6-A130-061E10F05950
drwxr-xr-x@  4 distiller  staff   128 Jun 20 00:04 70A93101-1A2B-478E-A2D8-16A13CA1419F
drwxr-xr-x@  4 distiller  staff   128 Jun 20 00:04 752E0620-E7EA-4200-A315-9C9E407989E3
drwxr-xr-x@  4 distiller  staff   128 Jun 20 00:03 7667399B-204A-4C2D-AEA7-85191677961A
drwxr-xr-x@  4 distiller  staff   128 Jun 20 00:04 77C74729-B871-4241-A4AE-FFF1E8B6DB4B
drwxr-xr-x@  4 distiller  staff   128 Jun 20 00:04 79AB680C-4662-4FC6-9BA6-1D356383E763
drwxr-xr-x@  4 distiller  staff   128 Jun 20 00:04 7BB150FD-22B2-4C62-918D-5E572D02E1EC
drwxr-xr-x@  4 distiller  staff   128 Jun 20 00:04 80BEC9D3-A4C2-4B27-A310-3324000F0187
drwxr-xr-x@  4 distiller  staff   128 Jun 20 00:04 80CE7042-25E0-4477-B846-C6C6C0DD82E7
drwxr-xr-x@  4 distiller  staff   128 Jun 20 00:04 82499A9D-4EAD-4E7E-91E8-429BD966C18C
drwxr-xr-x@  4 distiller  staff   128 Jun 20 00:04 83888921-087B-4D31-92C1-18D629FFFBD8
drwxr-xr-x@  4 distiller  staff   128 Jun 20 00:04 83ED4D7B-BAD8-4B63-A194-CD40BB9D5F04
drwxr-xr-x@  4 distiller  staff   128 Jun 20 00:04 84082289-B3B7-4AF7-BA98-A5032D452C24
drwxr-xr-x@  4 distiller  staff   128 Jun 20 00:03 8CE991DC-B105-4E38-8633-4E131D40A8A8
drwxr-xr-x@  4 distiller  staff   128 Jun 20 00:03 93C59D6D-F0B7-431D-A5BE-49BA8F9F4791
drwxr-xr-x@  4 distiller  staff   128 Jun 20 00:03 9824D3FB-A5D1-4D5C-BFB2-6073D9874A95
drwxr-xr-x@  4 distiller  staff   128 Jun 20 00:04 991C91B7-DFEF-41FF-A1D1-C2DCBAD06A06
drwxr-xr-x@  4 distiller  staff   128 Jun 20 00:03 9D94A26B-AB59-44A9-81B3-4EA2788449AB
drwxr-xr-x@  4 distiller  staff   128 Jun 20 00:04 9EB20548-1DF3-490C-B45C-0186275FD151
drwxr-xr-x@  4 distiller  staff   128 Jun 20 00:04 A3EE7A68-28C2-434B-A024-9BD117738013
drwxr-xr-x@  4 distiller  staff   128 Jun 20 00:04 A61E8057-38BA-4399-B64F-98200A3BC868
drwxr-xr-x@  4 distiller  staff   128 Jun 20 00:04 A6ED9232-5551-4E78-9672-CAD768C091EA
drwxr-xr-x@  4 distiller  staff   128 Jun 20 00:03 BD88F8E8-D979-42BA-B5FF-2B63E5BE3A34
drwxr-xr-x@  4 distiller  staff   128 Jun 20 00:04 C4A13E57-BA91-4CB0-A66A-0A36B6F490B0
drwxr-xr-x@  4 distiller  staff   128 Jun 20 00:03 D0DA7587-4F11-4E10-AE03-7EAC9AEAEA07
drwxr-xr-x@  4 distiller  staff   128 Jun 20 00:04 D10669BD-A0E0-4FA8-B6C6-C8C2680604C4
drwxr-xr-x@  4 distiller  staff   128 Jun 20 00:03 D5210071-5C76-47C8-901E-06E1ADE7605B
drwxr-xr-x@  4 distiller  staff   128 Jun 20 00:04 DBCE8AA9-765C-4639-968B-5803B4A7059C
drwxr-xr-x@  4 distiller  staff   128 Jun 20 00:04 E8CF6BB3-ADD7-4302-8ACE-4D6C2ADDC3B6
drwxr-xr-x@  4 distiller  staff   128 Jun 20 00:04 EDF60FE0-82EE-4721-BE32-7B3730BF8943
drwxr-xr-x@  4 distiller  staff   128 Jun 20 00:04 EF0D2824-A4F1-4FC5-8064-730553E97CD7
drwxr-xr-x@  4 distiller  staff   128 Jun 20 00:04 F16F6F54-A967-447F-8020-4999A0580CF4
drwxr-xr-x@  4 distiller  staff   128 Jun 20 00:04 F27656CA-63C6-4219-A8EE-AF242A8FC957
drwxr-xr-x@  4 distiller  staff   128 Jun 20 00:04 F2F8D733-0605-49F0-A670-05147B6ECD41
drwxr-xr-x@  4 distiller  staff   128 Jun 20 00:04 F6B3CBB6-35A8-4220-AFF2-61D044965B9F
drwxr-xr-x@  4 distiller  staff   128 Jun 20 00:04 F7371762-07AD-4D06-9388-2AC38ED28B9C
drwxr-xr-x@  4 distiller  staff   128 Jun 20 00:03 F8A2C117-0877-4B7D-AA7A-A2F44B5AA26F
drwxr-xr-x@  4 distiller  staff   128 Jun 20 00:03 FC6B2901-92F0-4F16-BA81-44B26E414290
drwxr-xr-x@  4 distiller  staff   128 Jun 20 00:04 FC87E77C-DC80-40BE-A16F-BCDADEDA7046
-rw-r--r--@  1 distiller  staff  9752 Jun 20 00:07 device_set.plist
bash-3.2$```

Everything seems in order, all folders are there. Not sure what to tell you.

I'll add more logging to the next version and maybe those will shed some light on the problem.

OK, just released version 0.7.0 with additional logging.

In a seperate terminal (or using tmux), run log stream --level debug --style compact --process applesimutils

Then reproduce the issue (again, without killing it using CTRL+C) and post the log output here.

Thanks

Ping

will check again today.

Thanks

it looks like it stuck on:

2019-06-30 08:53:29.911 A  applesimutils[32875:e1a1] (libsystem_info.dylib) Retrieve User by ID
2019-06-30 08:53:34.424 A  applesimutils[32915:e250] (libsystem_info.dylib) Retrieve User by ID
2019-06-30 08:53:34.902 A  applesimutils[32919:e267] (libsystem_info.dylib) Retrieve User by ID
2019-06-30 08:54:18.110 A  applesimutils[33081:e882] (libsystem_info.dylib) Retrieve User by ID

That's not from applesimutils. Not sure what that is.