Project deployment target is iOS9, when add NetWrok framework , Actually it's refers to the PrivateFramewokrs dir, Is it OK?May be rejected by App Store?
Is it OK use NetWork.framework in iOS9?
Is it OK
No. If you are using Network.framework
on a targeted release that spans across many different versions you will need to include an @available
check to make sure these APIs are only used when this is public API. So this would be iOS 12.0+
Matt Eaton
DTS Engineering, CoreOS
meaton3@apple.com
Matt’s answer is 100% correct but I want to provide some backstory here…
Network framework has a long history as an SPI (system programming interface) here at Apple. You can see evidence of this in the Network Extension framework, which offers APIs like NWTCPConnection
for use solely in the context of NE providers. The Network framework you see in /System/Library/PrivateFrameworks
contains various incarnations of this SPI. However, none of these SPIs match the API in public Network framework, which is why that API is only available on iOS 12 and later.
Share and Enjoy
—
Quinn “The Eskimo!” @ Developer Technical Support @ Apple
let myEmail = "eskimo" + "1" + "@" + "apple.com"