Due to this include,
#include <resolv.h>
We get the following linking error,
ld: warning: text-based stub file /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator14.0.sdk/usr/lib/libresolv.tbd and library file /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator14.0.sdk/usr/lib/libresolv.dylib are out of sync. Falling back to library file for linking.
ld: warning: ignoring file /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator14.0.sdk/usr/lib/libresolv.dylib, missing required architecture i386 in file /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator14.0.sdk/usr/lib/libresolv.dylib (2 slices)
Undefined symbols for architecture i386:
"res9ninit", referenced from:
+[CCSDKDiagnostics isCurrentNetworkIPv6] in CCSDKDiagnostics.o
"res9getservers", referenced from:
+[CCSDKDiagnostics isCurrentNetworkIPv6] in CCSDKDiagnostics.o
"res9_ndestroy", referenced from:
+[CCSDKDiagnostics isCurrentNetworkIPv6] in CCSDKDiagnostics.o
ld: symbol(s) not found for architecture i386
#include <resolv.h>
We get the following linking error,
ld: warning: text-based stub file /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator14.0.sdk/usr/lib/libresolv.tbd and library file /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator14.0.sdk/usr/lib/libresolv.dylib are out of sync. Falling back to library file for linking.
ld: warning: ignoring file /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator14.0.sdk/usr/lib/libresolv.dylib, missing required architecture i386 in file /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator14.0.sdk/usr/lib/libresolv.dylib (2 slices)
Undefined symbols for architecture i386:
"res9ninit", referenced from:
+[CCSDKDiagnostics isCurrentNetworkIPv6] in CCSDKDiagnostics.o
"res9getservers", referenced from:
+[CCSDKDiagnostics isCurrentNetworkIPv6] in CCSDKDiagnostics.o
"res9_ndestroy", referenced from:
+[CCSDKDiagnostics isCurrentNetworkIPv6] in CCSDKDiagnostics.o
ld: symbol(s) not found for architecture i386