I'm trying to automate making accurate alarms to help me estimate when I need to leave to be on time for meetings. To do this accurately, I want to access Apple Maps (or Google Maps services, or ...) to get an estimate of driving times given current driving conditions. So I'd like to query the maps service reasonably close to departure time. (If I get an estimate on Sunday evening at for an appoint on Monday at rush hour leaving from a different location, it's obviously going to be inaccurate.) Ideally, I'd like to directly access my Apple Calendar to get the appointments and their locations. But if that's too complicated, I'll just create a formatted text file or sqlite file or whatever with the information. I've considered doing this with Shortcuts, Automator, AppleScript, JXA, Hammerspoon, Python, etc. It seems that each technology has part of what I need, but not all. But I don't have deep knowledge of any of them. Perhaps someone can advise me on the most appropriate technology. Here are my impr
Search results for
calendar
1,863 results found
Selecting any option will automatically load the page
Post
Replies
Boosts
Views
Activity
I experience the same. I think it is a bug because it used to be working fine prior to watchOS10. I have also tested a few of third party widgets and they have the same problem - not redacted when not worn. Only Apple's own widgets like calendar seems to be working just fine though.
Topic:
App & System Services
SubTopic:
Core OS
Tags:
We use Eventkit Framework to synchronize the meeting calendar to the system calendar, read the System Calendar with -[EKEventStore calendarsForEntityType:], Use - [EKEventStore saveEvent: span: commit: error:] wrote system calendar. This usage currently triggers the Contacts Permission Alert on a user. Through the log, we identified no use - [CNContactStore requestAccessForEntityType: completionHandler:] and Contacts API.
From Protect user privacy with information property list keys: To access a person’s calendar events or reminders through EventKit or EventKit UI, your app needs to include descriptions for the following if your app links to iOS 10 or later, and runs on iOS 10 through iOS 16: NSContactsUsageDescription, as EventKit UI may need to access Contacts data to choose the correct display name or avatar for a contact in a calendar. Warning If your app that’s linked on iOS 10 through iOS 16 doesn’t include these keys, your app crashes.
Topic:
App & System Services
SubTopic:
General
Tags:
See TN3152: Migrating to the latest Calendar access levels and TN3153: Adopting API changes for EventKit in iOS 17, macOS 14, and watchOS 10 for details.
Topic:
Developer Tools & Services
SubTopic:
Xcode
Tags:
hi all, is anyone else seeing this? I am just going back into my app and when I run it now, it's failing on creating a new calendar. I just updated to iOS 17 for the simulator and Xcode as well...
Be sure to read TN3152: Migrating to the latest Calendar access levels.
Topic:
App & System Services
SubTopic:
General
Tags:
I use this function to read calendar headers in a array of strings: `func getCalendarHeaders(ofType: EKEntityType, alerter: Alerter) async -> [String] { var headers: [String] = [] do { if try await requestAuthorizationFor(ofType) { let calendars = try await fetchCalendars(ofType: ofType) for calendar in calendars { headers.append(calendar.title) } } } catch let error { DispatchQueue.main.async { alerter.alert = ErrorManager.shared.showAlert(error: error) } } return headers } In my view model / or view I try to init with: Task { self.eventCalendarHeaders = await CalendarManager.shared.getCalendarHeaders(ofType: EKEntityType.event, alerter: alerter) } Why I get this error? Trailing closure passed to parameter of type 'EKEvent?' that does not accept a closure
Since updating to Sonoma and using XCode 15.0.1 to adapt my app's code base to deal with new requirement for Full Access to calendars, I am simply unable to find ANY valid calendars of type EKEntityTypeEvent despite having about 8 different EKSources available (which I can see and access in the macOS Calendar app), and which do contain calendars I used to be able to read/write to before I updated to Catalina. But the call to EKSource's calendarsForEntityType function always returns nil. I have successfully obtained Full Access permission (which in any case is obviously so because otherwise I would not get access to all the EKSource items). I've also rebooted several times. I have Calendar selected under Resource Access items for the app's capabilities. Does anyone have any idea why, or a workaround? Looks like a potentially serious bug at this point.
I found the apparent cause, by creating a new project containing the simplest possible code to try to replicate this issue, and gradually making changes to replicate specifics of the code usage in my app. It seems that creating and using a second instance of EKEventStore was the cause of the issue. In previous macOS versions this did not cause any problem, and appeared to be valid usage. However, I have apparently been able to resolve the current problem by ensuring that I create and use only a single instance of EKEventStore in my app. Although the second instance I was creating on the fly does contain all the same EKSource entities, and used to return the same calendars in a call to calendarsForEntityType, it now it does not return any calendars at all in a call to calendarsForEntityType. I would suggest that this is a bug. Perhaps EKEventStore should in future be given a shared singleton property in the API.
Topic:
App & System Services
SubTopic:
General
Tags:
I'm currently developing an app on Xcode 15 for macOS 14+ (Swift) The app allows me to launch custom commands, using a simple UI to run them as opposed to having to open the Terminal app. I have successfully been able to use the app to run some simple commands such as: open https://google.com open -a Safari && open -a Mail && open -a Calendar say hi shortcuts run “Lights Camera Action” Unfortunately, if I try to open/run a shell script, I get an error in the Xcode console and the command fails to run. For example: If I create this simple shell script: #!/bin/bash osascript <
You are not alone about this : Hello, Upon further review of the activity associated with your Apple Developer Program membership, we have determined that your membership, or a membership associated with your account, has been used for dishonest or fraudulent activity. Therefore, your Apple Developer Program account has been flagged for removal. Specifically, we found that your account is associated with terminated developer accounts, or accounts pending termination, in direct violation of section 3.2(f) of the Apple Developer Program License Agreement, which states: “You will not, directly or indirectly, commit any act intended to interfere with any of the Apple Software or Services, the intent of this Agreement, or Apple’s business practices including, but not limited to, taking actions that may hinder the performance or intended use of the App Store, Custom App Distribution, TestFlight, Xcode Cloud, Ad Hoc distribution, or the Program (e.g., submitting fraudulent reviews of Your own Application or any thir
Topic:
App Store Distribution & Marketing
SubTopic:
App Store Connect
Tags:
Has anyone else seen this issue? When the Action Button on an Apple Watch Ultra 2 is connected to a Shortcut, it seems to run the shortcut twice. I'm on watchOS 10.0.2. A user of an app I built reported the issue, which is how I knew about it in the first place. I'm wondering if it's an issue on my watch specifically, or if many other people are seeing the same thing. I replicated the issue using a fresh project, and it only seems to happen when the shortcut responds with dialog. Does anyone know why this is happening and how to fix it? The shortcut with a dialog response works fine everywhere else, and only exhibits this behavior when run with the Action Button. Here is the full code with instructions to replicate the issue, so I'm curious if other people see the same thing: // When running a shortcut that returns dialog // with the Apple Watch Ultra Action Button, // the shortcut runs twice. // Create a new iOS project and add this: import AppIntents // AppIntent struct LogEventNow: AppIntent { static var t
I have similar problem. Just happen to me on iOS 17.0.3 and macOS Sonoma. I have an incident where calendar full access permission is granted in Settings>Privacy, but in the app it says No calendar access (status NotDeterminded). But I mean... in the Settings app it is clear that the permission is granted. I thought once the permission is granted, no matter what my code does or if there is any error in my code, the Full Access Permission should stay the same, no?
Topic:
App & System Services
SubTopic:
Core OS
Tags:
I finally figured out the issue and build error I was seeing related to this error. My app minimum target is iOS 16, and I was using a version of AppShortcut.init that is only available in iOS 17. I updated my AppShortcutsProvider code as follows to be able to still support iOS 16, and also the iOS 17 version: struct AppShortcuts: AppShortcutsProvider { static private let phrases: [AppShortcutPhrase] = { return [Do Intent in (.applicationName)] }() static var appShortcuts: [AppShortcut] { if #available(iOS 17.0, *) { return [ AppShortcut( intent: DoMyIntent(), phrases: phrases, shortTitle: DoIntent, systemImageName: calendar ) ] } else { return [ AppShortcut( intent: DoMyIntent(), phrases: phrases ) ] } } }
Topic:
App & System Services
SubTopic:
General
Tags: