Search results for

“A Summary of the WWDC26 Group Lab”

10,966 results found

Post

Replies

Boosts

Views

Activity

Read file with System Network Extension from App Group
I have trouble with reading a file from an App Group with my System Network Extension. The app group container is found successfully. However the file read returns empty. In the app itself the same code runs fine and returns a string array of items found in the file. Code: func readFile() - [String] { var jsonResult: [String] = [] guard let containerURL = FileManager.default.containerURL(forSecurityApplicationGroupIdentifier: AppConstants.groupID) else { fatalError() } let fileURL = containerURL.appendingPathComponent(file.json) if let data = try? NSData(contentsOfFile: fileURL.path, options: .mappedIfSafe) as Data { if let json = try? JSONSerialization.jsonObject(with: data, options: .fragmentsAllowed) { jsonResult = json as! [String] } } os_log(jsonResult: %{public}@, jsonResult) return jsonResult } Log: default 09:42:19.486793+0200 app-network-extension container_create_or_lookup_app_group_path_by_app_group_ identifier: success default 09:42:20.105792+0200 app-network-extension jsonResult
2
0
1.3k
May ’21
[NSOutlineView / SourceList] How to prevent control-click on group items?
Let's say you have a NSOutlineView configured as a source list.The data source provides items and group items.There is a NSMenu set for the menu property of the NSOutlineView.The group items rows are not selectable.Problem:When a group item is control-clicked or right-clicked, its row gets highlighted (bold blue rounded rect) and the contextual menu is displayed.Question:Is there a simple way to prevent this from happenning? To ge the same kind of behavior you see with the Finder sidebar or Calendar sidebar.Attaching the NSMenu to the NSTableCellView does not work.Attaching the NSMenu to the NSTableRow does not work.Notes:I haven't seen so far a simple solution. I've seen non simple solutions involving subclassing NSOutlineView and filtering the mouse down events that somehow requires the NSOutlineView subclass to know about the model.
Topic: UI Frameworks SubTopic: AppKit Tags:
2
0
1k
Feb ’17
How to render an inset grouped list as in the Watch Camera app?
At around 8:47 in the video, in the example of a More button for the watch Camera app, a sheet is presented with a robust set of options which are rendered in a style somewhat similar to the iOS UITableViewStyle.insetGrouped / InsetGroupedListStyle. However, InsetGroupedListStyle isn't exposed on watchOS 7. The closest analog I could see was when you embed a Picker into a List, the picker is rendered as a title/subtitle cell, and tapping on that cell presents a modal sheet with that one Picker's list of options in the same inset grouped style. However, this isn't an exact match - this picker has to be in a list, rather than a More button, and the picker only selects from one set of options, as opposed to multiple heterogeneous groups of options. Can anyone provide guidance on how to render a sheet with multiple, heterogeneous groups of options, like the Camera app's More sheet, in this video?
0
0
1k
Aug ’20
Imessage with OS 18. Group Text Android Issues
I'm having issues using Imessage with OS 18. Android user are not receiving text message from a new group created with OS18. I added new users to a chat that we have been using for over a year. After upgrading to OS18 I was hoping I could add additional members without creating a new group, that apparently is not able to happen. What is happening, some folks with Android phones are not getting the text messages. These are members that have been on the group for sometime. Not sure if its all or some because I do not know who has what phone but it is indeed frustrating. I have tried turning off and on RCS and rebooting when I make the changes. I was under the impression OS18 would solve some of the incompatibility issues.
1
0
688
Sep ’24
App Groups: macOS vs iOS: Working Towards Harmony
I regularly see folks confused by the difference in behaviour of app groups between macOS and iOS. There have been substantial changes in this space recently. While much of this is now covered in the official docs (r. 92322409), I’ve updated this post to go into all the gory details. If you have questions or comments, start a new thread with the details. Put it in the App & System Services > Core OS topic area and tag it with Code Signing and Entitlements. Oh, and if your question is about app group containers, also include Files and Storage. Share and Enjoy — Quinn “The Eskimo!” @ Developer Technical Support @ Apple let myEmail = eskimo + 1 + @ + apple.com App Groups: macOS vs iOS: Working Towards Harmony There are two styles of app group ID: iOS-style app group IDs start with group., for example, group.eskimo1.test. macOS-style app group IDs start with your Team ID, for example, SKMME9E2Y8.eskimo1.test. This difference has been the source
0
0
5.9k
Dec ’22
Reply to Guardrails for Siri + App Intents"
There are a bunch of guardrails, two prominent examples being confirmations, and authentication policy. Intent confirmations enable gating risky intents behind explicit user confirmation. And intent authentication policy lets the developer require device unlocking before running an intent. The system triggers these checks based on dynamic risk evaluation. But a developer can also configure these guardrails for certain situations. For a deep dive, check out the WWDC26 session Secure your app: mitigate risks to agentic features.
1w
App Group - Sharing 'Application Scripts' directory
I will be running user-provided scripts via a Mac application *and* and an extension of the app. The app and extension both belong to the same App Group and individually have the correct entitlements to run scripts.The Mac app is Sandboxed. According to Apple, any scripts must reside within the Applications Scripts directory: `. applicationScriptsDirectory` / `NSApplicationScriptsDirectory`.> The NSUserAppleScriptTask class is intended to run AppleScript scripts from your application. It is intended to execute user-supplied scripts and will execute them outside of the application's sandbox, if any.> If the application is sandboxed, then the script must be in the `NSApplicationScriptsDirectory` folder. A sandboxed application may read from, but not write to, this folder.>https://developer.apple.com/documentation/foundation/nsuserapplescripttaskThe issue I'm facing is that the Main App and the App Extension resolve to different NSApplicationScriptsDirectories:`let applicationScripts = try! Fil
4
0
1.7k
Oct ’18
Shared App Group NSUserDefaults no longer working
Hi,I have spent 8 hours on this alreay. So I not posting recklessly.My app was working fine prior to 4 months ago. I had an app extention that showed scheduled events from the app. Either a 9.x release changed things or when I adding a new device it messed with my portal entitlements/provisioning. I ran thru an online tutorial that guides one quickly to set up app groups and nsuserdefaults to see if I could get it to work with a clean slate. It can be seen by following link at the bottom. Basically I got the app working and the app can send the data to the shared group and read it back when the app goes active again. The extentsion never reads anything but zero from the Defaults address pointer.I was/am running this on iphone with 9.3.2 and now I am using XCode 8 Beta. Is there a better end to end tutorial that will get me a working extension with shared defaults thru app groups ?Is there a debugging checklist for shared app groups ?Is there a known issue with later 9X Ios
Topic: UI Frameworks SubTopic: UIKit Tags:
0
0
421
Jul ’16
Disclosure Group In a List
I'm converting a file viewer app to use SwiftUI. It uses an NSOutlineView to show the objects in the file and their component parts. DisclosureGroup seems like the thing to use. I have a List of DisclosureGroups, one for each of the top-level objects. The disclosure shows the component parts. This does not behave correctly. I've attached a little sample program that shows what I'm trying to do. I have built and run this little app on both macOS and iOS. It behaves differently and incorrectly on both platforms. I tried making the top-level view a VStack; that behaves better, but still doesn't do what I expect. DisclosureGroup_TestApp.swift - https://developer.apple.com/forums/content/attachment/8084981b-5d9d-4031-b5bb-62fddd655468 ContentView.swift - https://developer.apple.com/forums/content/attachment/c9a3a853-61c6-46af-99e2-f4a224297b8f
0
0
1.1k
Jul ’20
App can’t loading many files as group
I had issue with one Mac app, my college and developer of app don't have this issue. We can't figure which kind of issue with my Macbook Pro. First, it is MacOS 10.15.5. bug: i can't load more than 122 files as group. The issue only when loading all files together as group. I reinstalled new macos, issue doesn't solve it.* Here is log file of app: Should be normal way: Found dictionary:/Users//Downloads/pro/**, added to list Error part log file: there are many line repeated same. Here is sample of end of file.Open file failed, reason:No such file or directory Open file failed, reason:No such file or directory Open file failed, reason:Too many open files Open file failed, reason:Too many open files Fail to load dict:/Users//Downloads/pro/***, Error:Fail to open file Files is ok, if i opened only one file is ok. I appreciate for helping.
4
0
389
Jun ’20
Read file with System Network Extension from App Group
I have trouble with reading a file from an App Group with my System Network Extension. The app group container is found successfully. However the file read returns empty. In the app itself the same code runs fine and returns a string array of items found in the file. Code: func readFile() - [String] { var jsonResult: [String] = [] guard let containerURL = FileManager.default.containerURL(forSecurityApplicationGroupIdentifier: AppConstants.groupID) else { fatalError() } let fileURL = containerURL.appendingPathComponent(file.json) if let data = try? NSData(contentsOfFile: fileURL.path, options: .mappedIfSafe) as Data { if let json = try? JSONSerialization.jsonObject(with: data, options: .fragmentsAllowed) { jsonResult = json as! [String] } } os_log(jsonResult: %{public}@, jsonResult) return jsonResult } Log: default 09:42:19.486793+0200 app-network-extension container_create_or_lookup_app_group_path_by_app_group_ identifier: success default 09:42:20.105792+0200 app-network-extension jsonResult
Replies
2
Boosts
0
Views
1.3k
Activity
May ’21
[NSOutlineView / SourceList] How to prevent control-click on group items?
Let's say you have a NSOutlineView configured as a source list.The data source provides items and group items.There is a NSMenu set for the menu property of the NSOutlineView.The group items rows are not selectable.Problem:When a group item is control-clicked or right-clicked, its row gets highlighted (bold blue rounded rect) and the contextual menu is displayed.Question:Is there a simple way to prevent this from happenning? To ge the same kind of behavior you see with the Finder sidebar or Calendar sidebar.Attaching the NSMenu to the NSTableCellView does not work.Attaching the NSMenu to the NSTableRow does not work.Notes:I haven't seen so far a simple solution. I've seen non simple solutions involving subclassing NSOutlineView and filtering the mouse down events that somehow requires the NSOutlineView subclass to know about the model.
Topic: UI Frameworks SubTopic: AppKit Tags:
Replies
2
Boosts
0
Views
1k
Activity
Feb ’17
Apple Watch WidgetKit extension app group issue
Does Apple Watch WidgetKit extension, support app group for data sharing, as currently we get nil values for any stored data.
Replies
2
Boosts
0
Views
1.2k
Activity
Aug ’22
Reply to Labs and playgrounds
Could you explain the problem clearly ? Please give the exact reference in the book (reference, chapter, page…) What is lab ? What do you get exactly ? What did you expect exactly ? have you already written some code ? If so, please show.
Replies
Boosts
Views
Activity
Dec ’22
How to render an inset grouped list as in the Watch Camera app?
At around 8:47 in the video, in the example of a More button for the watch Camera app, a sheet is presented with a robust set of options which are rendered in a style somewhat similar to the iOS UITableViewStyle.insetGrouped / InsetGroupedListStyle. However, InsetGroupedListStyle isn't exposed on watchOS 7. The closest analog I could see was when you embed a Picker into a List, the picker is rendered as a title/subtitle cell, and tapping on that cell presents a modal sheet with that one Picker's list of options in the same inset grouped style. However, this isn't an exact match - this picker has to be in a list, rather than a More button, and the picker only selects from one set of options, as opposed to multiple heterogeneous groups of options. Can anyone provide guidance on how to render a sheet with multiple, heterogeneous groups of options, like the Camera app's More sheet, in this video?
Replies
0
Boosts
0
Views
1k
Activity
Aug ’20
Imessage with OS 18. Group Text Android Issues
I'm having issues using Imessage with OS 18. Android user are not receiving text message from a new group created with OS18. I added new users to a chat that we have been using for over a year. After upgrading to OS18 I was hoping I could add additional members without creating a new group, that apparently is not able to happen. What is happening, some folks with Android phones are not getting the text messages. These are members that have been on the group for sometime. Not sure if its all or some because I do not know who has what phone but it is indeed frustrating. I have tried turning off and on RCS and rebooting when I make the changes. I was under the impression OS18 would solve some of the incompatibility issues.
Replies
1
Boosts
0
Views
688
Activity
Sep ’24
App Groups: macOS vs iOS: Working Towards Harmony
I regularly see folks confused by the difference in behaviour of app groups between macOS and iOS. There have been substantial changes in this space recently. While much of this is now covered in the official docs (r. 92322409), I’ve updated this post to go into all the gory details. If you have questions or comments, start a new thread with the details. Put it in the App & System Services > Core OS topic area and tag it with Code Signing and Entitlements. Oh, and if your question is about app group containers, also include Files and Storage. Share and Enjoy — Quinn “The Eskimo!” @ Developer Technical Support @ Apple let myEmail = eskimo + 1 + @ + apple.com App Groups: macOS vs iOS: Working Towards Harmony There are two styles of app group ID: iOS-style app group IDs start with group., for example, group.eskimo1.test. macOS-style app group IDs start with your Team ID, for example, SKMME9E2Y8.eskimo1.test. This difference has been the source
Replies
0
Boosts
0
Views
5.9k
Activity
Dec ’22
Reply to Guardrails for Siri + App Intents"
There are a bunch of guardrails, two prominent examples being confirmations, and authentication policy. Intent confirmations enable gating risky intents behind explicit user confirmation. And intent authentication policy lets the developer require device unlocking before running an intent. The system triggers these checks based on dynamic risk evaluation. But a developer can also configure these guardrails for certain situations. For a deep dive, check out the WWDC26 session Secure your app: mitigate risks to agentic features.
Replies
Boosts
Views
Activity
1w
Cannot delete App Group in "Certificates, Identifiers, Profiles" dashboard
I'm trying to delete an App Group in the Certificates, Identifiers, Profiles dashboard. The option to delete is grayed out. The group isn't in use in any of our organization's apps. Is there a prerequisite that I'm missing?
Replies
1
Boosts
0
Views
1.7k
Activity
Nov ’17
App Group - Sharing 'Application Scripts' directory
I will be running user-provided scripts via a Mac application *and* and an extension of the app. The app and extension both belong to the same App Group and individually have the correct entitlements to run scripts.The Mac app is Sandboxed. According to Apple, any scripts must reside within the Applications Scripts directory: `. applicationScriptsDirectory` / `NSApplicationScriptsDirectory`.> The NSUserAppleScriptTask class is intended to run AppleScript scripts from your application. It is intended to execute user-supplied scripts and will execute them outside of the application's sandbox, if any.> If the application is sandboxed, then the script must be in the `NSApplicationScriptsDirectory` folder. A sandboxed application may read from, but not write to, this folder.>https://developer.apple.com/documentation/foundation/nsuserapplescripttaskThe issue I'm facing is that the Main App and the App Extension resolve to different NSApplicationScriptsDirectories:`let applicationScripts = try! Fil
Replies
4
Boosts
0
Views
1.7k
Activity
Oct ’18
Shared App Group NSUserDefaults no longer working
Hi,I have spent 8 hours on this alreay. So I not posting recklessly.My app was working fine prior to 4 months ago. I had an app extention that showed scheduled events from the app. Either a 9.x release changed things or when I adding a new device it messed with my portal entitlements/provisioning. I ran thru an online tutorial that guides one quickly to set up app groups and nsuserdefaults to see if I could get it to work with a clean slate. It can be seen by following link at the bottom. Basically I got the app working and the app can send the data to the shared group and read it back when the app goes active again. The extentsion never reads anything but zero from the Defaults address pointer.I was/am running this on iphone with 9.3.2 and now I am using XCode 8 Beta. Is there a better end to end tutorial that will get me a working extension with shared defaults thru app groups ?Is there a debugging checklist for shared app groups ?Is there a known issue with later 9X Ios
Topic: UI Frameworks SubTopic: UIKit Tags:
Replies
0
Boosts
0
Views
421
Activity
Jul ’16
Disclosure Group In a List
I'm converting a file viewer app to use SwiftUI. It uses an NSOutlineView to show the objects in the file and their component parts. DisclosureGroup seems like the thing to use. I have a List of DisclosureGroups, one for each of the top-level objects. The disclosure shows the component parts. This does not behave correctly. I've attached a little sample program that shows what I'm trying to do. I have built and run this little app on both macOS and iOS. It behaves differently and incorrectly on both platforms. I tried making the top-level view a VStack; that behaves better, but still doesn't do what I expect. DisclosureGroup_TestApp.swift - https://developer.apple.com/forums/content/attachment/8084981b-5d9d-4031-b5bb-62fddd655468 ContentView.swift - https://developer.apple.com/forums/content/attachment/c9a3a853-61c6-46af-99e2-f4a224297b8f
Replies
0
Boosts
0
Views
1.1k
Activity
Jul ’20
App can’t loading many files as group
I had issue with one Mac app, my college and developer of app don't have this issue. We can't figure which kind of issue with my Macbook Pro. First, it is MacOS 10.15.5. bug: i can't load more than 122 files as group. The issue only when loading all files together as group. I reinstalled new macos, issue doesn't solve it.* Here is log file of app: Should be normal way: Found dictionary:/Users//Downloads/pro/**, added to list Error part log file: there are many line repeated same. Here is sample of end of file.Open file failed, reason:No such file or directory Open file failed, reason:No such file or directory Open file failed, reason:Too many open files Open file failed, reason:Too many open files Fail to load dict:/Users//Downloads/pro/***, Error:Fail to open file Files is ok, if i opened only one file is ok. I appreciate for helping.
Replies
4
Boosts
0
Views
389
Activity
Jun ’20
Reply to Draw to screen context failure with source L*a*b* colorSpace
We found exactly the same issue here.It seems that the NSColorSpace does not like this icc profile. Did you try with the Generic Lab Profile.icc that can be found in /System/Library/ColorSync/Profiles ?
Topic: App & System Services SubTopic: Core OS Tags:
Replies
Boosts
Views
Activity
Oct ’15
Reply to Does your app use encryption? Should I select Yes if I use only HTTPS?
I had a lab with App Review team. He said, if you use HTTPS you can select No The answer on the second question was unclear. Helpful link - https://developer.apple.com/documentation/security/complying_with_encryption_export_regulations
Replies
Boosts
Views
Activity
Jun ’20