Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Investigate coretelephony sending multiple errors to console.log when running simulators #351

Closed
mindgraffiti opened this issue Oct 16, 2018 · 3 comments · Fixed by #475
Closed
Assignees
Labels
type: bug A confirmed bug.
Milestone

Comments

@mindgraffiti
Copy link
Contributor

The console.log has recently been spitting out a large number of these error messages:

[NetworkInfo] Descriptors query returned error: Error Domain=NSCocoaErrorDomain Code=4099 "The connection to service named com.apple.commcenter.coretelephony.xpc was invalidated." UserInfo={NSDebugDescription=The connection to service named com.apple.commcenter.coretelephony.xpc was invalidated.}

It could be connected to the upgrade to iOS12 and our use of the Contacts framework.
Source: https://forums.developer.apple.com/thread/108883 | https://forums.developer.apple.com/message/326361#326361

@mindgraffiti mindgraffiti added the type: bug A confirmed bug. label Oct 16, 2018
@mindgraffiti mindgraffiti changed the title Investigate coretelephony errors Investigate coretelephony sending multiple errors to console.log when running simulators Oct 16, 2018
@mindgraffiti mindgraffiti self-assigned this Oct 19, 2018
@bummytime
Copy link
Member

So just dropping an update — looks like the source of these errors are from the Track lib here:

https://github.com/Automattic/Automattic-Tracks-iOS/blob/develop/Automattic-Tracks-iOS/TracksDeviceInformation.m#L44-L67

@mindgraffiti
Copy link
Contributor Author

Background: Xcode 10 and Swift 4.2 ignores the macro TARGET_OS_IPHONE. It's not even deprecated any more, it's obsolete. Unfortunately, that meant that a code block was no longer getting ignored in the simulator.

@mindgraffiti
Copy link
Contributor Author

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type: bug A confirmed bug.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants