Search results for

A Summary of the WWDC25 Group Lab

10,109 results found

Post

Replies

Boosts

Views

Activity

Reply to WatchOS INSendMessage handoff
According to this document: https://developer.apple.com/documentation/usernotifications/implementing-communication-notifications Communication notifications provide a rich experience for direct communication. These notifications have a unique user experience, highlighting prominent avatars and group names. But when NSUserActiveTypes ->INSendMessage Intent is added to info. plist, the WatchOS startup app will display Outlook Handoff on Mac. However, there will be no Outlook Handoff after iOS startup. 按照此文档:https://developer.apple.com/documentation/usernotifications/implementing-communication-notifications 通讯通知为直接沟通提供了丰富的体验。这些通知具有独特的用户体验,突出了醒目的头像和群组名称。 但是当添加NSUserActivityTypes->INSendMessageIntent到info.plist后,WatchOS启动App就会在Mac 上出现Outlook接力。但是iOS启动后不会出现Outlook接力。
Jun ’25
UICollectionView with orthogonal (horizontal) section not calling touchesShouldCancel(in:)
I have a UICollectionView with horizontally scrolling sections. In the cell I have a UIButton. I need to cancel the touches when the user swipes horizontally but it does not work. touchesShouldCancel(in:) is only called when swiping vertically over the UIButton, not horizontally. Is there a way to make it work? Sample code below import UIKit class ConferenceVideoSessionsViewController: UIViewController { let videosController = ConferenceVideoController() var collectionView: UICollectionView! = nil var dataSource: UICollectionViewDiffableDataSource ! = nil var currentSnapshot: NSDiffableDataSourceSnapshot ! = nil static let titleElementKind = title-element-kind override func viewDidLoad() { super.viewDidLoad() navigationItem.title = Conference Videos configureHierarchy() configureDataSource() } } extension ConferenceVideoSessionsViewController { func createLayout() -> UICollectionViewLayout { let sectionProvider = { (sectionIndex: Int, layoutEnvironment: NSCollectionLayoutEnvironment) -> NSCollectionLayo
Topic: UI Frameworks SubTopic: UIKit Tags:
1
0
68
Jun ’25
Reply to Unable to compile Core Image filter on Xcode 26 due to missing Metal toolchain
Mine works by Deleting Xcode-beta.app , Reinstalling and follow the command line workaround (with t in plist in the second line) again I also had this problem and already downloaded metal toolchain in XCode. I followed 3 line command line workaround from release note and found many error from xcodebuild didn't point to xcode but CommandLineTool instead -> fix with this https://stackoverflow.com/questions/17980759/xcode-select-active-developer-directory-error something not exist when running sed ... -> add the missing t to the plis at the end of the line can't import component -> I tried xcodebuild -deleteComponent metalToolchain and importComponent again but it didn't work I guessed that the reason mine didn't work while other people's worked may come from something that happened when I download the MetalToolchain component in Xcode may obstruct the commandline workaroound. So, I tried deleting the Xcode-beta.app, deleting things in /tmp folder that the commandline download. ensure anything else crea
Topic: Graphics & Games SubTopic: Metal Tags:
Jun ’25
Reply to Sample code for WWDC25 Session
Hello, David, Thank you very much for bringing this up, I also had a look for it and could not find it yet. Perhaps, they just forgot to put the link onto the page… As you know, it is always difficult to reach Apple for things like that — please feel free to file a bug report on this. Put WWDC25 in the title — and complain. No joke. They will read this ;-) And please come back here and post the number of your bug report here too. Also no joke. They will read this ;-) I will do the same now, I already mentioned it in the online/DeveloperApp survey. See you ;-) UPDATE: My Feedback ID is FB18100457
Topic: Graphics & Games SubTopic: RealityKit Tags:
Jun ’25
Reply to Please provide bounds for ViewAttachmentComponent
Thanks both of you. Now I got more idea why this wasn't working when I showed it to Sydney in the labs, but also, Allan from RealityKit got me covered in the next Lab by pointing at the new SpatialContainer. ViewAttachmentComponent Update: SIMD3(0.036764707, 0.008455883, 0.0) Entity with ViewAttachmentComponent Update: SIMD3(0.073529415, 0.016911766, 0.0) PS @Michael: You meant to write points not meters, right, in the Text?
Topic: Spatial Computing SubTopic: General Tags:
Jun ’25
Reply to Horrendous Swift overlay of vDSP Fourier Transform functions
Summary of related routines Getting data to expected form/type // 1. idiomatic Swift, but pyramid of doom let a = [1,2,3,4] a.withUnsafeBufferPointer { pa in var one : Int32 = 1 withUnsafeMutablePointer(to: &one) { pone in // LAPACK routines pass ALL parameters by reference. // Luckily most vDSP functions don't do this sgemm_(pa.baseAddress!,pone, ...) } } // 2. Manual memory management. Always remember to deallocate. At least we have type checks let b = UnsafeMutableBufferPointer .allocate(capacity: 16) let c = UnsafeMutableBufferPointer .allocate(capacity: 16) defer { b.deallocate(); c.deallocate() } Let's setup some data: 16 complex values in split complex form. _ = b.initialize(from:[0,0.1,0.3,0.5, 0.7,0.9,1,1, 1,0.9,0.7,0.5, 0.3,0.1,0,0]) c[0..<12] = b[4..<16] c[12..<16] = b[0..<4] print(Array(c)) // Remember, array has value semantics, and Array(c) won't follow c's subsequent updates var d = UnsafeMutableBufferPointer.allocate(capacity: 16) var e = UnsafeMutableBufferPointer.all
Topic: App & System Services SubTopic: Core OS Tags:
Jun ’25
Reply to How to disable automatic updates to MPNowPlayingInfoCenter from AVPlayer
Thank you for your reply, I also just had an AVKit lab and this indeed seems like an issue with the framework(s). To follow up, I filed a feedback (FB18058056) mentioning yours and this discussion. I also realized that using the CustomAVPlayerView as shown above actually works as long as the app doesn't configure the MPRemoteCommandCenter (by adding targets to the shared instance). In my use case, I do have to configure it (as for many other I recon) so I had to come up with another fix. Personally what I did is to pass the scenePhase to the views configuring/displaying the videos so that when the app enters the .inactive or .background state I can pause the AVPlayers and setup the nowPlayingInfo again (either to nil or current audio). I also do this cleanup as soon as the view disappears (via .onDisappear{}). Ultimately this is not great as there are still some side-effects, for example, If no audio is playing but the user simply opens the view with the video players, the app will appear as Now Play
Topic: Media Technologies SubTopic: Video Tags:
Jun ’25
Guideline 3.1.1 - Business - Payments - In-App Purchase
I have been spending countless amounts of time making sure my application abides by the rules laid out by Apple App Guidelines. Most recently I got this rejection from App Review: _**Guideline 3.1.1 - Business - Payments - In-App Purchase ** The app includes an account registration feature for businesses and organizations, which is considered access to external mechanisms for purchases or subscriptions to be used in the app. **Next Steps ** Remove the account registration features for business and organizations._ After asking for the review to clarify what they mean they said: _Regarding guideline 3.1.1, users were still able to create an entirely independent business account, when they create a new account without the invite code. To resolve this issue, it would be appropriate to remove the account registration features for business and organizations._ But the problem is that There are no different account types in our app. ALL users create company accounts - there is no individual vs business distinction. U
1
0
101
Jun ’25
Request for Agentic AI Mode (MCP Protocol) Support in Future Versions of iOS or Xcode
Hello Apple Team, Thank you for the recent Group Lab and for your continued work on advancing Xcode and developer tools. I’d like to submit a feature request: Are there any plans to introduce support for Agentic AI Mode (MCP protocol) in future versions of iOS or Xcode? As developer tools evolve toward more intelligent and context-aware environments, the integration of agentic AI capabilities could significantly enhance productivity and unlock new creative workflows. Looking forward to your consideration, and thank you again for the excellent session. Best regards
3
0
146
Jun ’25
Reply to Old style tab bar
Here's what we said in WWDC25 Platforms State of the Union: As you evaluate your app's UI and the time you need to adopt the new design, we're providing an option to continue to use your app's current design with Xcode 26. We intend this option to be removed in the next major release. — Ed Ford,  DTS Engineer
Topic: UI Frameworks SubTopic: UIKit Tags:
Jun ’25
Reply to PHP and Swift interoperability
There was some discussion of language interoperability at WWDC25 this year. Please see the WWDC25 session Explore Swift and Java interoperability and the Related sessions listed on that page. Also, for server related stuff you may be interested in this Swift on Server article. For anything else you're thinking of that's not covered in those items, perhaps consider filing an enhancement request or participating in the Swift open source project. You can file an enhancement request using the Feedback Assistant. If you file the request, please post the Feedback number here so we can make sure it gets routed to the right team. If you're not familiar with how to file enhancement requests, take a look at Bug Reporting: How and Why?
Topic: Programming Languages SubTopic: Swift Tags:
Jun ’25
Getting started with PHP ..
I am new to PHP. I have developed my own web site with a lot of javascript in simple HTML files. I want to do some extensions with PHP but I can't make a simple web page function. I am sure something simple is wrong. Help! Here is the test web page I made: hello.html Hello World Pointing Safari at hello.html gives me a new tab with the correct title, but no Hello World in the page itself. Here is the output of php --version: WARNING: PHP is not recommended PHP is included in macOS for compatibility with legacy software. Future versions of macOS will not include PHP. PHP 7.3.24-(to be removed in future macOS) (cli) (built: Jun 17 2021 21:41:13) ( NTS ) Copyright (c) 1997-2018 The PHP Group Zend Engine v3.3.24, Copyright (c) 1998-2018 Zend Technologies
2
0
738
Jun ’25
Reply to Using .glassEffect in Charts
Generally speaking, Liquid Glass is not a part of Swift Charts. For recommendations about using Liquid Glass I suggest reviewing the WWDC25 sessions about Liquid Glass. They discuss many considerations about how and where to employ the new Liquid Glass GUI features.
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Jun ’25
Reply to Autogenerated UI Test Runner Blocked By Local Network Permission Prompt
Sorry, let me better explain what I meant, I typed it incorrectly in the previous post. For some additional context, we build web browsers so it's very normal for us to be running a local web server during UI/integration testing to provide web pages to test certain features with while ensuring we're not hitting the network directly to get better determinism in our tests. Here's a truncated diagram of our system architecture for CI today: [root] launchd ↳ [user] ~/Library/LaunchAgent/github.actions.runner.plist ↳ [user] xcodebuild ... test What I've prototyped is not actually moving the agent to a daemon (this is not possible due to the requirements that GitHub's runner software has. Instead, I'm proposing that we run the xcodebuild ... test command with sudo. This would modify our architecture slightly to look like this when, and only when, we run the testing job. [root] launchd ↳ [user] ~/Library/LaunchAgent/github.actions.runner.plist ↳ [user] sudo xcodebuild ... test This means we have to add xcodebuild to
Jun ’25