有人知道是否可以使用新的WatchOS2直接从手表管理UDP侦听器(接收和发送数据)而不使用iPhone作为支持?我有一个应用程序与UDP侦听器,我想转移到手表,以避免设备之间的通信.
解决方法
由于CFNetwork框架不是watchOS 2中可用的框架之一,因此从Apple Watch将无法直接进行套接字通信.
Apple pre-release documentation状态:
Extensions built specifically for watchOS 2 have access to the following system frameworks:
- ClockKit
- Contacts
- Core Data
- Core Foundation
- Core Graphics
- Core Location
- Core Motion
- EventKit
- Foundation
- HealthKit
- HomeKit
- ImageIO
- MapKit
- Mobile Core Services
- PassKit
- Security
- Watch Connectivity
- WatchKit