Engage with the WWDC20 community and connect with Apple engineers during the conference.

Posts under WWDC20 tag

36 Posts

Post

Replies

Boosts

Views

Activity

How can I prevent user accessing services using Passcode when Biometric is failed
Whenever user tries to login with biometric and it failed multiple times then the passcode screen appears and this is the screen which we don't want for our perfectly secure applications. We are looking to authenticate user with biometric only and not fallback to passcode which is same as the Apple internal API https://developer.apple.com/documentation/security/secaccesscontrolcreateflags where we can enforce user to use biometric based login. Although we like WebAuth framework but this is the only reason we cannot move forward with the WebAuthn framework. is it something Apple can think about providing to make application more secure ?
0
0
733
Nov ’21
Custom App Distribution
Hello Team, We would like to know what are the options for distributing a custom app via the Apple Business Manager. We have seen your video https://developer.apple.com/videos/play/wwdc2020/10667 where the process is described for using MDM. What if the customer does not have MDM? How can they get the custom app and then distribute it to their users? Thank you in advance,
0
0
660
Nov ’21
AVPictureInPictureController.isPictureInPictureSupported() is false on iOS 14
I'm using AVPictureInPictureController.isPictureInPictureSupported() to detect PiP feature is supported on the device. It's working on iPadOS 13 and 14. As we know that, iOS 14 is supporting PiP on iPhone. I'm using the same code but it returns false. And I try AVPictureInPictureController(playerLayer: playerLayer).isPictureInPicturePossible, it returns nil. I tested it on iOS 14 beta 1 and beta 2, iPhone X on simulator, it still the same. I also see that the PiP button is also not shown on Safari HTML5 video playback. How to make it work on iOS 14? Or how to enable for it?
8
0
5.3k
Oct ’21
Encrypted CoreML model load fails with vague error
Xcode Version: 12.4 (Used Xcode 12.5 to create encryption key as 12.4 is bugged and will not let you) I am bundling a ML model into my app, and have encrypted ML model via Xcode 12 encryption method shown here. Model loads and works fine without encryption. After adding model encryption key and setting it as compiler flag, the model encryption/decryption works fine in a demo app, but using the same load method in my main app fails with this error message: Thread 1: Fatal error: 'try!' expression unexpectedly raised an error: Error Domain=com.apple.CoreML Code=0 "Unable to load model at /path_to_model/my_model.mlmodelc/ with error: failed to invoke mremap_encrypted with result = -1, error = 12" I have tried all variations of the load method available within my swift generated model file, all produce the same result above.
4
0
2.9k
Oct ’21
How does Pixar optimize their USD file sizes to be so small?
Hello, I downloaded the Pixar kitchen scene from Pixar and opened the rug asset as a USD file. It's about 26k polygons ( unsubdivided mesh ) and only 352kb in size. Converting the rug to a Scenekit or OBJ file increases the file size to 3.7MB! About 10x larger ! How did Pixar manage to optimize/ export a 26k polygon model with a size of 352kb? Is this only possible using their Presto proprietary software ? Is there special settings we need to used to export models created in Maya or 3ds Max with the same file size optimization? The Rug model is 3.7mb when exported as a USD file from 3ds Max.
1
0
1.5k
Oct ’21
Unable to create complication app id
In the WWDC2020 "Keep your complications up to date" session, Mike shows that you have to create an App ID that ends with ".watchkitapp.complication" in order to support PushKit. Any time I try to add ".complication" to the end of my App ID, it gives an error: An App ID with Identifier 'com.x.y.watchkitapp.complication' is not available. Please enter a different string.
1
0
795
Sep ’21
MultiPeerConnectivity under iOS 14
Hey, I have an app I've been experimenting with on iOS 13 that uses MultiPeerConnectivity. After upgrading to iOS 14 on one of my devices and using Xcode 12 this app no longer works. As outlined in "Support local network privacy in your app" I've added a description with NSLocalNetworkUsageDescription in Info.plist. Since the app uses Bonjour advertisting and browsing via MCNearbyServiceAdvertiser and MCNearbyServiceBrowser I've also added the service name via NSBonjourServices to Info.plist. It's my understanding that this should be enough to make browsing and advertising work. What I am observing is that when I call startAdvertisingPeer on my instance of MCNearbyServiceAdvertiser I am not seeing the local network permission prompt instead I see the following error in the console. 2020-06-27 13:26:54.634264+0100 MultiPeerTest[18970:1571288] [MCNearbyServiceAdvertiser] Server did not publish: errorDict [{		 NSNetServicesErrorCode = "-72000";		 NSNetServicesErrorDomain = 10; }]. Further my app is not showing up under Settings > Privacy > Local Network on my iPadOS 14 device. I looked at the TicTacToe example which declares the bonjour service _tictactoe._tcp as its Bonjour Service but this seems to violate the Bonjour specification for service type as described in the documentation for MCNearbyServiceAdvertiser. My code is roughly localPeer = MCPeerID.init(displayName: deviceName)				 advertiser = MCNearbyServiceAdvertiser( peer: localPeer, discoveryInfo: [:], serviceType: "my-service" )				 browser = MCNearbyServiceBrowser( peer: localPeer, serviceType: "my-service" ) browser.startBrowsingForPeers() advertiser.startAdvertisingPeer() Environment: Xcode 12 Beta(12A6159) iPad Pro(10.5", 2017) running iPadOS 14.0 Beta
11
0
7.2k
Aug ’21
Broadcast extension limit vs large frames on iPad
Hello, Our use case is Screen sharing in a live video call. We use broadcast extension to capture screens and send frames. The broadcast extension has hard limit of 50MB. The screen sharing works great with iPhones. But on iPad, ReplayKit delivers larger screens, and as a result, the extension memory usages goes beyond 50MB. While using the profiler we noticed, the memory used by our code is <25MB, but on iPad ReplayKit is having memory spikes which causes memory to go beyond 50MB limits. How should I achieve screen sharing use case on iPads? What is the guideline. Any suggestion/help is appreciated. Best, Piyush
4
0
3.9k
Aug ’21
PacketTunnelProvider and Encrypted DNS behavior
Hi, We are running a PacketTunnelProvider, and are testing the effects of Encrypted DNS (DoH or DoT). According to WWDC20-10047, "resolution within the VPN tunnel will use the VPN's DNS settings and not your system-wide settings". We've been testing by enabling encrypted DNS system-wide using a configuration profile. However, we can see that in System Preferences -&gt; Network, both the VPN configuration, and the encrypted DNS configuration are active and running. And that DNS is encrypted, interfering with the proper function of our VPN application. Is this expected behavior? How can the behavior of encrypted DNS in conjunction with a VPN be characterized?
6
0
1.3k
Jul ’21
Indexing bringing Xcode to a crawl.
I am running Xcode 11.3.1 on macOS 10.14. (I know, I'm a little behind, but the Mail bug in Catalina still makes me wary.) Lately editing in Xcode has slowed to a crawl. Activity Monitor shows the process com.apple.dt.SKAgent running consistently at over 170%. Keystrokes are often delayed by up to several seconds, and I had to turn off "suggest completions while typing" altogether, which further slows me down. I've tried: rebooting closing any other open projects quitting Xcode and deleting the "DerivedData" directory The problem remains. Is there anything else I can try short of upgrading the OS? If the index parser is getting hung up on something, is there a way I can try to see what it might be?
4
0
1.7k
Jul ’21
How can I prevent user accessing services using Passcode when Biometric is failed
Whenever user tries to login with biometric and it failed multiple times then the passcode screen appears and this is the screen which we don't want for our perfectly secure applications. We are looking to authenticate user with biometric only and not fallback to passcode which is same as the Apple internal API https://developer.apple.com/documentation/security/secaccesscontrolcreateflags where we can enforce user to use biometric based login. Although we like WebAuth framework but this is the only reason we cannot move forward with the WebAuthn framework. is it something Apple can think about providing to make application more secure ?
Replies
0
Boosts
0
Views
733
Activity
Nov ’21
Request
Hello there, Am a developer with Apple,my request is about using Apple Pay wallet as one of my favorite wallet for payments in my account. Please advice me, thanks in advance.
Replies
0
Boosts
0
Views
766
Activity
Nov ’21
Registering domain form
Watching "Broaden your reach with Siri Event Suggestions" video and I need to register my domain with Apple. I can't find the form. Thanks
Replies
1
Boosts
0
Views
567
Activity
Nov ’21
Custom App Distribution
Hello Team, We would like to know what are the options for distributing a custom app via the Apple Business Manager. We have seen your video https://developer.apple.com/videos/play/wwdc2020/10667 where the process is described for using MDM. What if the customer does not have MDM? How can they get the custom app and then distribute it to their users? Thank you in advance,
Replies
0
Boosts
0
Views
660
Activity
Nov ’21
AVPictureInPictureController.isPictureInPictureSupported() is false on iOS 14
I'm using AVPictureInPictureController.isPictureInPictureSupported() to detect PiP feature is supported on the device. It's working on iPadOS 13 and 14. As we know that, iOS 14 is supporting PiP on iPhone. I'm using the same code but it returns false. And I try AVPictureInPictureController(playerLayer: playerLayer).isPictureInPicturePossible, it returns nil. I tested it on iOS 14 beta 1 and beta 2, iPhone X on simulator, it still the same. I also see that the PiP button is also not shown on Safari HTML5 video playback. How to make it work on iOS 14? Or how to enable for it?
Replies
8
Boosts
0
Views
5.3k
Activity
Oct ’21
Encrypted CoreML model load fails with vague error
Xcode Version: 12.4 (Used Xcode 12.5 to create encryption key as 12.4 is bugged and will not let you) I am bundling a ML model into my app, and have encrypted ML model via Xcode 12 encryption method shown here. Model loads and works fine without encryption. After adding model encryption key and setting it as compiler flag, the model encryption/decryption works fine in a demo app, but using the same load method in my main app fails with this error message: Thread 1: Fatal error: 'try!' expression unexpectedly raised an error: Error Domain=com.apple.CoreML Code=0 "Unable to load model at /path_to_model/my_model.mlmodelc/ with error: failed to invoke mremap_encrypted with result = -1, error = 12" I have tried all variations of the load method available within my swift generated model file, all produce the same result above.
Replies
4
Boosts
0
Views
2.9k
Activity
Oct ’21
How does Pixar optimize their USD file sizes to be so small?
Hello, I downloaded the Pixar kitchen scene from Pixar and opened the rug asset as a USD file. It's about 26k polygons ( unsubdivided mesh ) and only 352kb in size. Converting the rug to a Scenekit or OBJ file increases the file size to 3.7MB! About 10x larger ! How did Pixar manage to optimize/ export a 26k polygon model with a size of 352kb? Is this only possible using their Presto proprietary software ? Is there special settings we need to used to export models created in Maya or 3ds Max with the same file size optimization? The Rug model is 3.7mb when exported as a USD file from 3ds Max.
Replies
1
Boosts
0
Views
1.5k
Activity
Oct ’21
Unable to create complication app id
In the WWDC2020 "Keep your complications up to date" session, Mike shows that you have to create an App ID that ends with ".watchkitapp.complication" in order to support PushKit. Any time I try to add ".complication" to the end of my App ID, it gives an error: An App ID with Identifier 'com.x.y.watchkitapp.complication' is not available. Please enter a different string.
Replies
1
Boosts
0
Views
795
Activity
Sep ’21
MultiPeerConnectivity under iOS 14
Hey, I have an app I've been experimenting with on iOS 13 that uses MultiPeerConnectivity. After upgrading to iOS 14 on one of my devices and using Xcode 12 this app no longer works. As outlined in "Support local network privacy in your app" I've added a description with NSLocalNetworkUsageDescription in Info.plist. Since the app uses Bonjour advertisting and browsing via MCNearbyServiceAdvertiser and MCNearbyServiceBrowser I've also added the service name via NSBonjourServices to Info.plist. It's my understanding that this should be enough to make browsing and advertising work. What I am observing is that when I call startAdvertisingPeer on my instance of MCNearbyServiceAdvertiser I am not seeing the local network permission prompt instead I see the following error in the console. 2020-06-27 13:26:54.634264+0100 MultiPeerTest[18970:1571288] [MCNearbyServiceAdvertiser] Server did not publish: errorDict [{&#9;&#9; NSNetServicesErrorCode = "-72000";&#9;&#9; NSNetServicesErrorDomain = 10; }]. Further my app is not showing up under Settings > Privacy > Local Network on my iPadOS 14 device. I looked at the TicTacToe example which declares the bonjour service _tictactoe._tcp as its Bonjour Service but this seems to violate the Bonjour specification for service type as described in the documentation for MCNearbyServiceAdvertiser. My code is roughly localPeer = MCPeerID.init(displayName: deviceName)&#9;&#9;&#9;&#9; advertiser = MCNearbyServiceAdvertiser( peer: localPeer, discoveryInfo: [:], serviceType: "my-service" )&#9;&#9;&#9;&#9; browser = MCNearbyServiceBrowser( peer: localPeer, serviceType: "my-service" ) browser.startBrowsingForPeers() advertiser.startAdvertisingPeer() Environment: Xcode 12 Beta(12A6159) iPad Pro(10.5", 2017) running iPadOS 14.0 Beta
Replies
11
Boosts
0
Views
7.2k
Activity
Aug ’21
NLP Datasets Example
Hi everybody, for my app that is a dictionary I need to create some ML to analyze the text the users inputs in to search bar of my app to do correct search of word asked. I need principally POS and Lemmatization ML. Can you give me some example of dataset?
Replies
0
Boosts
0
Views
1.1k
Activity
Aug ’21
broken link: "If you’d like to integrate your music service with HomePod, let us know"
https://developer.apple.com/contact/request/sirikit-media-intent-for-homepod
Replies
1
Boosts
0
Views
737
Activity
Aug ’21
How Apple create alphabetic in Pencil kit Demo ?
Hi , I was watching https://developer.apple.com/videos/play/wwdc2020/10148/ And I did read the demo project code but I don't understand how Apple know when write "W" in textfield it's "W" in drawing area ? I understand that we separate every char from drawing data , but how it matching with the textfield text ? this part it's confusing me
Replies
0
Boosts
0
Views
688
Activity
Aug ’21
Swift, Lambda, Status: 405 Method Not Allowed?
Watching https://developer.apple.com/wwdc20/10644 Using Swift on AWS Lambda with Xcode. When I call http://127.0.0.1:7000/invoke I get Status: 405 Method Not Allowed? in the browser. And my breakpoint does not hit, no message in Xcode either. Did anyone get this to work?
Replies
1
Boosts
0
Views
1.6k
Activity
Aug ’21
Broadcast extension limit vs large frames on iPad
Hello, Our use case is Screen sharing in a live video call. We use broadcast extension to capture screens and send frames. The broadcast extension has hard limit of 50MB. The screen sharing works great with iPhones. But on iPad, ReplayKit delivers larger screens, and as a result, the extension memory usages goes beyond 50MB. While using the profiler we noticed, the memory used by our code is <25MB, but on iPad ReplayKit is having memory spikes which causes memory to go beyond 50MB limits. How should I achieve screen sharing use case on iPads? What is the guideline. Any suggestion/help is appreciated. Best, Piyush
Replies
4
Boosts
0
Views
3.9k
Activity
Aug ’21
PacketTunnelProvider and Encrypted DNS behavior
Hi, We are running a PacketTunnelProvider, and are testing the effects of Encrypted DNS (DoH or DoT). According to WWDC20-10047, "resolution within the VPN tunnel will use the VPN's DNS settings and not your system-wide settings". We've been testing by enabling encrypted DNS system-wide using a configuration profile. However, we can see that in System Preferences -&gt; Network, both the VPN configuration, and the encrypted DNS configuration are active and running. And that DNS is encrypted, interfering with the proper function of our VPN application. Is this expected behavior? How can the behavior of encrypted DNS in conjunction with a VPN be characterized?
Replies
6
Boosts
0
Views
1.3k
Activity
Jul ’21
Indexing bringing Xcode to a crawl.
I am running Xcode 11.3.1 on macOS 10.14. (I know, I'm a little behind, but the Mail bug in Catalina still makes me wary.) Lately editing in Xcode has slowed to a crawl. Activity Monitor shows the process com.apple.dt.SKAgent running consistently at over 170%. Keystrokes are often delayed by up to several seconds, and I had to turn off "suggest completions while typing" altogether, which further slows me down. I've tried: rebooting closing any other open projects quitting Xcode and deleting the "DerivedData" directory The problem remains. Is there anything else I can try short of upgrading the OS? If the index parser is getting hung up on something, is there a way I can try to see what it might be?
Replies
4
Boosts
0
Views
1.7k
Activity
Jul ’21