Skip to content

iOS deprecated method warning #1425

Description

@zzhhyy

Some methods have been marked as deprecated in the new iOS SDK. Hope this part of the code can be updated.

stderr:
../../third_party/oneds_sdk/public/third_party/Reachability/ODWReachability.m:98:36: error: 'SCNetworkReachabilityCreateWithName' is deprecated: first deprecated in iOS 17.4 [-Werror,-Wdeprecated-declarations]
98 | SCNetworkReachabilityRef ref = SCNetworkReachabilityCreateWithName(NULL, [hostname UTF8String]);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
| Use URLSession or NWConnection to create connections that dynamically handle changing networks. Use NWPathMonitor to enumerate available network interfaces.
sdk/xcode_links/iPhoneSimulator26.0.sdk/System/Library/Frameworks/SystemConfiguration.framework/Headers/SCNetworkReachability.h:249:1: note: 'SCNetworkReachabilityCreateWithName' has been explicitly marked deprecated here
249 | SCNetworkReachabilityCreateWithName (
| ^
../../third_party/oneds_sdk/public/third_party/Reachability/ODWReachability.m:111:36: error: 'SCNetworkReachabilityCreateWithAddress' is deprecated: first deprecated in iOS 17.4 [-Werror,-Wdeprecated-declarations]
111 | SCNetworkReachabilityRef ref = SCNetworkReachabilityCreateWithAddress(kCFAllocatorDefault, (const struct sockaddr*)hostAddress);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
| Use URLSession or NWConnection to create connections that dynamically handle changing networks. Use NWPathMonitor to enumerate available network interfaces.
sdk/xcode_links/iPhoneSimulator26.0.sdk/System/Library/Frameworks/SystemConfiguration.framework/Headers/SCNetworkReachability.h:209:1: note: 'SCNetworkReachabilityCreateWithAddress' has been explicitly marked deprecated here
209 | SCNetworkReachabilityCreateWithAddress (
| ^

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions