WWDC20 Community

RSS for tag

Connect with other WWDC20 participants.

Posts under WWDC20 Community tag

75 results found
Sort by:
Post not yet marked as solved
379 Views

Tensorflow acceleration on macOS

Would it be possible to use GPU acceleration when training a Tensorflow model on macOS? How’s the performance when we training the same model on an Apple-chip platform?
Asked Last updated
.
Post not yet marked as solved
172 Views

Issue when creating achievements

I am unable to create achievements as when I click on add Language to and English. The Pop-up is doesn't function properly. Is there any fix around this? Thanks
Asked Last updated
.
Post marked as solved
12k Views

Xcode 12 is slow when launching apps (even sample projects)

Running a project from Xcode 12 seems to be very slow during launch. Even the example projects from Apple. Basically it feels as if the app is stuck on the launch screen? However, if I unplug from my Mac and just launch via tapping on the App icon, it's super fast. Anyone is having the same issue?
Asked
by terenze.
Last updated
.
Post not yet marked as solved
2.3k Views

[PHPicker] Permission error followed by "no such file" error

I have a naive implementation of the new PHPicker in SwiftUI (code below). When running on a separate device (iPhone 6s, iOS 14.0), I am able to load some images, but not others. The images that do not load seem to encounter a permissions error: // [...] indicates redacted content for brevity [...] [default] [ERROR] Could not create a bookmark: NSError: Cocoa 257 "The file couldn’t be opened because you don’t have permission to view it." } [...] [claims] Upload preparation for claim [...] completed with error: Error Domain=NSCocoaErrorDomain Code=260 "The file “[...].jpeg” couldn’t be opened because there is no such file." UserInfo={NSURL=[...]{Error Domain=NSPOSIXErrorDomain Code=2 "No such file or directory"}} I'm a little confused because I thought a core value proposition of the new PHPicker was that it automatically allowed access to selected photos. When I try selecting an image using Simulator, I just get the second error (does not exist), but not the first. I'm also noticing that the main photos grid does not seem to automatically update with new photos, even though the "Recent" album does. I have to force quit and restart the app to see the latest photos appear, though I have not been able to load any of them due to the issue described above. // // PhotoPicker.swift // NewParis // // Created by Yihwan Kim on 7/12/20. // import SwiftUI import UIKit import PhotosUI struct PhotoPicker: UIViewControllerRepresentable {   @Binding var isPresented: Bool   @Binding var selectedImage: Image?       func makeUIViewController(context: Context) -> PHPickerViewController {     var configuration = PHPickerConfiguration(photoLibrary: PHPhotoLibrary.shared())           configuration.filter = .images           let controller = PHPickerViewController(configuration: configuration)     controller.delegate = context.coordinator     return controller   }       func updateUIViewController(_ uiViewController: UIViewControllerType, context: Context) { }       func makeCoordinator() -> Coordinator {     Coordinator(self)   }       class Coordinator: PHPickerViewControllerDelegate {     private let parent: PhotoPicker           init(_ parent: PhotoPicker) {       self.parent = parent     }           func picker(_ picker: PHPickerViewController, didFinishPicking results: [PHPickerResult]) {       parent.isPresented = false               if let itemProvider = results.first?.itemProvider, itemProvider.canLoadObject(ofClass: UIImage.self) {         itemProvider.loadObject(ofClass: UIImage.self) { [weak self] uiImage, error in           DispatchQueue.main.async {             guard let self = self, let uiImage = uiImage as? UIImage else { return }             self.parent.selectedImage = Image(uiImage: uiImage)           }         }       }     }   } }
Asked
by yihwan.
Last updated
.
Post marked as solved
163 Views

How Many Devices Should Your Submission Work On?

I am thinking of applying for the WWWDC Scholarship next year since I just started learning Swift recently, but as I was reading the requirements, I saw that it said: "Your Swift playground must be built with and run on Swift Playgrounds 3.4.1 on iPadOS 14.4.2, Swift Playgrounds 3.4.1 on macOS 11.2.3, or Xcode 12.4 on macOS 11.2.3. If it runs on iPadOS, it must be optimized to display properly on all models of iPad Pro." Does this mean that if you decide that your project is on an Ipad, then that means that it has to work on every display size or that no matter what device your project is meant for, it must be designed to work on an Ipad as well?
Asked
by ARA_06.
Last updated
.
Post not yet marked as solved
145 Views

Where do we code this?

Not sure if I'm thinking about this too much, but do we code this in Xcode Playgrounds or in Swift Playgrounds?
Asked
by ARA_06.
Last updated
.
Post not yet marked as solved
240 Views

Sandwich asset resources

Hi Jacob, Kyle and team, great job with the Introduction to SwiftUI video. As I'm following through the video just wondering when and where will the image assets for the sandwiches and model be located. Huge thanks. #wwdc20-10019
Asked Last updated
.
Post not yet marked as solved
136 Views

What is the minimum age for a WWDC scholar and Apple Developer?

I attempted to sign up for the Apple Developer Program. The Program rejected me due to an age category error. I asked the Apple Support Team but they showed me a contract that declared the minimum age as 13. However, I am well beyond that age, being 15.
Asked
by Bcbro.
Last updated
.
Post not yet marked as solved
582 Views

Universal Links - SWCERR00305 - denied because the CDN told us to stop with HTTP status 404

Hey Folks! Maybe someone can point me into the right direction. I have an App which should be opened by the associated domain. I think on the xcode-side I did everything right as I can see the swcd trigger in the console on fresh install. here is the output: Request for '<private>' for task AASA-1C727A71-EAC0-4EF7-8F40-0EB4DBFAAFFF { domain: me….do….de, bytes: 0, route: cdn } denied because the CDN told us to stop with HTTP status 404: SWCERR00305 Network error -- {"cause":"EOF"} Serverside I hosted the apple-app-site-association file in the .well-known directory like so: &#9;"appIDs": [ "69NHXD8TDC.org.natgo.dolspotmeet" ], &#9;"components": [ &#9;&#9;{ &#9;&#9;&#9;"/": "/*", &#9;&#9;&#9;"comment": "Matches any URL" &#9;&#9;} &#9;], &#9;"defaults": { "caseSensitive": false } } When I curl the file its perfectly reachable: curl -v https://meet.dolspot.de/.well-known/apple-app-site-association Output: HTTP/2 200 server: nginx/1.14.0 (Ubuntu) date: Tue, 26 Jan 2021 15:15:56 GMT content-type: application/pkcs7-mime content-length: 183 last-modified: Tue, 26 Jan 2021 15:05:07 GMT etag: "60102fa3-b7" strict-transport-security: max-age=31536000 accept-ranges: bytes { &#9;"appIDs": [ "69NHXD8TDC.org.natgo.dolspotmeet" ], &#9;"components": [ &#9;&#9;{ &#9;&#9;&#9;"/": "/*", &#9;&#9;&#9;"comment": "Matches any URL" &#9;&#9;} &#9;], &#9;"defaults": { "caseSensitive": false } }% As you can see I also already changed the served Application-type to application/pkcs7-mime in the nginx config. I really dont understand why apples crawler wont crawl this. In the server access logs I am not able to see any accesses from the AASA-Bot. Also I deleted any robots.txt in the corresponding directory, so the bot shouldnt be blocked. The Error is reproducable when hitting the following curl: curl -v https://app-site-association.cdn-apple.com/a/v1/meet.dolspot.de Resulting in the following: < HTTP/1.1 404 Not Found < Date: Tue, 26 Jan 2021 15:05:40 GMT < Content-Length: 0 < Apple-Failure-Details: {"cause":"EOF"} < Apple-Failure-Reason: SWCERR00305 Network error < Apple-From: https://meet.dolspot.de/.well-known/apple-app-site-association < Apple-Try-Direct: false < Cache-Control: max-age=1800,public < Age: 825 < Via: https/1.1 uklon5-vp-vst-007.ts.apple.com (ApacheTrafficServer/8.1.0), https/1.1 uklon5-vp-vfe-005.ts.apple.com (ApacheTrafficServer/8.1.1), http/1.1 dedus1-edge-lx-002.ts.apple.com (ApacheTrafficServer/8.1.1), https/1.1 dedus1-edge-bx-002.ts.apple.com (ApacheTrafficServer/8.1.1) < Server: ATS/8.1.1 < CDNUUID: 09a85634-db60-46ba-8a28-5d22021aaf4a-18339802882 < X-Cache: miss, hit-fresh, hit-stale, miss < Expires: Tue, 26 Jan 2021 15:05:50 GMT < Connection: keep-alive < Connection #0 to host app-site-association.cdn-apple.com left intact Closing connection 0 I am pretty much at the end of my troubleshooting-journey and would greatly appreciate any help on this 🙂 Cheers Kian
Asked
by Kian1991.
Last updated
.
Post not yet marked as solved
205 Views

ios video editor

I'm trying to develop a ios/android video editor. I understand that a fullstack web engineer would have the skillset to do so, BUT I have talked to many upon many fullstack developers and no one has the ability. Is it a fullstack engineer with audio/video API development what I need, or something else. PLEASE HELP
Asked
by arossbiz.
Last updated
.
Post not yet marked as solved
683 Views

Error compiling Golang for Apple Silicon

Following this guide https://github.com/golang/go/wiki/GoArm#apple-silicon to build a Go binary for Apple Silicon. I am building in macOS Catalina 10.15.7 with Xcode 12.1 I get the following error messages: In file included from /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/stdlib.h:66: In file included from /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/sys/wait.h:109: In file included from /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/sys/signal.h:146: /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/machine/_mcontext.h:31:2: error: architecture not supported fatal error: too many errors emitted, stopping now [-ferror-limit=] Anyone has any recommendations about building a Go binary for Apple Silicon?
Asked
by jcarm010.
Last updated
.
Post not yet marked as solved
1.9k Views

WidgetKit background like the system battery widget

Hello, is it possible to configure our widgets with a background like the inbuilt system battery widget? It looks like it's using a UIVisualEffectView as it's background which looks fantastic against the user's background. Especially as it transitions for dark mode. I've been through all the docs and designing for WidgetKit but can't figure out how to have anything but a fully opaque background. Setting the background to transparent on my SwiftUI view results in white showing as the background. Thanks, Greg
Asked
by gspiers.
Last updated
.