BottleRocketStudios / iOS-Hyperspace

An extremely lightweight wrapper around URLSession to make working with APIs a breeze.
Apache License 2.0
47 stars 17 forks source link

Hyperspace on WatchOS #119

Closed GrandLarseny closed 4 years ago

GrandLarseny commented 4 years ago

Just ran into an interesting issue where Hyperspace would not work when installed as a dependency of a framework that has watchOS as its Base SDK.

Changing the framework's Base SDK from watchOS to iOS allowed the framework to build just fine, but it couldn't be used by the watch app directly. I imagine that up until now having a WatchKit extension has been just fine, and maybe it always will be, but it'd be nice to be able to use Hyperspace in a watchOS-exclusive app.

tylermilner commented 4 years ago

I agree, we should allow Hyperspace to be used by the new standalone watchOS apps. Since we've had WatchKit extension support for a while now, I can't imagine this would be something terribly difficult to do...

GrandLarseny commented 4 years ago

Ugggghhhh, I am the problem. Turns out I had my Podfile screwed up.

I had set the platform to :ios instead of :watchos and :ios per target. Once I had my Podfile right everything is working.