Skip to content

iOS deprecated method warning #1425

@zzhhyy

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 (
| ^

Metadata

Metadata

Assignees

No one assigned

    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