Can I build my own networking framework (which is dependent on AFNetworking) as a watchOS2 framework?

后端 未结 2 1620
后悔当初
后悔当初 2020-12-15 10:38

I\'ve been trying to modify my project to support WatchOS2 architecture. Currently I have a networking framework that is based on AFNetworking. I\'ve been using it with my

2条回答
  •  情书的邮戳
    2020-12-15 11:18

    Here is a recent commit on github for AFNetworking to support watchOS.

    • https://github.com/AFNetworking/AFNetworking/commit/d184833fa015a783742b573cf48a3080b863a900

    Looking at the changelog..

    • https://cocoapods.org/pods/AFNetworking#changelog

    Version 2.6.0 supports watchOS...

    This release now supports watchOS 2.0, which relys on target conditionals that are only present in Xcode 7 and iOS 9/watchOS 2.0/OS X 10.10. If you install the library using CocoaPods, AFNetworking will define these target conditionals for on older platforms, allowing your code to complile. If you do not use Cocoapods, you will need to add the following code your to PCH file.

提交回复
热议问题