Closed bjornoleh closed 2 years ago
Turns out there are references to xcuserdata for the Duration scene:
Build input files cannot be found: '/Users/dirk/workspace/nightguard/nightguard/fi-FI.lproj/Duration.strings', '/Users/dirk/workspace/nightguard/nightguard/de.lproj/Duration.strings', '/Users/dirk/workspace/nightguard/nightguard/Base.lproj/Duration.storyboard'
I managed to delete the xcuserdata, and switch to relativ path for Duration.storyboard (Duration.storyboard; sourceTree = "
After that I cant build the watch app for some reason, I may have messed up the bundle identifiers. I added "2" to the default obne. But only got this error after I deleted the xcuserdata:
error: WatchKit App doesn't contain any WatchKit Extensions whose WKAppBundleIdentifier matches "de.my-wan.dhe.nightguard2.watchkitapp". Verify that the value of WKAppBundleIdentifier in your WatchKit Extension's Info.plist matches the value of CFBundleIdentifier in your WatchKit App's Info.plist.
I deletedDelete Watchapp and Watchapp extension targets just to get past this, and then I could successfully build to the phone.
Edit: I also commented out this code block for "Play haptic sound" to avoid the very first build error I ran into.
// Play haptic sound
// if value.truncatingRemainder(dividingBy: snapIncrement) == 0 { // if let lastAssignedValue = row.lastSelectedValue { // if Int(lastAssignedValue 10) != Int(value 10) { // let uiImpactFeedbackGenerator = UIImpactFeedbackGenerator(style: .medium) // uiImpactFeedbackGenerator.impactOccurred() // } // } // } // row.lastSelectedValue = value
With the initial hurdles behind me, could someone please give me a hint about how to enable the Bedside view? It seems to be disabled in the current master? It might make a good starting point for my project.
In fact I can not get to the Bedside / Full screen view on mu iPhone 13 mini, also not in the Appstore / Testflight releases. Am I missing something, or is this a bug? The release notes does mention fixing delta values in full screen:
V3.6.4:
Delta values for mmol should be displayed now correctly on th fullscreen and in notifications.
Hi! Bedside view works fine for me on the latest Testflight. So maybe something on sour side? I needed to make some mods to the Eureka Framework. I would have to document this.
This is the reason why you had to comment out some code. But shouldn't be the reason for the bedside view not to come up.
Thanks for your reply! How is the Bedside view activated on the phone, is there a hidden button to push? I think I have seen it before, but not now on both 13 mini and an old SE (2026), both running iOS 15.2 and Nightguard 3.6.4.
Its the target sign on the snooze button. A short press opens a menu. From there you can open the bedside view.
bjornoleh @.***> schrieb am Mi. 5. Jan. 2022 um 19:19:
Thanks for your reply! How is the Bedside view activated on the phone, is there a hidden button to push? I think I have seen it before, but not now on both 13 mini and an old SE (2026), both running iOS 15.2 and Nightguard 3.6.4.
— Reply to this email directly, view it on GitHub https://github.com/nightscout/nightguard/issues/178#issuecomment-1005967680, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAYPBFLI7MVAXF5WLFE7XHTUUSDSJANCNFSM5LJ4URVA . You are receiving this because you commented.Message ID: @.***>
Ah, thanks! I had no intention of using the alarms at this point, so had disabled them. Then the Snooze slider and target button was hidden.
Ah ok - that is a known glitch that should be changed, too :-/
bjornoleh @.***> schrieb am Mi. 5. Jan. 2022 um 21:14:
Ah, thanks! I had no intention of using the alarms at this point, so had disabled them. Then the Snooze slider and target button was hidden.
— Reply to this email directly, view it on GitHub https://github.com/nightscout/nightguard/issues/178#issuecomment-1006044370, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAYPBFLVVQGTJNKAZWQHUMTUUSRA3ANCNFSM5LJ4URVA . You are receiving this because you commented.Message ID: @.***>
Ok :-)
I noticed there is also no way to snooze an alarm from the Bedside / Full screen view. Not sure if that is intentional either?
Yes - there is currently a ticket open with such a request . Would be nice to have it there, too. But not implemented yet.
bjornoleh @.***> schrieb am Mi. 5. Jan. 2022 um 23:07:
Ok :-)
I noticed there is also no way to snooze an alarm from the Bedside / Full screen view. Not sure if that is intentional either?
— Reply to this email directly, view it on GitHub https://github.com/nightscout/nightguard/issues/178#issuecomment-1006116157, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAYPBFNU5KIMNBGIQLJ7RNLUUS6L3ANCNFSM5LJ4URVA . You are receiving this because you commented.Message ID: @.***>
I was thinking about modifying the main view or adding a simple view visible at a distance on a small screen. But I am having issues building current master with Xcode, so would have to get past that hurdle first.
Versions: macOS 12.0.1 Xcode 13.2 iOS 15.2
(I was thinking about nightstand mode with BG, delta, COB and IOB, and a small BG chart of the last hour or two, perhaps someone already did that? Something similar to https://github.com/mlukasek/M5_NightscoutMon, but on an iPhone).
I have installed pods, and get build succeeded. But I fail in installing the app to a phone.
Here is the error message:
I can't seem to find anything missing in Info.plist, and CFBundleExecutable seems ok:
Any pointers for how to proceed?