Post

Replies

Boosts

Views

Activity

Reply to How to download iOS 14 Simulator on Xcode 15?
According to the release notes: Xcode 15 includes SDKs for iOS 17, iPadOS 17, tvOS 17, watchOS 10, and macOS Sonoma. The Xcode 15 release supports on-device debugging in iOS 12 and later, tvOS 12 and later, and watchOS 4 and later. Xcode 15 requires a Mac running macOS Ventura 13.5 or later. So it looks like you can do on-device debugging, but not use the Simulator. I doubt you have every iOS 14 device so it's not a great help. Maybe you'll have to download a version of Xcode that the Simulator is available for? Is it 100% necessary that you support iOS 14, or could you move your app up a version or two?
Oct ’23
Reply to PLEASE - how do you structure an app with Widgets and Complications?
Morning. Thanks for the help. It kind of spurred me on to spend a few hours doing this: Tried adding a new watchOS Widget Extension to hold the complications. Xcode did not offer to embed it in my Watch app (which should've been a red flag, to be honest). This was definitely a watchOS extension. So, that didn't work out. Cleaned build folder of original app. Tried again. No dice. Edited the project file and removed any references to files that aren't there anymore (why does this file contain references to deleted files anyway?). Same issue with adding a watchOS Widget Extension. Tried a new project. Added a Watch app. Added a watchOS Widget Extension. Again, Xcode did not offer to embed it in the Watch app, so again it didn't work. Took the nuclear option. Deleted Xcode. Deleted any settings for it (plist files etc.). Downloaded it again. Installed. Added watchOS extension to my original app, and this time it did offer to embed it. I've no idea why my install was borked, but I'm now seeing previews. Thanks for the response.
Oct ’23
Reply to Pulling my hair out with Widgets
Some debugging later... .1. Bring up the widget picker. It shows the code picking two random events, one each for the small and medium widgets. It picked the "Gallery Opening" event for both of them. .2. Log output shows: snapshot: inPreview, returning random events // One for the small widget snapshot: inPreview, returning random events // Medium widget WidgetMedium: event.name = 'Gallery Opening' // Medium widget called to display the "Gallery Opening" event snapshot: inPreview, returning random events // Not sure why there's a third call, but anyway... .3. Despite having selected the medium widget that showed "Gallery Opening", the widget is added to the Home Screen without an event selected: .4. I didn't pick the "Paris Trip" event, but the log shows the medium widget being called multiple times for that event: timeline: event.name = Paris Trip WidgetMedium: event.name = 'Paris Trip' WidgetMedium: event.name = 'Paris Trip' WidgetMedium: event.name = 'Paris Trip' ... repeated lots of times .5. Edit the widget. No event has been chosen. I would assume this should be "Gallery Opening" since that's what I picked from the widget picker earlier. How do you link the event picked in the widget picker to the event it should display?!: .6. From the events list, I picked "London Party", and this shows in the log: theEvent: caller: 'timeline': looking for id = London Party! theEvent: caller: 'timeline': event.name = 'London Party!, event.location = 'London' timeline: event.name = London Party! WidgetMedium: event.name = 'London Party!' WidgetMedium: event.name = 'London Party!' WidgetMedium: event.name = 'London Party!' ... repeated lots of times So it is definitely calling the medium widget with the correct event that I've picked, but... .7. Close the event picker, and the widget remains redacted and as though no event has been selected. It doesn't get updated: I'm really at the end of my tether with this. It's not entirely obvious how this stuff is supposed to work. I've based this off the Backyard Birds example, but while it works fine there, it fails here. I just don't understand how to get this to work properly.
Topic: App & System Services SubTopic: General Tags:
Oct ’23