Post

Replies

Boosts

Views

Activity

SwiftUI needs MacOS 10.15?
Hey, I'm working on a new multi-platform application, and part of the application requires a calendar. I've created Day, Week, and Month calendar and they are all working as expected on Mac/iPhone and iPad. So I decided that I would make them a Library/Package and share with the community. I created a package project, moved all the working code into it, and then added the package into my project as a local dependency. Now I'm getting lots of errors in the package code about everything is only available in macOS 10.15. It's not the code as I know it works. I have platforms: [ .macOS(.v10_14), .iOS(.v15) ] This is my first attempt at a package. Is there something I'm not doing? Thanks, Mark
2
0
566
Apr ’24
CloudKit stopped syncing on WatchOS
Hey, I have an iOS/watchOS application that has been in the App Store since the beginning of last year (for reference: https://endsplus.com). Part of the functionality includes: Create a Fixture on the Phone Create Fixture on iOs Fixture is saved to Core Data Core Data syncs with CloudKit WatchOs pulls down the record, updating a table of the same name I can show the Fixtures on the Watch. Track a game on the Watch and then save it. Create a Game on WatchOS Game is saved to Core Data Core Data syncs with CloudKit iOS pulls down the record, updating a table of the same name I can show the games on the phone. For reasons I am unable to work out syncing of core data tables between the phone and the watch has stopped working. I know that the iOS coredata/cloudkit functionality is working as I can create a record on my physical phone, then run a simulator and log in with the same iCloud account and see the record. But the functionality has stopped working for watchOS. I have added a new table to the Watch side that is not syncing to the Phone, but an existing table (Fixture) that has been working has also stopped syncing between the phone and the watch. None of my Persistence/Core Data code has changed. My new table is associated with a Cloud Store, the same as my old table is. What options are they available to me to try and debug this. The watchOs simulator doesn't seem to work with CloudKit, telling me it is not signed in. I've tried looking at the CloudKit database logs, but obviously for security I can't see the data, but I can't see any errors from the watch. I've uninstalled and re-installed the application (on the phone and the watch) numerous times, but that isn't working. Does anyone have any ideas? Thanks
4
0
853
Oct ’23
Custom NSView crashes app but runs fine in Xcode
Hi, I have created a reusable NSView (backed by a .xib file) that I add twice to a storyboard by adding CustomView object and changing the name of the class. When I run the code from inside Xcode (on both intel and m1 macs) the code runs as expected. When I create a binary (via Project Archive) the code crashes when it tries to load the Storyboard with the error: Terminating app due to uncaught exception 'NSInternalInconsistencyException', reason: 'NSSlider 0x7fc5c740d8e0 has reached dealloc but still has a super view. Super views strongly reference their children, so this is being over-released, or has been over-released in the past.' I have split the code out of the main project into a test project to see if the problem still occurred and it does. So it must have something to do with my implementation. I understand what the error means, but as it works in Xcode I'm not sure how to go about trying to resolve this. Can anyone provide some guidance as to how to fix this? Thanks Test project code is here : https://github.com/githublemming/BugCode
7
0
1.5k
Mar ’21
Independent Watch app with optional iOS companion
Hi, I have an independent watchOS application currently in the App Store: https://apps.apple.com/us/app/ends/id1519994705. As part of the usage of the application a Scorecard of points is built up as more 'Ends' are played. What I want to be able to do is sync that information to an iOS device in order that user can print/forward the scorecard after the game if required. But, what I don't want to do is force the users to download the iOS application if they don't need the additional functionality. They might be happy to just use the watch app, reset it, and lose the data. Is this possible? Can I add an additional target to the application that has more advanced iOS functionality, but still allow the user to just download the watch app if they desire? Then maybe get the iOS app later if needed? I've read the docs, but it's not clear to me. Thanks, Mark
1
0
678
Aug ’20