You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Merge pull request #40 from fingerprintjs/topic/simulator-core-telephony-error-messages
Fix Core Telephony API use causing OS-level error msgs on iOS Simulator
On iOS Simulator, the `com.apple.commcenter.coretelephony` XPC Service
appears to be unavailable and an attempt to communicate with it
produces the following error messages originating from
`com.apple.CoreTelephony` subsystem.
```
The connection to service named com.apple.commcenter.coretelephony.xpc
was invalidated: failed at lookup with error 3 - No such process.
```
These error messages pollute the app logs that get printed to the
debug console, which makes the debugging inconvenient.
To resolve the above inconvenience, the code that uses
`CTTelephonyNetworkInfo` API is now conditionally compiled, such that
the API is only called when targeting a physical iDevice.
0 commit comments