Detect Physical iOS device without Xcode
Summary: This diff adds the support of detecting physical device in Flipper even if the xcode is not installed and there is no cli tool installed. See the demo. Reviewed By: timur-valiev Differential Revision: D26816588 fbshipit-source-id: 5f052998fcbe5c51385222d16df0e1855177b552
This commit is contained in:
committed by
Facebook GitHub Bot
parent
11879c127b
commit
a2d559c8c0
@@ -92,8 +92,10 @@ export default class IOSDevice extends BaseDevice {
|
||||
console.warn('Attaching iOS log listener continuously failed.');
|
||||
return;
|
||||
}
|
||||
if (!this.log) {
|
||||
this.log = iOSBridge.startLogListener(this.serial);
|
||||
|
||||
const logListener = iOSBridge.startLogListener;
|
||||
if (!this.log && logListener) {
|
||||
this.log = logListener(this.serial);
|
||||
this.log.on('error', (err: Error) => {
|
||||
console.error('iOS log tailer error', err);
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user