ionic-team / native-run

Utility for running native binaries on iOS and Android devices and simulators/emulators
MIT License
127 stars 21 forks source link

feat: Better error messaging on iOS #210

Open kenchambers opened 2 years ago

kenchambers commented 2 years ago

Bug Report

Capacitor Version

πŸ’Š   Capacitor Doctor  πŸ’Š

Latest Dependencies:

  @capacitor/cli: 3.2.5
  @capacitor/core: 3.2.5
  @capacitor/android: 3.2.5
  @capacitor/ios: 3.2.5

Installed Dependencies:

  @capacitor/cli: 3.1.2
  @capacitor/android: 3.1.2
  @capacitor/core: 3.2.4
  @capacitor/ios: 3.2.4

[success] iOS looking great! πŸ‘Œ

Platform(s)

when running: ionic capacitor run ios --livereload --external --verbose

Current Behavior

when running above command with iphone connected and screen unlocked, i get screen locked error. and It does not boot up to xcode.

recently upgraded to latest version of capacitor, i don't recall if this issue started happening immediately after, but It has not been working for a few days now so i decided to reach out. Ken

Expected Behavior

My Iphone should open xcode app preview inside of my phone.

Other Technical Details

npm --version output: 7.19.1 node --version output: v16.3.0 pod --version output (iOS issues only): 1.11.0

Additional Context

This is the command with verbose: (truncated for brevity, let me know if you need full one)

