parse-community / Parse-SDK-iOS-OSX

The Apple SDK for Parse Platform (iOS, macOS, watchOS, tvOS)
https://parseplatform.org
Other
2.81k stars 865 forks source link

SystemConfiguration.h not found when building on watchOS simulator #1743

Closed dplewis closed 9 months ago

dplewis commented 10 months ago

New Issue Checklist

Issue Description

This error occurs in PFReachability

SystemConfiguration is not available when building for watchOS Simulator. Consider using `#if __has_include(<SystemConfiguration/SystemConfiguration.h>)` to conditionally import this framework.

Steps to reproduce

Add Parse via SPM to the watchOS starter project and build

Solution

Implement WatchConnectivity, rewrite to ping the /health server endpoint or stub out PFReachability for watchOS. Example: https://github.com/AFNetworking/AFNetworking/commit/d184833fa015a783742b573cf48a3080b863a900

parse-github-assistant[bot] commented 10 months ago

Thanks for opening this issue!

dplewis commented 9 months ago

Closing via https://github.com/parse-community/Parse-SDK-iOS-OSX/pull/1748