We've have an existing app that can print sticker using link os sdk, that we've build using older xcode.
Then we upgraded our machine to mac mini m1 with latest XCODE 12.5, we build the app with same code but the result is different.
The code is the same as we just use git to clone the project and build on the newer xcode (mac mini m1 with latest XCODE 12.5).
Just git clone and run.
But we got "{error: Error Domain=ZSDK_API_ERROR_DOMAIN Code=5 "Network error during discovery" UserInfo={NSLocalizedDescription=Network error during discovery}" error now when trying to search for printers.
How can we solve this ?
Differrent behavior accross xcode version// Expert user has replied. |
1 Replies
Hi Ryan,
Since iOS 14.5, Apple has enforced the Multicast Networking Entitlement for any apps that use multicast on its local network. The NetworkDiscoverer API in the Link-OS SDK for iOS uses multicast to search for printers on the local network. Therefore, this API won't work anymore on iOS 14.5 or higher devices unless the app has the entitlement. Here is an article about this issue and how to apply for Multicast Networking Entitlement - Link-OS SDK for iOS – Printer Network Discovery API impacted by iOS 14.5 and higher