[capacitor] βœ– Deploying App.app to 00008030-000304E10C90802E - failed!
[capacitor] [error] 2021-10-24T09:00:11.159Z native-run:ios:lib:client:usbmuxd connectUsbmuxdSocket
[capacitor]         2021-10-24T09:00:11.160Z native-run:ios:lib:client:usbmuxd getDevices
[capacitor]         2021-10-24T09:00:11.160Z native-run:ios:lib:protocol:usbmux socket write: {"messageType":"ListDevices"}
[capacitor]         2021-10-24T09:00:11.927Z native-run:ios:lib:protocol:usbmux Response: {"DeviceList":[{"DeviceID":3,"MessageType":"Attached","Properties":{"ConnectionSpeed":480000000,"ConnectionType":"USB","DeviceID":3,"LocationID":17825792,"ProductID":4776,"SerialNumber":"00008030-000304E10C90802E","UDID":"00008030-000304E10C90802E","USBSerialNumber":"00008030000304E10C90802E"}}]}
[capacitor]         2021-10-24T09:00:11.927Z native-run:ios:lib:client:usbmuxd connectUsbmuxdSocket
[capacitor]         2021-10-24T09:00:11.927Z native-run:ios:lib:client:usbmuxd connect: 3 on port 62078
[capacitor]         2021-10-24T09:00:11.928Z native-run:ios:lib:protocol:usbmux socket write: {"messageType":"Connect","extraFields":{"DeviceID":3,"PortNumber":32498}}
[capacitor]         2021-10-24T09:00:11.930Z native-run:ios:lib:protocol:usbmux Response: {"MessageType":"Result","Number":0}
[capacitor]         2021-10-24T09:00:11.930Z native-run:ios:lib:client:lockdownd getAllValues
[capacitor]         2021-10-24T09:00:11.930Z native-run:ios:lib:protocol:lockdown socket write: {"Request":"GetValue"}
[capacitor]         2021-10-24T09:00:11.965Z native-run:ios:lib:protocol:lockdown Response: {"Request":"GetValue","Value":{"BasebandCertId":524245983,"BasebandKeyHashInformation":{"AKeyStatus":64,"SKeyStatus":2},"BasebandSerialNumber":{"type":"Buffer","data":[64,69,107,98,145,7,165,42,0,0,0,0]},"BasebandVersion":"2.05.01","BoardId":2,"BuildVersion":"18G82","CPUArchitecture":"arm64e","ChipID":32816,"DeviceClass":"iPhone","DeviceColor":"1","DeviceName":"iPhone","DieID":849789555081262,"HardwareModel":"D431AP","HasSiDP":true,"PartitionType":"GUID_partition_scheme","ProductName":"iPhone OS","ProductType":"iPhone12,5","ProductVersion":"14.7.1","ProductionSOC":true,"ProtocolVersion":"2","SupportedDeviceFamilies":[1],"TelephonyCapability":true,"UniqueChipID":849789555081262,"UniqueDeviceID":"00008030-000304E10C90802E","WiFiAddress":"8c:86:1e:e6:b5:11"}}
[capacitor]         2021-10-24T09:00:11.965Z native-run:ios:lib:client:usbmuxd connectUsbmuxdSocket
[capacitor]         2021-10-24T09:00:11.965Z native-run:ios:lib:client:usbmuxd getDevice udid: 00008030-000304E10C90802E
[capacitor]         2021-10-24T09:00:11.965Z native-run:ios:lib:client:usbmuxd getDevices
[capacitor]         2021-10-24T09:00:11.965Z native-run:ios:lib:protocol:usbmux socket write: {"messageType":"ListDevices"}
[capacitor]         2021-10-24T09:00:11.966Z native-run:ios:lib:protocol:usbmux Response: {"DeviceList":[{"DeviceID":3,"MessageType":"Attached","Properties":{"ConnectionSpeed":480000000,"ConnectionType":"USB","DeviceID":3,"LocationID":17825792,"ProductID":4776,"SerialNumber":"00008030-000304E10C90802E","UDID":"00008030-000304E10C90802E","USBSerialNumber":"00008030000304E10C90802E"}}]}
[capacitor]         2021-10-24T09:00:11.966Z native-run:ios:lib:client:usbmuxd readPairRecord: 00008030-000304E10C90802E
[capacitor]         2021-10-24T09:00:11.966Z native-run:ios:lib:protocol:usbmux socket write: {"messageType":"ReadPairRecord","extraFields":{"PairRecordID":"00008030-000304E10C90802E"}}
[capacitor]         2021-10-24T09:00:11.969Z native-run:ios:lib:protocol:usbmux Response: {"PairRecordData":{"type":"Buffer","data":[60,63,120,109,108,32,118,101,114,115,105,111,110,61,34,49,46,48,34,32,101,110,99,111,100,105,110,103,61,34,85,84,70,45,56,34,63,62,10,60,33,68,79,67,84,89,80,69,32,112,108,105,115,116,32,80,85,66,76,73,67,32,34,45,47,47,65,112,112,108,101,47,47,68,84,68,32,80,76,73,83,84,32,49,46,48,47,47,69,78,34,32,34,104,116,116,112,58,47,47,119,119,119,46,97,112,112,108,101,46,99,111,109,47,68,84,68,115,47,80,114,111,112,101,114,116,121,76,105,115,116,45,49,46,48,46,100,116,100,34,62,10,60,112,108,105,115,116,32,118,101,114,115,105,111,110,61,34,49,46,48,34,62,10,60,100,105,99,116,62,10,9,60,107,101,121,62,68,101,118,105,99,101,67,101,114,116,105,102,105,99,97,116,101,60,47,107,101,121,62,10,9,60,100,97,116,97,62,10,9,76,83,48,116,76,83,49,67,82,85,100,74,84,105,66,68,82,86,74,85,83,85,90,74,81,48,70,85,82,83,48,116,76,83,48,116,67,107,49,74,83,85,78,49,97,107,78,68,81,87,70,76,90,48,70,51,83,85,74,66,90,48,108,67,81,85,82,66,10,9,84,107,74,110,97,51,70,111,97,50,108,72,79,88,99,119,81,107,70,82,86,85,90,66,82,69,70,66,84,85,73,48,87,69,82,85,83,88,104,78,82,71,116,53,84,85,82,70,101,69,53,85,83,88,111,75,84,86,90,118,87,69,82,85,84,88,104,78,10,9,82,71,116,52,84,48,82,70,101,69,53,85,83,88,112,78,86,109,57,51,81,85,82,68,81,48,70,84,83,88,100,69,85,86,108,75,83,50,57,97,83,87,104,50,89,48,53,66,85,85,86,67,81,108,70,66,82,71,100,110,82,86,66,66,82,69,78,68,10,9,81,86,70,118,81,119,112,110,90,48,86,67,81,85,112,67,99,121,57,88,100,109,90,81,86,48,90,73,87,69,48,121,101,109,74,89,101,86,108,69,99,50,70,68,86,122,73,121,83,50,104,67,99,107,86,48,85,48,49,52,89,84,108,106,78,50,86,73,10,9,83,109,70,82,100,68,100,112,100,86,70,114,100,108,104,71,90,86,108,67,84,84,104,84,67,107,119,49,84,49,78,76,81,83,57,88,87,87,53,74,85,107,116,52,100,107,78,90,81,87,86,82,87,71,89,120,90,48,69,52,101,71,82,122,77,108,81,49,10,9,78,70,90,80,82,51,100,53,79,85,104,112,98,106,74,108,85,49,66,106,83,67,57,79,100,109,53,87,81,85,116,53,89,86,66,115,90,48,99,120,84,107,85,75,98,85,108,116,84,85,112,49,100,109,116,77,87,72,86,52,75,51,74,119,101,107,90,51,10,9,100,108,86,104,85,105,57,83,100,108,103,52,83,49,108,73,83,51,108,75,86,71,116,88,75,49,74,49,82,69,82,73,99,85,49,121,97,88,111,121,97,70,82,119,77,122,86,113,87,87,104,114,78,107,78,77,83,88,66,80,89,119,112,53,86,48,70,73,10,9,90,49,100,67,89,106,89,51,89,85,108,116,97,108,74,78,83,50,82,87,82,84,70,75,83,49,107,121,90,49,
jcesarmobile commented 2 years ago

Does it detect the device as unlocked if you try to run from Xcode? It sometimes happens to me that Xcode says the device is locked when it isn't and I have to unplug, replug and even restart the device to detect it as unlocked.

kenchambers commented 2 years ago

@jcesarmobile Thanks so much for the speedy response! I got a more understandable error from Xcode, I will make sure to run X code before posting on here again.

Unable to install "App"
Domain: com.apple.dt.MobileDeviceErrorDomain
Code: -402620383
Recovery Suggestion: Please delete apps signed with your free account from this device to remain under the limit.
--
The maximum number of apps for free development profiles has been reached.
Domain: com.apple.dt.MobileDeviceErrorDomain
Code: -402620383
User Info: {
    DVTRadarComponentKey = 487925;
    MobileDeviceErrorCode = "(0xE8008021)";
    "com.apple.dtdevicekit.stacktrace" = (
    0   DTDeviceKitBase                     0x000000012588de98 DTDKCreateNSErrorFromAMDErrorCode + 272
    1   DTDeviceKitBase                     0x00000001258c9898 __90-[DTDKMobileDeviceToken installApplicationBundleAtPath:withOptions:andError:withCallback:]_block_invoke + 160
    2   DVTFoundation                       0x0000000102cf3670 DVTInvokeWithStrongOwnership + 76
    3   DTDeviceKitBase                     0x00000001258c95e4 -[DTDKMobileDeviceToken installApplicationBundleAtPath:withOptions:andError:withCallback:] + 1316
    4   IDEiOSSupportCore                   0x000000012578bd40 __118-[DVTiOSDevice(DVTiPhoneApplicationInstallation) processAppInstallSet:appUninstallSet:installOptions:completionBlock:]_block_invoke.294 + 2928
    5   DVTFoundation                       0x0000000102e1c7fc __DVT_CALLING_CLIENT_BLOCK__ + 16
    6   DVTFoundation                       0x0000000102e1e220 __DVTDispatchAsync_block_invoke + 680
    7   libdispatch.dylib                   0x0000000180f46128 _dispatch_call_block_and_release + 32
    8   libdispatch.dylib                   0x0000000180f47ec0 _dispatch_client_callout + 20