I've seen another instance here in the forum where "Eskimo" helped, but didn't want to hijack the thread and open mine instead. J
I built a RSS reader using cocoapods applying FeedKit.
The app runs on iOS(11.2.6) and watchOS(4.2).
The simulated version runs as expected, I can read various rss feeds on the simulated watch. - Perfect!
But the same app fails running on the physical watch with the following xCode console output:
Session activated: 2
2018-03-12 12:04:36.279959+0100 RssReader WatchKit Extension[425:996313] dnssd_clientstub ConnectToServer: connect()-> No of tries: 1
2018-03-12 12:04:37.284300+0100 RssReader WatchKit Extension[425:996313] dnssd_clientstub ConnectToServer: connect()-> No of tries: 2
2018-03-12 12:04:38.287957+0100 RssReader WatchKit Extension[425:996313] dnssd_clientstub ConnectToServer: connect()-> No of tries: 3
2018-03-12 12:04:39.291680+0100 RssReader WatchKit Extension[425:996313] dnssd_clientstub ConnectToServer: connect() failed path:/var/run/mDNSResponder Socket:8 Err:-1 Errno:1 Operation not permitted
2018-03-12 12:04:39.303812+0100 RssReader WatchKit Extension[425:996313] [] nw_resolver_create_dns_service_locked DNSServiceCreateDelegateConnection failed: ServiceNotRunning(-65563)
2018-03-12 12:04:39.327295+0100 RssReader WatchKit Extension[425:996313] TIC TCP Conn Failed [1:0x17665b90]: 10:-72000 Err(-65563)
2018-03-12 12:04:39.442468+0100 RssReader WatchKit Extension[425:996348] Task . HTTP load failed (error code: -1009 [10:-72000])
2018-03-12 12:04:39.443905+0100 RssReader WatchKit Extension[425:996313] NSURLConnection finished with error - code -1009
Error Domain=com.feedkit.error Code=-1000 "Feed not found" UserInfo={NSLocalizedFailureReason=Couldn't parse any known feed from the provided DOM structure, NSLocalizedDescription=Feed not found, NSLocalizedRecoverySuggestion=Provide a valid Atom/RSS DOM structure }
2018-03-12 12:06:19.555212+0100 RssReader WatchKit Extension[425:996503] dnssd_clientstub ConnectToServer: connect()-> No of tries: 1
2018-03-12 12:06:20.560959+0100 RssReader WatchKit Extension[425:996503] dnssd_clientstub ConnectToServer: connect()-> No of tries: 2
2018-03-12 12:06:21.566365+0100 RssReader WatchKit Extension[425:996503] dnssd_clientstub ConnectToServer: connect()-> No of tries: 3
2018-03-12 12:06:22.568004+0100 RssReader WatchKit Extension[425:996503] dnssd_clientstub ConnectToServer: connect() failed path:/var/run/mDNSResponder Socket:8 Err:-1 Errno:1 Operation not permitted
2018-03-12 12:06:22.568429+0100 RssReader WatchKit Extension[425:996503] [] nw_resolver_create_dns_service_locked DNSServiceCreateDelegateConnection failed: ServiceNotRunning(-65563)
2018-03-12 12:06:22.570456+0100 RssReader WatchKit Extension[425:996503] TIC TCP Conn Failed [2:0x17572660]: 10:-72000 Err(-65563)
2018-03-12 12:06:22.598663+0100 RssReader WatchKit Extension[425:996503] Task . HTTP load failed (error code: -1009 [10:-72000])
2018-03-12 12:06:22.599387+0100 RssReader WatchKit Extension[425:996503] NSURLConnection finished with error - code -1009
Error Domain=com.feedkit.error Code=-1000 "Feed not found" UserInfo={NSLocalizedFailureReason=Couldn't parse any known feed from the provided DOM structure, NSLocalizedDescription=Feed not found, NSLocalizedRecoverySuggestion=Provide a valid Atom/RSS DOM structure }
2018-03-12 12:15:14.556397+0100 RssReader WatchKit Extension[425:996729] [WC] -[WCXPCManager onqueue_reconnect]_block_invoke error reconnecting to daemon due to NSXPCConnectionInterrupted
sessionReachabilityDidChange: falseRssReader
In the other incident here in the forum, the solution was to activate App Sandbox and configure access rights. - But in my Capabilities section there is no Sandbox entry that could be configured. Do I have to enable App Sandbox capabilities in a different menu within xCode?
Edit: Understood! - App Sandbox is only available vor macOS and not iOS. But how could network access for watchOS and iOS be configured?
Any help apprecited,
-Pete