openstf / ios-minicap

iOS Minicap provides a socket interface for streaming realtime screen capture data out of iOS devices.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

when connecting iPhoneXR ios12.1, prompt device with udid "XXX" not found.

sherry1993 opened this issue · comments

Steps to reproduce
./run.sh

Expected results

Actual results
++ system_profiler SPUSBDataType
++ sed -n -E -e '/(iPhone|iPad)/,/Serial/s/ *Serial Number: *(.+)/\1/p'

  • UDID=000080200013044814D2002E
  • PORT=12345
  • RESOLUTION=400x600
  • ./build/ios_minicap --udid 000080200013044814D2002E --port 12345 --resolution 400x600
    EnableDALDevices
    2019-05-08 11:23:25.923 ios_minicap[13089:331505] Available devices:
    2019-05-08 11:23:25.924 ios_minicap[13089:331505] 00008020-0013044814D2002E
    2019-05-08 11:23:25.924 ios_minicap[13089:331505] CC28151RLUMG1HNBW
    2019-05-08 11:23:25.924 ios_minicap[13089:331505] device with udid '000080200013044814D2002E' not found

Environment(version of libraries, mac OS, iOS, etc)
iphoneXR,ios12.1

I have the same problem, did you resolve it? @sherry1993

@sherry1993 Thank you! I also noticed the current run.sh failed to include the '-' in the middle of my udid.

    NSString *udidCpy = udid.mutableCopy;
    NSString *strInsert = @"-";
    NSRange range = NSMakeRange(8, 0);
    NSString * uid = [udidCpy stringByReplacingCharactersInRange:range withString:strInsert];
    NSLog(@"uid = %@",uid);

    self.mDevice = [AVCaptureDevice deviceWithUniqueID: uid];