Search results for

“A Summary of the WWDC26 Group Lab”

11,226 results found

Post

Replies

Boosts

Views

Activity

App group shared user defaults
In iOS 16 beta 3, my iOS app sets some strings in the shared user defaults of the app group. The iOS widget extension reads the strings from the shared user defaults correctly, but the watchOS app and watchOS widget extension could not read them (get nil). Integers stored in the shared user defaults can be read everywhere. All targets are in the same app group. Does anyone have similar problems?
7
0
6.5k
Jul ’22
Group A Dictionary By Key Value
Im sure i cant be the only one to have an app needing this functionality, yet i cant come across and Library to help with it thus far.I have an Dictionary such as[[order: 31399, builder: Test, area: North], [order: 4244, builder: Test, area: North][order: 41499, builder: new, area: South]]Im wanting to group this data by Area in this case into a dictionary like so [[North: [[order: 31399, builder: Test, area: North], [order: 4244, builder: Test, area: North]]],[South: [[order: 41499, builder: new, area: South]]]]Or maybe even 2 levels down, by area and then by builder in the area. In JS i have used D3 and this process is super simple with nesting, in swift its becoming a nightmare. Even if i can just get 1 level grouping i will be happy at this point. Any help is appreciated. Thanks
4
0
222
Mar ’16
Communication Notifications not grouping notifications by conversation
I've implemented Communication Notifications in my messaging application but am having difficulty with figuring out why notifications aren't being grouped by conversation - instead, they all collapse into a single group. I've verified that the conversationIdentifier of the INSendMessageIntent is being correctly set for my notifications, along with the speakableGroupName. Is there anything else I could be missing to achieve the desired conversation grouping behaviour?
2
0
574
Jun ’24
Why can't I create a new group in Xcode?
I need to put a file inside a group in xcode, but every time I try, it throws an error. This is what I did: I selected the file that I want -> New group from selection. When I name the group and hit enter, I get the following error: `An unknown error occurred. Domain: com.apple.dt.SourceControlErrorDomain Code: -1 Recovery Suggestion: failed to read index: '/Users/Path_to_project/.git/index' no longer exists (-1) User Info: { DVTErrorCreationDateKey = 2022-11-30 18:32:36 +0000; com.apple.dt.sourcecontrol.UnderlyingErrorString = failed to read index: '/Users/path_to_project/.git/index' no longer exists (-1); }` The file, let's call it helper.swift is in the same level as projectNameApp.swift. It was working fine until a coupe of days ago. Out of nowhere xcode started throwing a permission related error for helper.swift. The error goes like this -> The file “Helper.swift” couldn’t be opened because you don’t have permission to view it. I have both read and write permission for t
0
0
695
Nov ’22
Metal SIMD Group Functions
Is there any documentation aside from the Metal Shading Language Specification that explains the SIMD group functions such as simd_or simd_and simd_xor etc. CUDA has functions comparable to the vote/ballot simd functions, but I am not aware of anything similar to the above. The MSL specification is vague in stating - for example - simd_or returns the bitwise OR across all active threads. Does that mean T data is applied bitwise to the value in each SIMD lane? What does that return exactly? Do you get only the highest or lowest or a sum of the bitwise operation?
0
0
1.2k
Aug ’21
why is onAppear called twice on group in ZStack?
Is this a bug or why does white get printed to console twice but black only once in the below code? If I take out the Text() call then it works like I expect (both onAppear modifiers only called once).import SwiftUIstruct ContentView: View { var body: some View { ZStack { Group { Rectangle().fill(Color.black) } .onAppear() {print(black)} Group { Rectangle().fill(Color.white) Text(black on white).foregroundColor(.black) } .onAppear() { print(white)} } }}struct ContentView_Previews: PreviewProvider { static var previews: some View { ContentView() }}
6
0
5.0k
Mar ’20
"Responsible Caller" seems arbitrary in Instruments Zombie Allocation Summary View?
I'm wondering if anyone else is seeing this:it looks to me like the Responsible caller value in the allocation summary is misleading, and randomly dropping to stack frames. for example, right now i'm looking at a summary that has these three lines (among others):Retain -[Solution initWithContentsOfURL:] Retain -[Solution init] Release -[Solution init]seems line 2 and three match, right? think again. if you look at the full stack frames for each, you see this: 0 Fire -[Solution init] /Users/mh/Code/Fire/SharedProjectSystem/Solution.cs:0 1 Fire -[Solution initWithContentsOfURL:] /Users/mh/Code/Fire/SharedProjectSystem/Solution.cs:85 2 Fire +[Solution solutionWithContentsOfURL:] /Users/mh/Code/Fire/SharedProjectSystem/Solution.cs:664 3 Fire -[SolutionDocument readFromURL:] /Users/mh/Code/Fire/SharedCoreApp/SolutionDocument.cs:70 4 Fire -[SolutionDocument readFromURL:ofType:error:] /Users/mh/Code/Fire/SharedCoreApp/SolutionDocument.NSDocument.cs:78 5 AppKit -[NSDocument _initForURL:withContentsO
0
0
529
Apr ’17
Notes from WWDC 2017 Deployment Lab Part Two
These questions are community-driven. I am also not the original questioner, I'm just posting them with permission. Thank you to the anonymous folks who helped gather this information.Software Update Server related:- This product is officially deprecated (which we all knew). It has no future, guaranteed.- They were surprised, however, that the ability to set a custom CatalogURL as an argument to /usr/sbin/softwareupdate (client) disappeared at some point. 1. See github dot com / munki / munki / issues / 511 as an example of this issue. 2. They rely on that internally, obviously.- This functionality should exist at all times; file a bug report at any point we don't see this happening (and maybe this something Munki can go back to using?)- They weren't aware of Reposado, but I showed it to them and they like the idea. I asked if they had any plans to obstruct or otherwise change how it works in a way that would break this functionality, and they didn't seem to be cagey about it. Sounds like Software Update has
4
0
1.7k
Jun ’17
App Group access after app transfer
I want to ask a question about App Transfer. We have succesfully transferred our iOS app to new developer account. App ID and bundle is transferred but there is no app group id and push notification certificate in new developer account.Our database is stored in the app group container and have to create same app group id in new developer account. I want to ask you if there is any risk to delete old app group id from old account and re-create the same app group id in new developer account. Will any App Store users affect data lose or etc ?Or, is there any other way to transfer App Group ID to new developer account ?Thanks
9
0
8.1k
Jan ’17
invalid context when trying to hide a group
That's a watch error I cannot get rid of.I have created a group at the bottom of the view (that seem to be important).In the group, a label and a slider.I would like to hide the group at start, then show it after some action has been done.So, in awake, I setHidden(true) for the group.But, I get multiple context errors like:App Watch Extension[11882:866609] [Unknown process name] CGContextSetFillColorWithColor: invalid context 0x0. If you want to see the backtrace, please set CG_CONTEXT_SHOW_BACKTRACE environmental variable.App Watch Extension[11882:866609] [Unknown process name] CGContextSetStrokeColorWithColor: invalid context 0x0. If you want to see the backtrace, please set CG_CONTEXT_SHOW_BACKTRACE environmental variable.If I replace setHidden by setting alpha to 0, I succeed in hiding, but that's not exactly the same layout.I found this SO, but the solution does not work for me.https://stackoverflow.com/questions/32236204/cgcontextsavegstate-invalid-context-0x0-error-only-on-de
1
0
1.6k
Jun ’19
Looking for snippet for creating groups
Hi, I'm developing an app with a functionality to invite and add members to a group (the back-end work is already done, but I'm looking for better front-end). For this functionality, I need the ability to... Show current members (after they have accepted the invite). The ability to see pending invitations. The ability to delete either pending invitations or current members. Does anyone know of any existing snippets that I could implement for this front-end functionality?
1
0
272
Aug ’20
Reply to Feedback assistant not working at all
Does not work for me either... And the funny thing at a WWDC lab I was told to use it to submit our issue as a bug :-)
Replies
Boosts
Views
Activity
Jun ’19
Reply to New Widget size for visionOS?
I got a reply to this during one of the lab times. See the response there: https://developer.apple.com/forums/thread/834345
Replies
Boosts
Views
Activity
Jun ’26
App group shared user defaults
In iOS 16 beta 3, my iOS app sets some strings in the shared user defaults of the app group. The iOS widget extension reads the strings from the shared user defaults correctly, but the watchOS app and watchOS widget extension could not read them (get nil). Integers stored in the shared user defaults can be read everywhere. All targets are in the same app group. Does anyone have similar problems?
Replies
7
Boosts
0
Views
6.5k
Activity
Jul ’22
Group A Dictionary By Key Value
Im sure i cant be the only one to have an app needing this functionality, yet i cant come across and Library to help with it thus far.I have an Dictionary such as[[order: 31399, builder: Test, area: North], [order: 4244, builder: Test, area: North][order: 41499, builder: new, area: South]]Im wanting to group this data by Area in this case into a dictionary like so [[North: [[order: 31399, builder: Test, area: North], [order: 4244, builder: Test, area: North]]],[South: [[order: 41499, builder: new, area: South]]]]Or maybe even 2 levels down, by area and then by builder in the area. In JS i have used D3 and this process is super simple with nesting, in swift its becoming a nightmare. Even if i can just get 1 level grouping i will be happy at this point. Any help is appreciated. Thanks
Replies
4
Boosts
0
Views
222
Activity
Mar ’16
Communication Notifications not grouping notifications by conversation
I've implemented Communication Notifications in my messaging application but am having difficulty with figuring out why notifications aren't being grouped by conversation - instead, they all collapse into a single group. I've verified that the conversationIdentifier of the INSendMessageIntent is being correctly set for my notifications, along with the speakableGroupName. Is there anything else I could be missing to achieve the desired conversation grouping behaviour?
Replies
2
Boosts
0
Views
574
Activity
Jun ’24
XCode9: syntax for capture groups in search/replace?
If I search for regex (.*)How do I replace with the capture group? It was 0 and then $0. Any clue what it is in the new editor?For bonus points: can I change the case on the capture groups?Thanks,Andrew
Replies
0
Boosts
0
Views
401
Activity
Jun ’17
Why can't I create a new group in Xcode?
I need to put a file inside a group in xcode, but every time I try, it throws an error. This is what I did: I selected the file that I want -> New group from selection. When I name the group and hit enter, I get the following error: `An unknown error occurred. Domain: com.apple.dt.SourceControlErrorDomain Code: -1 Recovery Suggestion: failed to read index: '/Users/Path_to_project/.git/index' no longer exists (-1) User Info: { DVTErrorCreationDateKey = 2022-11-30 18:32:36 +0000; com.apple.dt.sourcecontrol.UnderlyingErrorString = failed to read index: '/Users/path_to_project/.git/index' no longer exists (-1); }` The file, let's call it helper.swift is in the same level as projectNameApp.swift. It was working fine until a coupe of days ago. Out of nowhere xcode started throwing a permission related error for helper.swift. The error goes like this -> The file “Helper.swift” couldn’t be opened because you don’t have permission to view it. I have both read and write permission for t
Replies
0
Boosts
0
Views
695
Activity
Nov ’22
Metal SIMD Group Functions
Is there any documentation aside from the Metal Shading Language Specification that explains the SIMD group functions such as simd_or simd_and simd_xor etc. CUDA has functions comparable to the vote/ballot simd functions, but I am not aware of anything similar to the above. The MSL specification is vague in stating - for example - simd_or returns the bitwise OR across all active threads. Does that mean T data is applied bitwise to the value in each SIMD lane? What does that return exactly? Do you get only the highest or lowest or a sum of the bitwise operation?
Replies
0
Boosts
0
Views
1.2k
Activity
Aug ’21
why is onAppear called twice on group in ZStack?
Is this a bug or why does white get printed to console twice but black only once in the below code? If I take out the Text() call then it works like I expect (both onAppear modifiers only called once).import SwiftUIstruct ContentView: View { var body: some View { ZStack { Group { Rectangle().fill(Color.black) } .onAppear() {print(black)} Group { Rectangle().fill(Color.white) Text(black on white).foregroundColor(.black) } .onAppear() { print(white)} } }}struct ContentView_Previews: PreviewProvider { static var previews: some View { ContentView() }}
Replies
6
Boosts
0
Views
5.0k
Activity
Mar ’20
Reply to Preview crashes consistency in Xcode 16 beta
I had talk with apple in their lab sessions and they admitted it's known issue in first beta and wait for next betas to have fix
Replies
Boosts
Views
Activity
Jun ’24
"Responsible Caller" seems arbitrary in Instruments Zombie Allocation Summary View?
I'm wondering if anyone else is seeing this:it looks to me like the Responsible caller value in the allocation summary is misleading, and randomly dropping to stack frames. for example, right now i'm looking at a summary that has these three lines (among others):Retain -[Solution initWithContentsOfURL:] Retain -[Solution init] Release -[Solution init]seems line 2 and three match, right? think again. if you look at the full stack frames for each, you see this: 0 Fire -[Solution init] /Users/mh/Code/Fire/SharedProjectSystem/Solution.cs:0 1 Fire -[Solution initWithContentsOfURL:] /Users/mh/Code/Fire/SharedProjectSystem/Solution.cs:85 2 Fire +[Solution solutionWithContentsOfURL:] /Users/mh/Code/Fire/SharedProjectSystem/Solution.cs:664 3 Fire -[SolutionDocument readFromURL:] /Users/mh/Code/Fire/SharedCoreApp/SolutionDocument.cs:70 4 Fire -[SolutionDocument readFromURL:ofType:error:] /Users/mh/Code/Fire/SharedCoreApp/SolutionDocument.NSDocument.cs:78 5 AppKit -[NSDocument _initForURL:withContentsO
Replies
0
Boosts
0
Views
529
Activity
Apr ’17
Notes from WWDC 2017 Deployment Lab Part Two
These questions are community-driven. I am also not the original questioner, I'm just posting them with permission. Thank you to the anonymous folks who helped gather this information.Software Update Server related:- This product is officially deprecated (which we all knew). It has no future, guaranteed.- They were surprised, however, that the ability to set a custom CatalogURL as an argument to /usr/sbin/softwareupdate (client) disappeared at some point. 1. See github dot com / munki / munki / issues / 511 as an example of this issue. 2. They rely on that internally, obviously.- This functionality should exist at all times; file a bug report at any point we don't see this happening (and maybe this something Munki can go back to using?)- They weren't aware of Reposado, but I showed it to them and they like the idea. I asked if they had any plans to obstruct or otherwise change how it works in a way that would break this functionality, and they didn't seem to be cagey about it. Sounds like Software Update has
Replies
4
Boosts
0
Views
1.7k
Activity
Jun ’17
App Group access after app transfer
I want to ask a question about App Transfer. We have succesfully transferred our iOS app to new developer account. App ID and bundle is transferred but there is no app group id and push notification certificate in new developer account.Our database is stored in the app group container and have to create same app group id in new developer account. I want to ask you if there is any risk to delete old app group id from old account and re-create the same app group id in new developer account. Will any App Store users affect data lose or etc ?Or, is there any other way to transfer App Group ID to new developer account ?Thanks
Replies
9
Boosts
0
Views
8.1k
Activity
Jan ’17
invalid context when trying to hide a group
That's a watch error I cannot get rid of.I have created a group at the bottom of the view (that seem to be important).In the group, a label and a slider.I would like to hide the group at start, then show it after some action has been done.So, in awake, I setHidden(true) for the group.But, I get multiple context errors like:App Watch Extension[11882:866609] [Unknown process name] CGContextSetFillColorWithColor: invalid context 0x0. If you want to see the backtrace, please set CG_CONTEXT_SHOW_BACKTRACE environmental variable.App Watch Extension[11882:866609] [Unknown process name] CGContextSetStrokeColorWithColor: invalid context 0x0. If you want to see the backtrace, please set CG_CONTEXT_SHOW_BACKTRACE environmental variable.If I replace setHidden by setting alpha to 0, I succeed in hiding, but that's not exactly the same layout.I found this SO, but the solution does not work for me.https://stackoverflow.com/questions/32236204/cgcontextsavegstate-invalid-context-0x0-error-only-on-de
Replies
1
Boosts
0
Views
1.6k
Activity
Jun ’19
Looking for snippet for creating groups
Hi, I'm developing an app with a functionality to invite and add members to a group (the back-end work is already done, but I'm looking for better front-end). For this functionality, I need the ability to... Show current members (after they have accepted the invite). The ability to see pending invitations. The ability to delete either pending invitations or current members. Does anyone know of any existing snippets that I could implement for this front-end functionality?
Replies
1
Boosts
0
Views
272
Activity
Aug ’20