WWDC22 Support

RSS for tag

Ask for help with session viewing, lab appointments, and more.

Posts under WWDC22 Support tag

37 Posts

Post

Replies

Boosts

Views

Activity

WWDC 2024 - 1 on 1 calls?
Hey 2 years ago I joined WWDC and had the pleasure to have 1 on 1 call with some1 from dev team from Apple to help me solve some at the time GPU rendering problems on Apple iPad. I wonder if u guys know if this year Apple will also let us book meetings like that to help solve dev problems?
1
0
480
May ’24
Shared directories configuration not running on macOS virtual machine
When using the sample code included on the Running macOS in a virtual machine on Apple silicon. I am adding the following changes to the swift files: Added to 'MacOSVirtualMachineConfigurationHelper' file: static func createAutomountSingleDirectoryShareDeviceConfiguration() -> VZVirtioFileSystemDeviceConfiguration { let sharedDirectory = VZSharedDirectory(url: directoryURL, readOnly: false) let singleDirectoryShare = VZSingleDirectoryShare(directory: sharedDirectory) // Assign the automount tag to this share. macOS shares automounted directories automatically under /Volumes in the guest. let sharingConfiguration = VZVirtioFileSystemDeviceConfiguration(tag: VZVirtioFileSystemDeviceConfiguration.macOSGuestAutomountTag) sharingConfiguration.share = singleDirectoryShare return sharingConfiguration } Added to 'path' file: let directoryURL = URL(fileURLWithPath: NSHomeDirectory() + "Projects") Added to the 'AppDelegate' file: virtualMachineConfiguration.directorySharingDevices = [MacOSVirtualMachineConfigurationHelper.createAutomountSingleDirectoryShareDeviceConfiguration()] When the above is added and the sample app is run, the following error is shown: macOSVirtualMachineSampleApp/AppDelegate.swift:95: Fatal error: Virtual machine failed to start with Error Domain=VZErrorDomain Code=2 "A directory sharing device configuration is invalid." UserInfo={NSLocalizedFailure=Invalid virtual machine configuration., NSLocalizedFailureReason=A directory sharing device configuration is invalid., NSUnderlyingError=0x600000c343c0 {Error Domain=NSPOSIXErrorDomain Code=2 "No such file or directory"}} On the host device the directory that is being shared is ~/Projects and it does exist. What do I need to change to create the shared directory and have it work? Is there a sample code project for the same configuration that was shown in the demo?
2
0
1.4k
Apr ’24
PTChannelManager Discrepancies in Documentation
Hello, I am reading up on the documentation and seems to have some discrepancies but wanted to double check. In Overview for PTChannelManager, it states "Multiple calls to channelManager(delegate:restorationDelegate:completionHandler:) result in the system returning the same shared instance, so store the channel manager in an instance variable." https://developer.apple.com/documentation/pushtotalk/ptchannelmanager However if we look at the documentation for creation of a channel manager, in the completionHandler, it states that it will return "A new channel manager instance." https://developer.apple.com/documentation/pushtotalk/ptchannelmanager/4031737-channelmanager So is it a shared instance that gets returned or will a new instance be created? Need to know if we will need to implement a multiDelegate Pattern or not for this scenario for example if someone else called this function, would they take over the callbacks or would they get their own instance? Thank you.
1
0
1k
Mar ’24
How to view TSIs?
In this section of this web site https://developer.apple.com/account/#CodeLevelSupportCard its possible to view a historical list of submitted TSIs, but there's nothing in their content which is clickable. Looking around elsewhere, there doesn't appear to be anywhere or anyway to view the original question and the responses in submitted TSIs? Is that really the case, or is there a bug in the Apple web site and they are supposed to be viewable?
2
0
1.5k
Sep ’23
Xcode Error : Building a custom peer-to-peer protocol
Unable to launch this sample project. Xcode says it cannot open the file. Building a custom peer-to-peer protocol I'm trying to build iPhone as a mouse. I am not planning on releasing it but more like a practice for myself. I have one other question, how to use a mac app to receive mouse data while it's in background as it's required by my app. Is Background Tasks the right way ? I am planning to use Network framework for networking but there is not much documentation available. Pardon me if it's a basic question.
1
0
1k
Aug ’23
PTChannelDescriptor is not changing when I leave and then join another channel
I am using the same ChannelManager, however when switching to another channel, I leave the channel and then requestToJoin a new channel with the new inputted ChannelName and PTDescriptor however the name and image are not changing when I go to background to see the Native UI. Am I missing something to call for an update for the PTDescriptor?
1
0
1k
Jul ’23
Troubleshooting Issues with Colorization Model Conversion: Seeking Suggestions
Hello everyone, I encountered some compiler errors while following a WWDC video on converting a colorization PyTorch model to CoreML. I have followed all the steps correctly, but I'm facing issues with the following lines of code provided in the video: In the colorize() method, there is a line: let modelInput = try ColorizerInput(inputWith: lightness.cgImage!) This line expects a cgImage as input, but the auto-generated Model class only accepts an MLMultiArray or MLShapedArray, not an image. Video conversion step did not cover setting the input or output as ImageType. In the extractColorChannels() method, there are a couple of lines: let outA: [Float] = output.output_aShapedArray.scalars let outB: [Float] = output.output_bShapedArray.scalars However, I only have output.var183_aShapedArray available. In other words, there is no var183_bShapedArray. I would appreciate any thoughts or suggestions you may have regarding these issues. Thank you. Link to the WWDC22 session 10017 https://developer.apple.com/videos/play/wwdc2022/10017/
0
0
843
Jun ’23
Does iOS 16 support Local Push Notifications over ethernet?
By specifying the SSIDs for which wifi networks that the NEAppPushProvider will start. Ok But on out case of use, we don't have any SSID, the device will be linked over a ethernet cable, does ios 16 support local push notification over Ethernet ? thank you for your response I already saw this post https://developer.apple.com/forums/thread/656009?login=true#reply-to-this-question but it's 2 years old
1
0
822
May ’23
How to use "SFProDisplay-Bold" font in Xamarin iOS project.
I want to use the "SFProDisplay-Bold" font in iOS project but without adding the font files in the project as this font file is 2.2 MB and it increases the App size. To see what the default system font is, added the below code in our iOS project: var systemFont = UIFont.SystemFontOfSize(20, UIFontWeight.Bold).Name; Debug.WriteLine($"System: {systemFont.FamilyName}"); This above code gave output from our project as follows -> System: .AppleSystemUIFont and the systemFont is ".SFUI-Bold" . I believe that SFUI and SF Pro Display are different fonts(correct me if wrong) Need more clarity for ways on how to implement specific font "SF Pro Display".
1
0
1.6k
Mar ’23
cannot find 'minutes' in the scope
im getting this error after this code, what module should Iimport here? or does it causes any other problem? //  ContentView.swift //  Widget_and_LiveActivities // //  Created by Makwin Santhosh K on 20/11/22. // import SwiftUI import ClockKit struct ContentView: View {     var body: some View {         var future = Calendar.current.date(byAdding: .minute, value: (Int(minutes) ?? 0), to: Date())! // here is where im getting (cannot find 'minutes' in the scope)         future = Calendar.current.date(byAdding: .second, value: (Int(seconds) ?? 0), to: future)! // also where is where im getting (cannot find 'seconds' in the scope)         let date = Date.now...future         let updatedDeliveryStatus = PizzaDeliveryAttributes.PizzaDeliveryStatus(driverName: "Anne Johnson", deliveryTimer: date)         let alertConfiguration = AlertConfiguration(title: "Delivery Update", body: "Your pizza order will arrive in 25 minutes.", sound: .default)         await deliveryActivity?.update(using: updatedDeliveryStatus, alertConfiguration: alertConfiguration)                           let initialContentState = PizzaDeliveryAttributes.ContentState(driverName: "Bill James", deliveryTimer:date)         let activityAttributes = PizzaDeliveryAttributes(numberOfPizzas: 3, totalAmount: "$42.00", orderNumber: "12345")         do {             deliveryActivity = try Activity.request(attributes: activityAttributes, contentState: initialContentState)             print("Requested a pizza delivery Live Activity \(String(describing: deliveryActivity?.id)).")         } catch (let error) {             print("Error requesting pizza delivery Live Activity \(error.localizedDescription).")         }     } } struct ContentView_Previews: PreviewProvider {     static var previews: some View {         ContentView()     } } // this is the example code from [https://developer.apple.com/documentation/activitykit/displaying-live-data-with-live-activities)
7
0
2.3k
Nov ’22
Configuring audio in apple virtualization framework
I have a virtual machine using apple's sample code on their developer page but i have no audio. How do i create and setup an audio device for the vm?
Replies
1
Boosts
0
Views
934
Activity
May ’24
WWDC 2024 - 1 on 1 calls?
Hey 2 years ago I joined WWDC and had the pleasure to have 1 on 1 call with some1 from dev team from Apple to help me solve some at the time GPU rendering problems on Apple iPad. I wonder if u guys know if this year Apple will also let us book meetings like that to help solve dev problems?
Replies
1
Boosts
0
Views
480
Activity
May ’24
WWDC23 flashcard app
Where can I download the code for this app? I know its listed on the video page, but I would like a link to somewhere to download it
Replies
1
Boosts
0
Views
587
Activity
May ’24
Shared directories configuration not running on macOS virtual machine
When using the sample code included on the Running macOS in a virtual machine on Apple silicon. I am adding the following changes to the swift files: Added to 'MacOSVirtualMachineConfigurationHelper' file: static func createAutomountSingleDirectoryShareDeviceConfiguration() -> VZVirtioFileSystemDeviceConfiguration { let sharedDirectory = VZSharedDirectory(url: directoryURL, readOnly: false) let singleDirectoryShare = VZSingleDirectoryShare(directory: sharedDirectory) // Assign the automount tag to this share. macOS shares automounted directories automatically under /Volumes in the guest. let sharingConfiguration = VZVirtioFileSystemDeviceConfiguration(tag: VZVirtioFileSystemDeviceConfiguration.macOSGuestAutomountTag) sharingConfiguration.share = singleDirectoryShare return sharingConfiguration } Added to 'path' file: let directoryURL = URL(fileURLWithPath: NSHomeDirectory() + "Projects") Added to the 'AppDelegate' file: virtualMachineConfiguration.directorySharingDevices = [MacOSVirtualMachineConfigurationHelper.createAutomountSingleDirectoryShareDeviceConfiguration()] When the above is added and the sample app is run, the following error is shown: macOSVirtualMachineSampleApp/AppDelegate.swift:95: Fatal error: Virtual machine failed to start with Error Domain=VZErrorDomain Code=2 "A directory sharing device configuration is invalid." UserInfo={NSLocalizedFailure=Invalid virtual machine configuration., NSLocalizedFailureReason=A directory sharing device configuration is invalid., NSUnderlyingError=0x600000c343c0 {Error Domain=NSPOSIXErrorDomain Code=2 "No such file or directory"}} On the host device the directory that is being shared is ~/Projects and it does exist. What do I need to change to create the shared directory and have it work? Is there a sample code project for the same configuration that was shown in the demo?
Replies
2
Boosts
0
Views
1.4k
Activity
Apr ’24
Where can I find the sample application "File Squeezer" shown in this video?
I am working on a similar application and would like to refer to the sample application referred in this video - "File Squeezer" and couldn't find anywhere. Could anybody please help me find this sample code?
Replies
2
Boosts
0
Views
889
Activity
Apr ’24
WWDC2022-10127: setup previewVisualizer
Following along with video from here https://developer.apple.com/videos/play/wwdc2022/10127/?time=410 At 6:50 mark we set up setup previewVisualizer, but we're not actually shown the implementation of this type. I think it would be helpful as I am having a hard time showing white visualizing lines that appear when scanning.
Replies
0
Boosts
0
Views
664
Activity
Mar ’24
PTChannelManager Discrepancies in Documentation
Hello, I am reading up on the documentation and seems to have some discrepancies but wanted to double check. In Overview for PTChannelManager, it states "Multiple calls to channelManager(delegate:restorationDelegate:completionHandler:) result in the system returning the same shared instance, so store the channel manager in an instance variable." https://developer.apple.com/documentation/pushtotalk/ptchannelmanager However if we look at the documentation for creation of a channel manager, in the completionHandler, it states that it will return "A new channel manager instance." https://developer.apple.com/documentation/pushtotalk/ptchannelmanager/4031737-channelmanager So is it a shared instance that gets returned or will a new instance be created? Need to know if we will need to implement a multiDelegate Pattern or not for this scenario for example if someone else called this function, would they take over the callbacks or would they get their own instance? Thank you.
Replies
1
Boosts
0
Views
1k
Activity
Mar ’24
WWDC
One of the conditions for the challenge is that it must be offline. Is this related to the use of AI?
Replies
0
Boosts
0
Views
711
Activity
Feb ’24
TipKit with playground
hello, how can i add tipkit into my app for WWDC. i think using a tipkit may not be suitable for playground. What would be the best approach for adding this feature to my app?
Replies
2
Boosts
0
Views
1.2k
Activity
Feb ’24
Developer account enrollment
Hello, i submitted my document after paying for developer account enrolment 2 weeks ago till this i haven't received any feedback from Apple Developer and my account status is still pending. please what can i do?
Replies
0
Boosts
0
Views
690
Activity
Jan ’24
How to view TSIs?
In this section of this web site https://developer.apple.com/account/#CodeLevelSupportCard its possible to view a historical list of submitted TSIs, but there's nothing in their content which is clickable. Looking around elsewhere, there doesn't appear to be anywhere or anyway to view the original question and the responses in submitted TSIs? Is that really the case, or is there a bug in the Apple web site and they are supposed to be viewable?
Replies
2
Boosts
0
Views
1.5k
Activity
Sep ’23
Xcode Error : Building a custom peer-to-peer protocol
Unable to launch this sample project. Xcode says it cannot open the file. Building a custom peer-to-peer protocol I'm trying to build iPhone as a mouse. I am not planning on releasing it but more like a practice for myself. I have one other question, how to use a mac app to receive mouse data while it's in background as it's required by my app. Is Background Tasks the right way ? I am planning to use Network framework for networking but there is not much documentation available. Pardon me if it's a basic question.
Replies
1
Boosts
0
Views
1k
Activity
Aug ’23
PTChannelDescriptor is not changing when I leave and then join another channel
I am using the same ChannelManager, however when switching to another channel, I leave the channel and then requestToJoin a new channel with the new inputted ChannelName and PTDescriptor however the name and image are not changing when I go to background to see the Native UI. Am I missing something to call for an update for the PTDescriptor?
Replies
1
Boosts
0
Views
1k
Activity
Jul ’23
Troubleshooting Issues with Colorization Model Conversion: Seeking Suggestions
Hello everyone, I encountered some compiler errors while following a WWDC video on converting a colorization PyTorch model to CoreML. I have followed all the steps correctly, but I'm facing issues with the following lines of code provided in the video: In the colorize() method, there is a line: let modelInput = try ColorizerInput(inputWith: lightness.cgImage!) This line expects a cgImage as input, but the auto-generated Model class only accepts an MLMultiArray or MLShapedArray, not an image. Video conversion step did not cover setting the input or output as ImageType. In the extractColorChannels() method, there are a couple of lines: let outA: [Float] = output.output_aShapedArray.scalars let outB: [Float] = output.output_bShapedArray.scalars However, I only have output.var183_aShapedArray available. In other words, there is no var183_bShapedArray. I would appreciate any thoughts or suggestions you may have regarding these issues. Thank you. Link to the WWDC22 session 10017 https://developer.apple.com/videos/play/wwdc2022/10017/
Replies
0
Boosts
0
Views
843
Activity
Jun ’23
Does iOS 16 support Local Push Notifications over ethernet?
By specifying the SSIDs for which wifi networks that the NEAppPushProvider will start. Ok But on out case of use, we don't have any SSID, the device will be linked over a ethernet cable, does ios 16 support local push notification over Ethernet ? thank you for your response I already saw this post https://developer.apple.com/forums/thread/656009?login=true#reply-to-this-question but it's 2 years old
Replies
1
Boosts
0
Views
822
Activity
May ’23
How will Apple know if you are full time employee?
I have a question regarding the condition that Apple has put. "And not be employed full time as a developer." How will Apple know whether you are full time employer or not even if you submit your school curriculum?
Replies
0
Boosts
0
Views
994
Activity
Mar ’23
How to use "SFProDisplay-Bold" font in Xamarin iOS project.
I want to use the "SFProDisplay-Bold" font in iOS project but without adding the font files in the project as this font file is 2.2 MB and it increases the App size. To see what the default system font is, added the below code in our iOS project: var systemFont = UIFont.SystemFontOfSize(20, UIFontWeight.Bold).Name; Debug.WriteLine($"System: {systemFont.FamilyName}"); This above code gave output from our project as follows -> System: .AppleSystemUIFont and the systemFont is ".SFUI-Bold" . I believe that SFUI and SF Pro Display are different fonts(correct me if wrong) Need more clarity for ways on how to implement specific font "SF Pro Display".
Replies
1
Boosts
0
Views
1.6k
Activity
Mar ’23
Metal 3 Support?
After WWDC 2022, apple was release Metal 3, a new version of their Graphics API, I use Radeon Pro 560X GPU on my iMac 21.5 4K 2019, does my GPU support for Metal 3?
Replies
3
Boosts
0
Views
3.2k
Activity
Jan ’23
cannot find 'minutes' in the scope
im getting this error after this code, what module should Iimport here? or does it causes any other problem? //  ContentView.swift //  Widget_and_LiveActivities // //  Created by Makwin Santhosh K on 20/11/22. // import SwiftUI import ClockKit struct ContentView: View {     var body: some View {         var future = Calendar.current.date(byAdding: .minute, value: (Int(minutes) ?? 0), to: Date())! // here is where im getting (cannot find 'minutes' in the scope)         future = Calendar.current.date(byAdding: .second, value: (Int(seconds) ?? 0), to: future)! // also where is where im getting (cannot find 'seconds' in the scope)         let date = Date.now...future         let updatedDeliveryStatus = PizzaDeliveryAttributes.PizzaDeliveryStatus(driverName: "Anne Johnson", deliveryTimer: date)         let alertConfiguration = AlertConfiguration(title: "Delivery Update", body: "Your pizza order will arrive in 25 minutes.", sound: .default)         await deliveryActivity?.update(using: updatedDeliveryStatus, alertConfiguration: alertConfiguration)                           let initialContentState = PizzaDeliveryAttributes.ContentState(driverName: "Bill James", deliveryTimer:date)         let activityAttributes = PizzaDeliveryAttributes(numberOfPizzas: 3, totalAmount: "$42.00", orderNumber: "12345")         do {             deliveryActivity = try Activity.request(attributes: activityAttributes, contentState: initialContentState)             print("Requested a pizza delivery Live Activity \(String(describing: deliveryActivity?.id)).")         } catch (let error) {             print("Error requesting pizza delivery Live Activity \(error.localizedDescription).")         }     } } struct ContentView_Previews: PreviewProvider {     static var previews: some View {         ContentView()     } } // this is the example code from [https://developer.apple.com/documentation/activitykit/displaying-live-data-with-live-activities)
Replies
7
Boosts
0
Views
2.3k
Activity
Nov ’22