Does it support watchOS 7?
Closed this issue · 15 comments
When I opened it on watch, it crashed. Xcode 11.6. Do I need to download Xcode 12?
This may be the cause
func swizzleDefaultTime() {
try! swizzleInstanceMethodObjcString(
of: "CLKTimeFormatter",
from: "timeText",
to: #selector(CLKTimeFormatter.swizzled_timeText)
)
}
Thread 1: Fatal error: 'try!' expression unexpectedly raised an error: Swizzle.SwizzleError.classNotFound(errorMessage: "Swizzled class "CLKTimeFormatter" could not be found!")
It's not updated to wathOS 7 yet.
What happens if you comment the inside of the function?
It's not updated to wathOS 7 yet.
What happens if you comment the inside of the function?
It will have this problem
Hide clock in WatchOS 6 #22
Thanks for pointing this out. I'll take a look at it.
In the mean time you should try changing line 63 in InterfaceController.swift
from
if #available(watchOS 6, *) {
to if #available(watchOS 7, *) {
In the mean time you should try changing line 63 in
InterfaceController.swift
from
if #available(watchOS 6, *) {
toif #available(watchOS 7, *) {
I tried, but after this function is called, there is an error
Thread 1: Fatal error: 'try!' expression unexpectedly raised an error: Swizzle.SwizzleError.classNotFound(errorMessage: "Swizzled class "CLKTimeFormatter" could not be found!")
func swizzleDefaultTime() {
try! swizzleInstanceMethodObjcString(
of: "CLKTimeFormatter",
from: "timeText",
to: #selector(CLKTimeFormatter.swizzled_timeText)
)
}
Thanks. It seems like this needs further investigation.
Thanks. It seems like this needs further investigation.
Thanks.I like this watch face very much
I've created a watchOS7 branch that has the fix for hiding the time. Unfortunately I can't try it on real hardware right now. Could you try it?
I've created a watchOS7 branch that has the fix for hiding the time. Unfortunately I can't try it on real hardware right now. Could you try it?
I Can try it.
I've created a watchOS7 branch that has the fix for hiding the time. Unfortunately I can't try it on real hardware right now. Could you try it?
Yeah! It's working! Only the temperature look's not working.
Thanks!
I've fixed the weather and the font issues. It's on the master branch.
I've fixed the weather and the font issues. It's on the master branch.
thanks,but the temperature still not working
I've fixed the weather and the font issues. It's on the master branch.
And can you add sleep analysis?