I am upgrading one of my applications from Xcode 7 to Swift 2.0 .
My Xcode 6 and Watch OS 1 application used Cocoa touch infrastructure to share the Core Data model between the iOS app and the WatchKit strong> extension .
With Swift 2.0 and Xcode 7, I noticed that my framework is no longer recognized in my WatchKit extension , I get
There is no such module. Model
in
import Model
I read something about this on the Internet and one of them outlined the Watch Framework design :
, iOS, WatchKit .
1) Cocoa WatchKit - ?
2) Core Data? Apple Watch, iOS. ?
watchOS 1.0 iPhone, watchOS , iPhone. watchOS 2.0 iPhone, Watch. , iOS, watchOS iOS, watchOS - .watchOS, Watch.
@blobbfuesch, , watchOS 2 , Watch.
( ) , " Framework", , " " 2 (Cocoa Touch Watch).
update : watchOS 2.0
WatchConnectivity, WCSession, Watch Phone. , , , .
WCSession
Source: https://habr.com/ru/post/1608232/More articles:How to avoid template template when calling parent constructor - c ++Javascript / angular - Scrolling an array back with forEach - javascriptBase64 encoding or random string bin2hex - stringWhen deploying a Windows IoT application, an application activation error occurs locally - c #A shorter way to write python for a loop - pythonWill the status of the “Pending Developer Release” application stop beta testing in Testflight - app-storeWhen to use NULL and when to use '\ 0' in a linked list in C? - cUnable to install pika using pip install - pythonSearch index in array in python - pythonJavaScript, Matter.js: disable collision for one organ - javascriptAll Articles