Im having trouble requesting access to save a new contact as of today with updating to Ventura 13.0 (22A380).
Im requesting access to contacts using
@IBAction func requestConactsAccess() {
CNContactStore().requestAccess(for: .contacts) { granted, error in
if granted {
// Yes
print("Granted")
self.authStatusLabel.text = "Granted"
} else {
// No
print("Denied")
self.authStatusLabel.text = "denied"
}
}
}
But it is just being automatically denied.
I can't save a contact either with an app that previously had permission.
I created a small app to test this from scratch using the documentation "Working with the user’s contacts" https://developer.apple.com/documentation/contacts?language=objc
I have been doing this since the first version of the app, Ive never had an issue Has something changed with regards to Requesting access to contacts in latest OS?
https://developer.apple.com/documentation/contacts/requesting_authorization_to_access_contacts
Thank you.
Selecting any option will automatically load the page
Post
Replies
Boosts
Views
Activity
Hello,
Ive ben having an issue with one of my Apps since Ventura came out. The app won't create a new contact It fails giving a few different warnings but no real error. I have tried it unto Ventura 13.0.1 (22A400)
The error is
2022-12-03 09:33:54.543143+1000 **** [1941:15105] [api] Attempt to write notes by an unentitled app
2022-12-03 09:33:54.580714+1000 **** [1941:15105] [plugin] CDX_AB_GetGroupCollectionPath: nil group
2022-12-03 09:33:54.580765+1000 **** [1941:15105] [plugin] CDX_AB_GetGroupCollectionPath: nil group
2022-12-03 09:33:54.581969+1000 **** [1941:15105] [ABCDContact] An ABCDRecord is being saved without having a container assignment. Assigning the contact to <CNCDContainer 0x6000013c92c0 ab>. Please remember to assign contacts to containers to avoid recurring container lookup and contact re-validation costs.
.
When I follow the instructions on this page https://developer.apple.com/documentation/contacts to create a new contact It fails on Ventura to create a new contact and I don't know why. So I submitted a feedback Assistant request (FB11721907)
But I also went ahead and got Notes field access as that was one of the warnings.
That got approved, Now I would like help adding it in my project.
I logged into the Developer Portal and in Identifiers, located my app and went to Additional Capabilities ticked the Box marked Contacts Notes Field Access.
Then instructions in the email say 'Once you’ve finished generating the profile, you can use it in Xcode like any other manually-generated profile.' Im not sure what this means.
I tried to add 'com.apple.developer.contacts.notes' Boolean, YES, to the entitlement file as described in https://developer.apple.com/documentation/bundleresources/entitlements/com_apple_developer_contacts_notes but the app doesn't launch when it's added. And if I put it into the info.plist file it does nothing. Also im not sure how to add the purpose string.
Hello,
Im trying to save a custom object into coredata and it works fine on iOS but when trying to run the same code on the Mac Catalyst version of my app I get an error
Ambiguous use of 'encode(_:forKey:)'
I created a class for the object.
I made it type NSObject & NSSecureCoding.
I tried to make it encode and decode and save to CoreData with a transformer.
Works on iOS version of my app but not macOS.
Why is that?
Ty
Hello,
Im using a coredata to populate a list.
When I add a new object the list dissent update until close the app and open it again. But this only started happening after I started using a predicate in the fetch request,
Taking the Predicate out makes it work again. I tried everything else. This is the only thing that is causing it. Has anyone else experienced this?
@FetchRequest(
sortDescriptors: [NSSortDescriptor(key: "sobrietyDate_month", ascending: true),NSSortDescriptor(key: "sobrietyDate_day", ascending: true),NSSortDescriptor(key: "first_name", ascending: true)],
predicate: NSPredicate(format: "isVisible == %@", "1")
) var allContacts: FetchedResults<User>
if I take the predicate out it starts updating again. I tried this with Apple standard out of the box CoreData project, by adding a new object to core data as a bool then
@FetchRequest(
sortDescriptors: [NSSortDescriptor(keyPath: \Item.timestamp, ascending: true)],
predicate: NSPredicate(format: "isVisible == %@", "1"),
animation: .default)
private var items: FetchedResults<Item>
Same thing happens, Won't update live until the app is closed.
Any ideas
Thanks
Hello,
App review team rejected my app update under guideline 2.1 - Information needed.
Asking me :
"
To help us proceed with the review of your app, please provide detailed information to the following questions. The more information you can provide upfront, the sooner we can complete your review.
– Does your app include any Siri Shortcuts features?
– If so, where can we locate Siri Shortcuts in your app?
"
Ive replied letting them where to find the Siri shortcut in my app.
Has anyone else been asked this question?
Sometimes it feel like they reject my app for the weirdest reasons.
It would be nice if they had a yellow icon for an Enquiry, Getting the RED REJECTED letter in the email makes my heart stop.
Hello,
Ive had some feedback from a customer asking that when he uses my app to start the mindfulness focus. Ive tried this on iPhone and setup the mindfulness focus to start when my app is open and that works fine, however this is not mirrored on my Apple Watch where the app is used.
Upon opening the Apple Watch app the focus does not turn on.
How can I get this working?
Thank you.
I like to keep my apps watch face complication up to date when the user completes an activity but calling WidgetCenter.shared.reloadAllTimelines() is not working as well as the old complication update now I want to go back to complications. I used to call CLKComplicationServer.sharedInstance().reloadTimeline(for: <#T##CLKComplication#>) which would update my complication instantly.
The simulator seams to up date widgets immediately but now my app has been released pn the App Store it is not updating.
Any one else experiencing this.
Ive got a little animation on the first screen on my watchOS app, but in watchOS 10.1 it's not showing up. It docent work. I can't use the simulator to find out why because I haven't got watchOS 10.1 simulator. - here is the code that works on watch OS 10
func updatCurrentProgress() {
print("updatCurrentProgress")
withAnimation(.interpolatingSpring(duration: 1.2, bounce: 0.0, initialVelocity: 0.0).delay(0.5)) {
currentProgress = tiyowehSession.currentDayGoalComplete
} completion: {
if customGoalValue > 0 && UserDefaults.standard.double(forKey: "currentDayGoalComplete") < 1.0 && tiyowehSession.currentDayGoalComplete >= 1.0 {
WKInterfaceDevice.current().play(.notification)
print("playing .success)")
goalProgressViewOpasity = 0.0
goalCompleteTickOpasity = 1.0
withAnimation(.easeOut(duration: 2.0).delay(1.2)) {
goalCompleteTickOpasity = 0.0
goalProgressViewOpasity = 1.0
}
}
UserDefaults.standard.set(currentProgress, forKey: "currentDayGoalComplete")
}
}
.
The sound plays correctly "WKInterfaceDevice.current().play(.notification)"
but the opacity docent change like it used to.
hello,
Im struggling with the Minimum deployments section in Xcode 14 for the Target of my iOS and Mac Catalyst app.
Its a bit different from what I'm used, previously I could look at the values in a drop down box. That values I would like to set are iOS 12.4 and MacOS 11.0.
What is macOS 14.2 ? it that a catalyst number, What macOS is that?
Nevermind I found this -
macCatalyst 13.0 = macOS 10.15
macCatalyst 13.4 = macOS 10.15.4
macCatalyst 14.0 = macOS 11.0
macCatalyst 14.7 = macOS 11.6
macCatalyst 15.0 = macOS 12.0
macCatalyst 15.3 = macOS 12.2 and 12.2.1
macCatalyst 15.4 = macOS 12.3
macCatalyst 15.5 = macOS 12.4
macCatalyst 15.6 = macOS 12.5
How do I delete a question?
Hi everyone,
I’m testing my Catalyst SwiftUI project on iOS 26 / iPadOS 26 / macOS 26. I started with a NavigationSplitView (triple-column) inside a WindowGroup. On iPad it looks great: the toolbar items merge into the navigation bar, with the three traffic lights.
But on Mac Catalyst, the app always reserves a blank safe area below the traffic lights, and places the toolbar on a separate line beneath the title bar. That leaves wasted vertical space I don’t want.
What I expect (based on Apple’s WWDC session “Elevate the design of your iPad app”):
The toolbar should merge into the title bar with the traffic lights, no separate row.
Content should extend into the full height of the window.
What I get on Mac Catalyst:
Title bar + traffic lights at the top.
Then a completely separate toolbar row below it.
Safe area inset prevents my content from reaching the top of the window.
What I’ve tried:
.toolbarRole(.automatic), .editor, .browser → no effect.
Hiding the title bar via titlebar?.titleVisibility = .hidden → removes the text but not the toolbar gap.
Clearing titlebar?.toolbar → no difference.
So far, I can’t find any way to get Catalyst to integrate toolbars into the window chrome the way native SwiftUI on macOS does.
Is this a known limitation of Mac Catalyst, or is there a supported way to achieve the same “inline toolbar with window controls” layout? Switching to a Mac app vs. Catalyst fixes the issue, but I would have a lot more work to do to get the app ready for release, not ideal since it works near perfect on iPad.
Thanks!