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
Selecting any option will automatically load the page
Post
Replies
Boosts
Views
Activity
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:	Library not loaded: @rpath/DVTFoundation.framework/Versions/A/DVTFoundation	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	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:							 com.apple.dt.XcodeMacLocationSimulation [2127]
Path:									/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:						com.apple.dt.XcodeMacLocationSimulation
Version:							 11.6 (16005)
Build Info:						IDEOSXSupport-16005000000000000~143
Code Type:						 X86-64 (Native)
Parent Process:				??? [1]
Responsible:					 Xcode [1907]
User ID:							 501
Date/Time:						 2020-08-31 23:54:47.347 +0200
OS Version:						Mac OS X 10.15.5 (19F101)
Report Version:				12
Bridge OS Version:		 3.0 (14Y908)
Anonymous UUID:				BED37D64-689E-63A4-6755-6A2BF5583EF3
Time Awake Since Boot: 1700 seconds
System Integrity Protection: enabled
Crashed Thread:				0
Exception Type:				EXC_CRASH (SIGABRT)
Exception Codes:			 0x0000000000000000, 0x0000000000000000
Exception Note:				EXC_CORPSE_NOTIFY
Termination Reason:		DYLD, [0x1] Library missing
Application Specific Information:
dyld: launch, loading dependent libraries
Dyld Error Message:
	Library not loaded: @rpath/DVTFoundation.framework/Versions/A/DVTFoundation
	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
	Reason: image not found
Binary Images:
			 0x10f0b0000 -				0x10f0b2ffb	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
			 0x112680000 -				0x112711eff	dyld (750.5) <E4698FBD-806A-3396-B279-E685BA37430B> /usr/lib/dyld