Search results for

“A Summary of the WWDC26 Group Lab”

11,481 results found

Post

Replies

Boosts

Views

Activity

Save an Identity into app group Keychain
Hello everyone, I am trying to save an identity into a group keychain. I am doing it this way, following the documentation: let queryAdd: [String: AnyObject] = [ kSecClass as String: kSecClassGenericPassword, kSecAttrAccount as String: kSecImportItemIdentity as AnyObject, kSecValueData as String: identity as SecIdentity, kSecAttrAccessible as String: kSecAttrAccessibleWhenUnlocked, kSecAttrAccessGroup as String: accessGroup as AnyObject ] let resultCode = SecItemAdd(queryAdd as CFDictionary, nil) if resultCode != noErr { print(Error saving to Keychain: (resultCode)) } I am getting error (or resultCode) -50, which means password has not been save successfully. As a no-team programmer, my accessGroup it's just the group Bundle identifier, registered in Signing & Capabilities -> Keychain Sharing. I don't know if maybe the reason of this code is because the group is not alright or something else it's happening, although it looks I am using the identity the right way.
2
0
1.1k
Aug ’20
Reply to Develop in swift fundamentals and xcode 12
Thanks. I downloaded the material and opened Lab - Classes.playground with XCode 12 (12GM Version 12.0 (12A7208)) with no problem. I tried also to open Lab - Collections.playground with Version 12.2 beta (12B5018i). It works as well. It works the same way as in XCode 11. I did not experienced any forced Quit. Note: to see code, I had to tap on the link at the bottom of the page, not very intuitive.
Topic: Programming Languages SubTopic: Swift Tags:
Oct ’20
Group with an existing primary App ID Change
Is it possible to change the Primary App ID set in the Group with an existing primary App ID to another Primary App ID within the same group If there is a change, whether the sub values of the token will be changed upon successful login If an app corresponding to the existing Group Primary App ID is deleted from the app store, ask whether or not other apps in the same group are affected and what effect it will have If anyone knows about the above, please let me know please
0
0
247
Apr ’25
Reply to Missing Parameter "AreaName" in WeatherAlertSummary object via the API
The field areaName on WeatherAlertSummary is documented as optional at https://developer.apple.com/documentation/weatherkitrestapi/weatheralertsummary so it might not always be available. A number of factors could lead to the summary not including an area name, but since it is included in the details page it does seem reasonable it can be in the summary as well. We will investigate further and see why areaName may not have been included in the summary.
Topic: App & System Services SubTopic: General Tags:
Sep ’24
Removing subscription groups from app review
Recently my app was rejected because I have accidentally included two subscription groups that I did not intend to sell. In the current App Store Connect UI, I don't see a way to remove the subscription groups from this version, or entirely from the account. These items have never been on sale. Does anyone know how to fix this issue?
0
0
733
Jun ’22
Questions about Subscription Groups in In-App Purchases
Hello, I have a question about subscription groups in in-app purchases. Suppose I create a subscription group like this: Subscription Group A Subscription Item A1 (one month) Subscription Item A2 (one week) Subscription Item A3 (one year) The documentation mentions, A subscription group is made up of subscriptions with different access levels, prices, and durations so people can select the option that best fits their needs. Since people can only buy one subscription within a group at a time. Does this mean that if a user purchases Subscription Item A1 in Subscription Group A, they can only purchase other subscription items in Subscription Group A after the one-month period ends, when that subscription expires?
1
0
431
Oct ’24
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
591
Jun ’24
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
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
698
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
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
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
5k
Mar ’20
Save an Identity into app group Keychain
Hello everyone, I am trying to save an identity into a group keychain. I am doing it this way, following the documentation: let queryAdd: [String: AnyObject] = [ kSecClass as String: kSecClassGenericPassword, kSecAttrAccount as String: kSecImportItemIdentity as AnyObject, kSecValueData as String: identity as SecIdentity, kSecAttrAccessible as String: kSecAttrAccessibleWhenUnlocked, kSecAttrAccessGroup as String: accessGroup as AnyObject ] let resultCode = SecItemAdd(queryAdd as CFDictionary, nil) if resultCode != noErr { print(Error saving to Keychain: (resultCode)) } I am getting error (or resultCode) -50, which means password has not been save successfully. As a no-team programmer, my accessGroup it's just the group Bundle identifier, registered in Signing & Capabilities -> Keychain Sharing. I don't know if maybe the reason of this code is because the group is not alright or something else it's happening, although it looks I am using the identity the right way.
Replies
2
Boosts
0
Views
1.1k
Activity
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
Reply to Develop in swift fundamentals and xcode 12
Thanks. I downloaded the material and opened Lab - Classes.playground with XCode 12 (12GM Version 12.0 (12A7208)) with no problem. I tried also to open Lab - Collections.playground with Version 12.2 beta (12B5018i). It works as well. It works the same way as in XCode 11. I did not experienced any forced Quit. Note: to see code, I had to tap on the link at the bottom of the page, not very intuitive.
Topic: Programming Languages SubTopic: Swift Tags:
Replies
Boosts
Views
Activity
Oct ’20
Group with an existing primary App ID Change
Is it possible to change the Primary App ID set in the Group with an existing primary App ID to another Primary App ID within the same group If there is a change, whether the sub values of the token will be changed upon successful login If an app corresponding to the existing Group Primary App ID is deleted from the app store, ask whether or not other apps in the same group are affected and what effect it will have If anyone knows about the above, please let me know please
Replies
0
Boosts
0
Views
247
Activity
Apr ’25
Reply to Missing Parameter "AreaName" in WeatherAlertSummary object via the API
The field areaName on WeatherAlertSummary is documented as optional at https://developer.apple.com/documentation/weatherkitrestapi/weatheralertsummary so it might not always be available. A number of factors could lead to the summary not including an area name, but since it is included in the details page it does seem reasonable it can be in the summary as well. We will investigate further and see why areaName may not have been included in the summary.
Topic: App & System Services SubTopic: General Tags:
Replies
Boosts
Views
Activity
Sep ’24
Removing subscription groups from app review
Recently my app was rejected because I have accidentally included two subscription groups that I did not intend to sell. In the current App Store Connect UI, I don't see a way to remove the subscription groups from this version, or entirely from the account. These items have never been on sale. Does anyone know how to fix this issue?
Replies
0
Boosts
0
Views
733
Activity
Jun ’22
Questions about Subscription Groups in In-App Purchases
Hello, I have a question about subscription groups in in-app purchases. Suppose I create a subscription group like this: Subscription Group A Subscription Item A1 (one month) Subscription Item A2 (one week) Subscription Item A3 (one year) The documentation mentions, A subscription group is made up of subscriptions with different access levels, prices, and durations so people can select the option that best fits their needs. Since people can only buy one subscription within a group at a time. Does this mean that if a user purchases Subscription Item A1 in Subscription Group A, they can only purchase other subscription items in Subscription Group A after the one-month period ends, when that subscription expires?
Replies
1
Boosts
0
Views
431
Activity
Oct ’24
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
591
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
403
Activity
Jun ’17
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
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
698
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
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
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
5k
Activity
Mar ’20