16

Recently updated to iOS 12.1 (from 12.0), Xcode 10.1 (from 10.0) and seeing a flood of error messages in the Xcode console when debugging on my physical device like the following:

[NetworkInfo] Signal strength query returned error: Error Domain=NSPOSIXErrorDomain Code=13 "Permission denied", descriptor: <CTServiceDescriptor 0x28051d700, domain=1, instance=1>

I get a couple of these logs every couple seconds, the only thing that changes is the hex value for the CTServiceDescriptor. There have been no code changes so I have to assume its related to the iOS or Xcode updates.

As far as I can tell it doesn't appear to have any performance impact, the app is operating as expected and my phone is working (its even updating its signal strength!). I've been unable to find anything helpful/relevant across Stack Overflow, Google, or the Apple Developer forums though I made a similar post to the latter that I'll link here once the post is approved.

Any suggestions/insight into how I could troubleshoot this further or resolve would be greatly appreciated. Thanks!

Phil
  • 1,216
  • 2
  • 14
  • 23
  • Same issue here. I'm stumped. Specifically I'm using the AWSMobileClient from the AWS SDK. In the Simulator I get all kinds of coreTelephony errors instead. – Zig Nov 29 '18 at 20:12
  • that solution helped me, kind of ignore or disable error logs https://stackoverflow.com/questions/37800790/hide-strange-unwanted-xcode-logs – greenridinghood Jun 05 '19 at 16:14

1 Answers1

8

It seems to be a side-effect of calling [CTTelephonyNetworkInfo new]; under newer versions of iOS and can be safely ignored, I think. I'm not sure there's anything app developers can do to fix this, it appears to be a side-effect that signalStrength inside CTTelephonyNetworkInfo is hidden from public apps in recent versions of iOS (9+). This is nothing new, but it's noisier about the permissions error here under iOS 12.1 (maybe other versions?).

CTTelephonyNetworkInfo appears to be a hastily-revised API, for public use at least: For example, it had bugs in v12 when returning carrier info that was fixed in v12.1. why do serviceSubscriberCellularProviders return nil? (in iOS 12)

I'm also reminded of the extraneous permissions errors that appear frequently in macOS console logs - https://eclecticlight.co/2016/09/23/sierras-console-promising-but-incomplete/ - or the Xcode 8 bug where in an early beta the Simulator was extremely noisy. Sometimes the internal chatter slips out to an external release, and there's not much anyone outside Apple can do about it...

Louis St-Amour
  • 4,065
  • 1
  • 30
  • 28
  • yeah I had a feeling it would be something along those lines... hopefully they'll get better at preventing these types of things from slipping through the cracks as it makes following any helpful logs in the console a real pain. thanks for the response! – Phil Dec 03 '18 at 22:32
  • I seem to have had luck preventing these logs from appearing by following the suggestion here: https://stackoverflow.com/questions/37800790/hide-strange-unwanted-xcode-logs – Phil Dec 03 '18 at 23:36
  • Hmm, I'm getting these error and don't call any CTTelelphonyNetworkInfo calls. – SafeFastExpressive Dec 19 '18 at 23:58
  • I think is firebase fault, there's nothing wrong with my network and i'm not using the mobile data. This causes a 15-20sec delay every few launches to load some of the initial data in the app, but some other calls work. This error coincides with me using rules in firestore but since after a while works i don't think is their fault. – Cristi Băluță Jan 21 '19 at 05:51
  • Running Xcode 10.1 and iOS 12.4.1 and getting two of these errors every time app deploys to phone. Trying to narrow down what plugin is calling it. – rolinger Oct 20 '19 at 15:04
  • You can narrow down the source by switching to Breakpoints > Create Symbolic Breakpoint > Symbol: `-[CTTelephonyNetworkInfo init]`. – Tim Feb 18 '20 at 02:33