How to use same Class"XY" for both ios and watchos3 with swif3

45 views Asked by At

I tried to use a Custom Framework but it is not importing in the WatchApp Extension ->interfacecontroller. In the ios App the Import statment work correct.

my question is : how to use same classes in both targets(ios and watchos)

1

There are 1 answers

0
George Villasboas On

Creating a framework is indeed the recommended way to go. Just make sure your framework supports the arm7k architecture and also is compiled against the watchOS SDK.