Search results for

A Summary of the WWDC25 Group Lab

10,109 results found

Post

Replies

Boosts

Views

Activity

Sequoia Group Container for Mac Catalyst Apps
Prior to Sequoia, Mac Catalyst Apps worked fine when using group folders that started with group. They now get an alert that the Mac Catalyst app is trying to access data from other applications. This may also impact some SwiftUI developers. According to this the documentation for the App Group Entitlements entitlement, on macOS we should begin use the Team Identifier instead of group. Should Mac Catalyst follow the macOS or iOS rules for com.apple.security.application-groups? If they should need to follow the macOS rules now, that creates several issues for developers. We would now need separate build targets to pick up the different Entitlements files. More distressing is that we would need to do some kind of migration process to get our files to the new location. There wouldn't be a transparent way to do so where the user wasn't warned about the application accessing files that don't belong to it. Any clarification on what Mac Catalyst developers should be doing
18
0
2.7k
Jun ’24
Reply to Error while starting a playground: UNCAUGHT EXCEPTION (NSInvalidArgumentException)
The thing is that my xcode won't even open the code. What I do is: I am in Finder with all these student materials. I open the playground Student Resources/2 - Introduction to UIKit/6 - Loops/lab/Lab - Loops.playground. I can see on the top left that Xcode opens Xcode immediately closes and I am back in Finder Within 30 seconds or so I am getting given error So I don't even have a chance to do anything with the code since Xcode closes immediately. Do you think that another version of Xcode would help?
Sep ’20
Apple Pay - errors in AuthorizationViewController, Questions on payment Summary
If I only have one product item in Apple Pay, how would I detect a total? My app is a donation platform, so I don't need to actually ship anything, but would like contact info. I have a number of errors that I have tried to figure out to debug to no avail. Any help is appreciated.Also I keep getting this error (this was the same as the sample code given from WWDC).This is in my BuyTicketViewController.swift file. if PKPaymentAuthorizationViewController.canMakePaymentsUsingNetworks(BuyTicketViewController.paymentNetworks) { let button = PKPaymentButton(type: .Buy, style,: .Black) button.addTarget(self, action: applePayButtonPressed, forControlEvents: .TouchUpInside) button.center = applePayView.center button.autoresizingMask = [.FlexibleLeftMargin, .FlexibleRightMarin] applePayView.addSubview(button) } }The error says 'expected declaration.'The sample says to use else (for traditional checkout). When I put that it, it breaks the rest of my code and I get lots of errors.line 8 - eror on MerchantIDline 9 - error
0
0
1.1k
Sep ’15
Reply to Circular Reference Error in Xcode 26
Adding nonisolated to my struct fixed the issue. My project is, as well, on MainActor default isolation mode. Although this fixes the problem, I am not sure about any repercussions that this might have in terms of concurrency. I am also new to Swift concurrency (I found Embracing Swift Concurrency from WWDC25 to be very helpful if you haven't watched it already). However, I am not sure if this is intended functionality or not because the error gives very little information. Thanks for your solutions!
Topic: Programming Languages SubTopic: Swift Tags:
Jun ’25
AppleScript App entitlement when access-group identifier="*"
I am developing a Mac app that makes use of App Scripting. The is Sandboxed and thus needs the proper entitlements in order to get permissions to send AppleScript events to other apps. I have gotten this working properly for apps (like Mail and spotify) which specify access-group identifiers like this:<access-group identifier=com.apple.mail.compose access=rw/> <access-group identifier=com.spotify.playback/>However, a few other of the Apple made apps (like Xcode) specify their identifiers like this:<access-group identifier=*/>I have tried to configure my entitlement file like this:<key>com.apple.security.scripting-targets</key> <dict> <key>com.apple.dt.Xcode</key> <array> <string>*</string> </array> </dict>, but when doing this it does not work and I get this error message in the console:AppleEvents/sandbox: Returning errAEPrivilegeError/-10004 and denying dispatch of event xcod/buld from process '
1
0
1.4k
Mar ’17
How do I find out which groups a unified contact belongs to?
Hi, would someone help me get started on a problem in iOS using Swift? How do I get all the groups that a unified contact belongs to? Or how would I check to see if a contact is within a group? That would allow me to find out all the groups that a contact belongs to. I suspect what I need to learn is how to create the predicate to set the predicate property of a CNContactFetchRequest that I need to use.Any help will be appreciated.
Topic: UI Frameworks SubTopic: UIKit Tags:
0
0
390
May ’18
If I delete the App Group Does it affects live uses?
I recently changed my developer account from account A to account B. I have successfully transferred my applications. With transfer of applications my app group was not migrated. Question - Can I deleted the app group from account A and recreate it in account B with the exact same identifier. If means does it affects the live users. Which means does the live user can able to use our application without any data loss(Logout)
1
0
1k
Sep ’21
Find the name of a CNContact's group (CNGroupName)
So I only recently uncovered the Contacts Framework through this video: https://youtu.be/sHKir2ZMk5Q. As such I'm not yet accustomed to the API. Basically my main problem is that I can't seem to find a way to access the name of the group a CNContact is in. The only support I can find is in Apple's own documentation, which isn't very helpful. if someone could point me in the right direction towards how to print the group name, I would be very grateful. My code is below, Cheers // ModelData.swift // B-Day import Foundation import Contacts import SwiftUI struct Contact: Identifiable { let id = UUID() let category: String let firstName: String let lastName: String let birthday: DateComponents? } func fetchAllContacts() async -> [Contact] { var contacts = [Contact]() let store = CNContactStore() let keys = [CNContactGivenNameKey, CNContactFamilyNameKey, CNContactBirthdayKey, CNContactIdentifierKey, CNGroupNameKey] as [CNKeyDescriptor] let fetchRequest = CNContactFetchRequest (keysToFetch: keys
1
0
1k
Aug ’23
What is the downside of using wildcard keychain-access-group
<key>Entitlements</key> <dict> <key>application-identifier</key> <string>A1B2C3D4E5.com.example.myapp</string> <key>aps-environment</key> <string>production</string> <key>get-task-allow</key> </false> <key>keychain-access-groups</key> <array> <string>A1B2C3D4E5.*</string> </array> </dict>Would using a wildcard keychain in two shared Apps from the same publisher mean that each app can access every keychain item of the other?ie. if A1B2C3D4E5.com.example.myapp and A1B2C3D4E5.com.example.myOtherApp had the keychain groups as defined above, then would each of them be able to access ALL of the keychain items of the other? even the ones stored under the group A1B2C3D4E5.com.example.myapp or A1B2C3D4E5.com.example.myOtherApp?
0
0
874
Jan ’16
Get Application Scripts directory for app group
For the current app, I can get the Application Scripts directory with FileManager.url(for: .applicationScriptsDirectory, in: .userDomainMask, appropriateFor: nil, create: true), but I cannot find a similar API for application groups. Does one exist, or do I have to construct the URL manually? That would probably be ~/Library/Application Scripts/[app group id], but there doesn't seem to be a FileManager API to access ~ either, as FileManager.default.homeDirectoryForCurrentUser returns /Users/username/Library/Containers/[app id]/Data/.
4
0
709
Feb ’24