Post

Replies

Boosts

Views

Activity

Obtaining IP and port number of local services with iOS 14.5
Hello, We provide a cross-platform network communication library to our customers, implementing secure application level tunnelling (and more) for use primarily in IoT scenarios. The library is implemented in C++. For discovering local devices, we have used a custom mDNS implementation based on raw BSD sockets - with the iOS 14.5 restrictions this is apparently no longer possible and we are looking for alternative options. However, we cannot find a non-deprecated way to obtain the local UDP IP address and port number of discovered services. The NSNetService API is deprecated and the NWBrowser API only gives you the service names for use with NWConnection (the latter is not applicable due to the cross-platform implementation of our proprietary protocol). Are there any (clean) way to obtain a local service's IP address and port number for use with lower level implementations like ours? Or do we have to resort to a hack where we stuff the normal A and AAAA record contents + port number into TXT records that apparently are ok to retrieve with NWBrowser? Thanks for clarifying! Ulrik, Nabto
3
0
1.1k
Jul ’21
XcodeMacLocationSimulation crashes due to missing DVTFoundation library
When I launch a macOS app from within xcode that uses Core Location, the location simulation button has no effect. Moreover, I can see in Console.app that com.apple.dt.XcodeMacLocationSimulation 100% consistently crashes when I start such app from within xcode or press said button. Console.app shows the below - consistent with the terminal output if running the command directly from there. I have tried to remove Xcode (delete Xcode.app from /Applications), reboot and reinstall from app store with no change in behavior. Google provides only vague hints and nothing about the exact problem. Any hints as to what goes on? The /Applications/Xcode.app folder was completely empty when doing the reinstall. And all libraries referenced in the crash report seem to belong there. The essential detail seems to be: Dyld Error Message:&#9;Library not loaded: @rpath/DVTFoundation.framework/Versions/A/DVTFoundation&#9;Referenced from: /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/Library/Xcode/PrivatePlugIns/IDEOSXSupportCore.ideplugin/Contents/XPCServices/com.apple.dt.XcodeMacLocationSimulation.xpc/Contents/MacOS/com.apple.dt.XcodeMacLocationSimulation&#9;Reason: image not found The missing library exists in this location on my system: /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform//Developer/iOSSupport/Library/PrivateFrameworks/DVTFoundation.framework/Versions/A/DVTFoundation The full crash report: Process:&#9;&#9;&#9;&#9;&#9;&#9;&#9; com.apple.dt.XcodeMacLocationSimulation [2127] Path:&#9;&#9;&#9;&#9;&#9;&#9;&#9;&#9;&#9;/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/Library/Xcode/PrivatePlugIns/IDEOSXSupportCore.ideplugin/Contents/XPCServices/com.apple.dt.XcodeMacLocationSimulation.xpc/Contents/MacOS/com.apple.dt.XcodeMacLocationSimulation Identifier:&#9;&#9;&#9;&#9;&#9;&#9;com.apple.dt.XcodeMacLocationSimulation Version:&#9;&#9;&#9;&#9;&#9;&#9;&#9; 11.6 (16005) Build Info:&#9;&#9;&#9;&#9;&#9;&#9;IDEOSXSupport-16005000000000000~143 Code Type:&#9;&#9;&#9;&#9;&#9;&#9; X86-64 (Native) Parent Process:&#9;&#9;&#9;&#9;??? [1] Responsible:&#9;&#9;&#9;&#9;&#9; Xcode [1907] User ID:&#9;&#9;&#9;&#9;&#9;&#9;&#9; 501 Date/Time:&#9;&#9;&#9;&#9;&#9;&#9; 2020-08-31 23:54:47.347 +0200 OS Version:&#9;&#9;&#9;&#9;&#9;&#9;Mac OS X 10.15.5 (19F101) Report Version:&#9;&#9;&#9;&#9;12 Bridge OS Version:&#9;&#9; 3.0 (14Y908) Anonymous UUID:&#9;&#9;&#9;&#9;BED37D64-689E-63A4-6755-6A2BF5583EF3 Time Awake Since Boot: 1700 seconds System Integrity Protection: enabled Crashed Thread:&#9;&#9;&#9;&#9;0 Exception Type:&#9;&#9;&#9;&#9;EXC_CRASH (SIGABRT) Exception Codes:&#9;&#9;&#9; 0x0000000000000000, 0x0000000000000000 Exception Note:&#9;&#9;&#9;&#9;EXC_CORPSE_NOTIFY Termination Reason:&#9;&#9;DYLD, [0x1] Library missing Application Specific Information: dyld: launch, loading dependent libraries Dyld Error Message: &#9;Library not loaded: @rpath/DVTFoundation.framework/Versions/A/DVTFoundation &#9;Referenced from: /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/Library/Xcode/PrivatePlugIns/IDEOSXSupportCore.ideplugin/Contents/XPCServices/com.apple.dt.XcodeMacLocationSimulation.xpc/Contents/MacOS/com.apple.dt.XcodeMacLocationSimulation &#9;Reason: image not found Binary Images: &#9;&#9;&#9; 0x10f0b0000 -&#9;&#9;&#9;&#9;0x10f0b2ffb&#9;com.apple.dt.XcodeMacLocationSimulation (11.6 - 16005) <9EB3F587-F11A-3F65-8259-029B9E377403> /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/Library/Xcode/PrivatePlugIns/IDEOSXSupportCore.ideplugin/Contents/XPCServices/com.apple.dt.XcodeMacLocationSimulation.xpc/Contents/MacOS/com.apple.dt.XcodeMacLocationSimulation &#9;&#9;&#9; 0x112680000 -&#9;&#9;&#9;&#9;0x112711eff&#9;dyld (750.5) <E4698FBD-806A-3396-B279-E685BA37430B> /usr/lib/dyld
0
0
606
Aug ’20