When I generate a dial through code, it prompts the following content: code:
CLKWatchFaceLibrary * lib = [[CLKWatchFaceLibrary alloc] init]; [lib addWatchFaceAtURL:url completionHandler:^(NSError * _Nullable error) {
}];
result: Complex functions are not available
How to fix it? Make it usable, Thank you~
When I generate a dial through code,
The format of a .watchface
file isn't public, and so it isn't really a surprise that a .watchface
file generated with code doesn't work.
The best way to create a watch face is mentioned in the following post:
If you try the process and see the same issue, please share the detailed steps for us to take a look.
I understand though that the process may not be what you are looking for – If you do need to programmatically generate .watchface
files, you might consider filing a feedback report with your use case for the watchOS folks to consider.
Best,
——
Ziqiao Chen
Worldwide Developer Relations.