Search results for

“A Summary of the WWDC26 Group Lab”

11,828 results found

Post

Replies

Boosts

Views

Activity

Not able to access the summary day values for Active Energy from Apple HealthKit
I have already created a function to fetch active energy data from HealthKit. But if I try to fetch records of 1 year with multiple active energy records per day, the app hangs and in some cases App does crash and I don't get any data. I couldn't find any other way to access the summary day values for Active Energy from Apple HealthKit. Below is my code for getting Active Energy from HealthKit. func getActiveEnergy(startDate : Date) { ttvar startingDate = startDate tt ttHealthKitSetupManager.getActiveEnergy(date: startDate, withSuccess: { (isSuccess, error) in ttttif isSuccess { ttttttprint(Active Energy Fetch) tttt} tttt ttttstartingDate = NSCalendar.current.date(byAdding: .day, value: 1, to: startDate) ?? Date() tttt ttttif startingDate <= Date() { ttttttself.getActiveEnergy(startDate: startingDate) tttt} else { ttttttself.getSickNumber(startDate : self.globalDate) tttt} tt}) } HealthKitSetupManager.swift class func getActiveEnergy(date:Date, withSuccess: @escaping(Bool,String?) -> Void) { tt
0
0
751
Sep ’20
App Groups Entitlement: ad hoc signing
On MacOS, I know that App Groups (com.apple.security.application-groups) do not require a provisioning profile. I was wondering if it's possible to sign them ad hoc and have it work? So maybe use a random TEAMID prefix and have it work? I would only need the app to work locally (for testing), not be distributed in that fashion, of course.
3
0
639
Mar ’25
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
Behaviour of dispatch group tasks with completions?
Hi, I have pseudo code for a repeating task of work: api_call(/status) { tif response.statusCode == 418 { ttapi_call(/rotate-credentials) { ... } t} telse { ttdoSomeWork() t} tsleep(60) tapi_call(/status) } I want to make a call to /status roughly every 60 seconds, but if the response is a 418 then I want to complete a call to /rotate-credentials before continuing with the next status request. There are other api calls going on as well, triggered by user interaction. These other api calls should wait until the /status call is completed in full (including if a credential rotation is triggered). This implies a serial queue? But that won't wait for the completions to finish, so I should be looking at a dispatch group enter(), leave() and wait() right? I can't find/understand from the docs where completion handlers go, in terms of execution, relative to dispatch queues. So where is the completion handler execution of the subsequent call to /rotate-credentials ? If I wrap the status call in a dispatch group
2
0
931
Jun ’20
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
887
Jan ’16
How to get in-app subscription group informations
Hi everyone, I am successfully using App Store Connect API to get diverse informations about my apps. But I don't find any endpoint in documentation that can give me the in-app purchases subscription group informations of my auto-renewable product. Can someone tell me if such a endpoint exists ? And if not, it is possible to claim an update of the API including this feature to Apple ? Thanks in advance.
0
0
322
Oct ’20
Reply to AAUSBAccessoryManager does not fire didconnect
Quick question about AccessoryAccess on macOS 27: I’m trying to use it from a CLI tool (packaged as a minimal .app bundle, signed with com.apple.security.device.usb), but I keep getting: Internal AccessoryAccess error. Unable to communicate with service. From the WWDC26 session it sounds like just adding the entitlement isn’t enough and the corresponding capability in “Signing & Capabilities” needs to be enabled. Is AccessoryAccess even supported for CLI-tools, or does it require a full app target?
Topic: App & System Services SubTopic: Core OS Tags:
Sep ’26
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
778
Feb ’24
ios 10.1 beta 3 issues reported Summary
I have Installed beta 3 and my iphone 6 has stopped functioning properly. Issues reported are as follows1. Touch ID stopped working. Showing error message Touch ID can not activate on this phone2. Heating issue... Phone is showing adnormal heating issue with the temperature increased during charging or left idle3. Power draining rapidly overnight... If I charge phone 100% and leave it idle it will drain an die by morning so lets say between 11PM to 8AM phone drains 100%Performance of application also not good as whats app crashes in between giving dark screen.Not sure if this is with the whats app issue of ios...Please help I dont wish to downgrade rather would like to get some solution as downdrading I may endup loosing data and settings...ThanksMahi
0
0
122
Oct ’16
External testers apparently put in a group on my behalf but the group is no where to be seen and I can no longer add external testers.
Under testers & groups, I only have all testers and iTunes connect users. There is no + for adding testers in all testers and the + in iTunes connect users is only for adding internal testers. I don't have any groups shown nor do I have the option to add a group.I had external testers before (and they still appear in all testers) but I did not create any groups.Maybe the problem is that I have not uploaded any builds yet?
1
0
985
Apr ’17
Invalid code signing entitlements with app group on macOS
I'm getting this error when uploading a build of my macOS app to App Store Connect. It has always worked before, and nothing changed about my use of app groups, and the iOS build uploaded without any problems. Cleaning the build folder and derived data folder doesn't help. I'm using automatically managed signing in Xcode. Invalid code signing entitlements. Your application bundle’s signature contains code signing entitlements that aren’t supported on macOS. Specifically, the “[group.]” value for the com.apple.security.application-groups key in “.pkg/Payload/.app/Contents/MacOS/” isn’t supported. This value should be a string or an array of strings, where each string is the “group” value or your Team ID, followed by a dot (“.”), followed by the group name. If you're using the “group” prefix, verify that the provisioning profile used to sign the app contains the com.apple.security.application-groups entitlement and its associated value(s).
48
0
6k
Feb ’25
How to create logical groups inside a context menu.
I want to create logical groups inside my Finder Extension context Menu.http://stackoverflow.com/questions/42537343/how-to-create-logical-groups-inside-a-context-menu-mac-os/42541596?noredirect=1#comment72302097_42541596The discussion on the aforementioned StackOverflow thread suggests that the[NSMenuItem separatorItem]behaves inconsistently for me and another user. While for me it creates a blank space, for the other user it draws a horizontal line between the menu items ( This is what i want to achieve).
1
0
700
Mar ’17
tensorflow-metal plugin problem with grouped convolutions
Running grouped convolutions on an M2 with the metal plugin I get an error. Example code: Using TF2.11 and no metal plugin I get import tensorflow as tf tf.keras.layers.Conv1D(5,1,padding=same, kernel_initializer=ones, groups=5)(tf.ones((1,1,5))) # displays On TF2.14 with the plugin I received import tensorflow as tf tf.keras.layers.Conv1D(5,1,padding=same, kernel_initializer=ones, groups=5)(tf.ones((1,1,5))) # displays ... NotFoundError: Exception encountered when calling layer 'conv1d_3' (type Conv1D). could not find registered platform with id: 0x104d8f6f0 [Op:__inference__jit_compiled_convolution_op_78] Call arguments received by layer 'conv1d_3' (type Conv1D): • inputs=tf.Tensor(shape=(1, 1, 5), dtype=float32) could not find registered platform with id
1
0
783
Jan ’24
Not able to access the summary day values for Active Energy from Apple HealthKit
I have already created a function to fetch active energy data from HealthKit. But if I try to fetch records of 1 year with multiple active energy records per day, the app hangs and in some cases App does crash and I don't get any data. I couldn't find any other way to access the summary day values for Active Energy from Apple HealthKit. Below is my code for getting Active Energy from HealthKit. func getActiveEnergy(startDate : Date) { ttvar startingDate = startDate tt ttHealthKitSetupManager.getActiveEnergy(date: startDate, withSuccess: { (isSuccess, error) in ttttif isSuccess { ttttttprint(Active Energy Fetch) tttt} tttt ttttstartingDate = NSCalendar.current.date(byAdding: .day, value: 1, to: startDate) ?? Date() tttt ttttif startingDate <= Date() { ttttttself.getActiveEnergy(startDate: startingDate) tttt} else { ttttttself.getSickNumber(startDate : self.globalDate) tttt} tt}) } HealthKitSetupManager.swift class func getActiveEnergy(date:Date, withSuccess: @escaping(Bool,String?) -> Void) { tt
Replies
0
Boosts
0
Views
751
Activity
Sep ’20
App Groups Entitlement: ad hoc signing
On MacOS, I know that App Groups (com.apple.security.application-groups) do not require a provisioning profile. I was wondering if it's possible to sign them ad hoc and have it work? So maybe use a random TEAMID prefix and have it work? I would only need the app to work locally (for testing), not be distributed in that fashion, of course.
Replies
3
Boosts
0
Views
639
Activity
Mar ’25
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?
Replies
Boosts
Views
Activity
Sep ’20
Behaviour of dispatch group tasks with completions?
Hi, I have pseudo code for a repeating task of work: api_call(/status) { tif response.statusCode == 418 { ttapi_call(/rotate-credentials) { ... } t} telse { ttdoSomeWork() t} tsleep(60) tapi_call(/status) } I want to make a call to /status roughly every 60 seconds, but if the response is a 418 then I want to complete a call to /rotate-credentials before continuing with the next status request. There are other api calls going on as well, triggered by user interaction. These other api calls should wait until the /status call is completed in full (including if a credential rotation is triggered). This implies a serial queue? But that won't wait for the completions to finish, so I should be looking at a dispatch group enter(), leave() and wait() right? I can't find/understand from the docs where completion handlers go, in terms of execution, relative to dispatch queues. So where is the completion handler execution of the subsequent call to /rotate-credentials ? If I wrap the status call in a dispatch group
Replies
2
Boosts
0
Views
931
Activity
Jun ’20
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?
Replies
0
Boosts
0
Views
887
Activity
Jan ’16
How to get in-app subscription group informations
Hi everyone, I am successfully using App Store Connect API to get diverse informations about my apps. But I don't find any endpoint in documentation that can give me the in-app purchases subscription group informations of my auto-renewable product. Can someone tell me if such a endpoint exists ? And if not, it is possible to claim an update of the API including this feature to Apple ? Thanks in advance.
Replies
0
Boosts
0
Views
322
Activity
Oct ’20
Reply to AAUSBAccessoryManager does not fire didconnect
Quick question about AccessoryAccess on macOS 27: I’m trying to use it from a CLI tool (packaged as a minimal .app bundle, signed with com.apple.security.device.usb), but I keep getting: Internal AccessoryAccess error. Unable to communicate with service. From the WWDC26 session it sounds like just adding the entitlement isn’t enough and the corresponding capability in “Signing & Capabilities” needs to be enabled. Is AccessoryAccess even supported for CLI-tools, or does it require a full app target?
Topic: App & System Services SubTopic: Core OS Tags:
Replies
Boosts
Views
Activity
Sep ’26
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/.
Replies
4
Boosts
0
Views
778
Activity
Feb ’24
ios 10.1 beta 3 issues reported Summary
I have Installed beta 3 and my iphone 6 has stopped functioning properly. Issues reported are as follows1. Touch ID stopped working. Showing error message Touch ID can not activate on this phone2. Heating issue... Phone is showing adnormal heating issue with the temperature increased during charging or left idle3. Power draining rapidly overnight... If I charge phone 100% and leave it idle it will drain an die by morning so lets say between 11PM to 8AM phone drains 100%Performance of application also not good as whats app crashes in between giving dark screen.Not sure if this is with the whats app issue of ios...Please help I dont wish to downgrade rather would like to get some solution as downdrading I may endup loosing data and settings...ThanksMahi
Replies
0
Boosts
0
Views
122
Activity
Oct ’16
External testers apparently put in a group on my behalf but the group is no where to be seen and I can no longer add external testers.
Under testers & groups, I only have all testers and iTunes connect users. There is no + for adding testers in all testers and the + in iTunes connect users is only for adding internal testers. I don't have any groups shown nor do I have the option to add a group.I had external testers before (and they still appear in all testers) but I did not create any groups.Maybe the problem is that I have not uploaded any builds yet?
Replies
1
Boosts
0
Views
985
Activity
Apr ’17
Invalid code signing entitlements with app group on macOS
I'm getting this error when uploading a build of my macOS app to App Store Connect. It has always worked before, and nothing changed about my use of app groups, and the iOS build uploaded without any problems. Cleaning the build folder and derived data folder doesn't help. I'm using automatically managed signing in Xcode. Invalid code signing entitlements. Your application bundle’s signature contains code signing entitlements that aren’t supported on macOS. Specifically, the “[group.]” value for the com.apple.security.application-groups key in “.pkg/Payload/.app/Contents/MacOS/” isn’t supported. This value should be a string or an array of strings, where each string is the “group” value or your Team ID, followed by a dot (“.”), followed by the group name. If you're using the “group” prefix, verify that the provisioning profile used to sign the app contains the com.apple.security.application-groups entitlement and its associated value(s).
Replies
48
Boosts
0
Views
6k
Activity
Feb ’25
How to create logical groups inside a context menu.
I want to create logical groups inside my Finder Extension context Menu.http://stackoverflow.com/questions/42537343/how-to-create-logical-groups-inside-a-context-menu-mac-os/42541596?noredirect=1#comment72302097_42541596The discussion on the aforementioned StackOverflow thread suggests that the[NSMenuItem separatorItem]behaves inconsistently for me and another user. While for me it creates a blank space, for the other user it draws a horizontal line between the menu items ( This is what i want to achieve).
Replies
1
Boosts
0
Views
700
Activity
Mar ’17
tensorflow-metal plugin problem with grouped convolutions
Running grouped convolutions on an M2 with the metal plugin I get an error. Example code: Using TF2.11 and no metal plugin I get import tensorflow as tf tf.keras.layers.Conv1D(5,1,padding=same, kernel_initializer=ones, groups=5)(tf.ones((1,1,5))) # displays On TF2.14 with the plugin I received import tensorflow as tf tf.keras.layers.Conv1D(5,1,padding=same, kernel_initializer=ones, groups=5)(tf.ones((1,1,5))) # displays ... NotFoundError: Exception encountered when calling layer 'conv1d_3' (type Conv1D). could not find registered platform with id: 0x104d8f6f0 [Op:__inference__jit_compiled_convolution_op_78] Call arguments received by layer 'conv1d_3' (type Conv1D): • inputs=tf.Tensor(shape=(1, 1, 5), dtype=float32) could not find registered platform with id
Replies
1
Boosts
0
Views
783
Activity
Jan ’24