I have a project which has iOS 10.0 deployment target in which I import Network framework in some class and conditionally using it depending on the host app’s iOS version.
With Xcode 13 beta 4(13A5201i), I am able to compile and run the project successfully while debugging on iPhone device but it gives below error.
This was working fine with Xcode 12.5.1
/Applications/Xcode-beta.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS15.0.sdk/usr/lib/swift/Network.swiftmodule/armv7-apple-ios.swiftinterface:1254:19: 'NWConnection' is only available in iOS 12.0 or newer
/Applications/Xcode-beta.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS15.0.sdk/usr/lib/swift/Network.swiftmodule/armv7-apple-ios.swiftinterface:1254:1: Add @available attribute to enclosing extension
/Application/NWBrowserManager.swift:10:8: Failed to build module 'Network' for importation due to the errors above; the textual interface may be broken by project issues or a compiler bug
Selecting any option will automatically load the page
Post
Replies
Boosts
Views
Activity
As per the Apple documentation of HMHomeManagerDelegate, this protocol will give you the action which are performed outside of the app.
When creating or removing the Home inside our app, this protocol’s delegate method shall not call.
But in some cases, below delegate methods are called even when the creation operation performed within the application which should not happen.
So after “didAdd” delegate method calls HomeManager home has two home with same name.
And may be because of that, application getting the home remove event through “didRemove” delegate method.
optional func homeManager(_ manager: HMHomeManager, didAdd home: HMHome)
optional func homeManager(_ manager: HMHomeManager, didRemove home: HMHome)
So, can anyone please help that in what case the delegate method called while creating home inside application?
I am trying to add accessory in specific room with below method and payload
guard let payload = HMAccessorySetupPayload(url: url) else {
print(“HomeKitService > Unable to create HMAccessorySetupPayload from URL > \(String(describing: url))")
return
}
It was working fine with previous iOS 15 beta releases and previous iOS versions but now the same code gives the payload error
Failed to create HMSetupAccessoryPayload from setup payload URL <REDIRECT_TO_HOMEKIT_URL> : Error Domain=HMErrorDomain Code=3 "(null)"