Hi all, I’m running into a “double update” effect in SwiftUI when using the @Observable with @State. I’m trying to understand whether this is expected behavior, a misuse on my side, or a potential bug. Setup I have an observable store using the Observation macro: @Observable class AlbumStore { var albums: [Album] = [ Album(id: 1, title: Album 1, author: user1), Album(id: 2, title: Album 2, author: user1), Album(id: 3, title: Album 3, author: user1), Album(id: 4, title: Album 4, author: user1), Album(id: 5, title: Album 5, author: user1), Album(id: 6, title: Album 6, author: user1) ] func addAlbum(_ album: Album) { albums.insert(album, at: 0) } func removeAlbum(_ album: Album) { albums.removeAll(where: { $0 == album }) } } In my view, I inject it via @Environment and also keep some local state: @Environment(AlbumStore.self) var albumStore @State private var albumToAdd: Album? I derive a computed array that depends on both the environment store and local state: private var filteredAlbums: [Album] { let albums =
Search results for
Building for iOS Simulator, but the linked and embedded framework ‘XX.framework‘ was built for
186,349 results found
Selecting any option will automatically load the page
Post
Replies
Boosts
Views
Activity
I am using the native SwiftUI WebView and WebPage APIs (iOS 26+) and would like to implement file download functionality using the native SwiftUI WebView. However, I have not been able to find any APIs equivalent to WKDownload. In WKWebView, the WKDownload API can be used to handle downloads. I am looking for a similar API or recommended approach in the native SwiftUI WebView that would allow downloading files. If anyone has guidance or suggestions on how to implement this, I would appreciate your help.
Hello Apple Developer Support Team, We are developing an iOS iPhone application and would like clarification on whether Apple provides any APIs or system-level support to implement parental approval workflows aligned with certain regional regulatory requirements (for example, Texas, Utah, and Louisiana). Our intended use cases are outlined below: Initial Approval (App Download Stage) We understand that, in some situations, when a minor attempts to download an app from the App Store on iPhone, iOS may require approval through Family Sharing / Ask to Buy. We would like to confirm: • Whether there is any developer-accessible API that allows an iPhone app to detect if installation was approved via parental consent. • Whether apps can receive any callback, status indicator, or system signal confirming parental approval or rejection. • Whether the Declared Age Range API or any related framework provides access to parental approval or age verification signals. Ongoing Approval for Signific
Topic:
App & System Services
SubTopic:
General
Tags:
Developer Tools
App Store Connect API
Screen Time
Declared Age Range
I’ve honestly never received service this bad from a company and I don’t say that lightly. This is the worst support experience I’ve ever had. I’m trying to enroll in the Apple Developer Program, but I’m stuck in a loop that has been going on for months: The Apple Developer app repeatedly fails during identity verification and tells me there’s an issue. When I contact support, they tell me they’ll email me instructions. The email says: “Please use the Apple Developer app to enroll.” I reply saying: “I did. It doesn’t work. The verification fails.” And the response is again: “Use the Apple Developer app.” Over and over, with no actual troubleshooting or escalation. This is not a user-error situation — I’m following the instructions exactly. I need someone to look at what’s happening on Apple’s side (verification/enrollment status) and give a real resolution path, not the same copy-paste response. Details: Country/Region: [your region] Devices tried: [iPhone model + iOS version], [Mac model + macOS ver
Hi, our Xcode Cloud runs produce dsyms for test targets that massively increase the artifacts size, more specifically the Test Products for zip, that slows down the build due to the upload artifacts phase. These dsyms are useless, so we would like to stop producing them on Xcode Cloud builds. Consider that the workflow uses the autogenerated scheme for a package that's part of the Xcode project. How can we tell Xcode Cloud to not produce dsyms?
This issue occurs on iOS 26+, I haven't reproduced this issue yet. According to online monitoring, it occurs in a specific user environment scenario where AVPlayer is used to play background music while the user is playing a mini-game on an H5 page, which also includes in-game audio. I will attempt to reproduce the issue again.
Topic:
Media Technologies
SubTopic:
Audio
Tags:
You focus on your vector design tool for your icon, as noted in Prepare your artwork for export, so that you can export the vector data, and then use it with Icon Composer to fine tune it for Liquid Glass. With this approach, you won't need to worry about the numerous specific bitmap icon sizes that you may be familiar with from older iOS versions. — Ed Ford, DTS Engineer
Topic:
Developer Tools & Services
SubTopic:
General
Tags:
What's the normal that you are referring to? I submitted 20 new software titles to the review last year. The average wait time was probably one and a half days or two to three at most. I had two new software titles that I submitted at the end of the year. I ended up waiting 4 or 5 days for a desktop application and another 2 or 3 days for its iOS counterpart. An average wait time was 17 to 19 days 15 years ago. So whatever the average time is now, I won't be terribly concerned.
Topic:
App Store Distribution & Marketing
SubTopic:
App Review
I figured this out, at least for me. The whole internet says you need a swift file in your project and then you'll see the Swift settings! .... That's a little too obvious. I have swift in my project and I STILL don't see the settings. The real problem for me is that the project contained an ancient build setting that appears perfectly safe: This is actually: GCC_VERSION = com.apple.compilers.llvm.clang.1_0 If that's in there, I don't see Swift Compiler sections. If I remove that (or explicitly change it to the default which is the correct value, and builds in an identical way), they instantly show up.
Topic:
Developer Tools & Services
SubTopic:
Xcode
Tags:
Hello @SamApple , thank you for your question! The interaction you are describing is a common one but it isn't obvious how to build it out of the box. However I think it will be very useful for developers to understand how to achieve drag an object while maintaining solid collisions in their app, so I spent some time working this out for myself. Keep in mind this is just one suggestion for how to implement this interaction, and there are likely edge cases that I won't cover here. Please feel free to ask any clarifying questions! I've also linked to the documentation pages on many of the component names so you can learn more about how each of these components work. My implementation involves two entities: A target entity (a simple box in my example) which is what the person wants to manipulate and a ghost entity that the target will follow. The ghost will be the entity that is actually being manipulated, while the target will have forces applied to move it towards the ghost. Note that target
Topic:
Graphics & Games
SubTopic:
RealityKit
Tags:
I am building an app for iOS and MacCatalyst that indexes files by storing their local paths. Because the app relies on the file remaining at its original location, I only want to accept items that can be opened in place. I am struggling to determine if an item is Open In Place compatible early in the drag-and-drop lifecycle. Specifically: In dropInteraction(_:canHandle:) and dropInteraction(_:sessionDidUpdate:), calling itemProvider.registeredTypeIdentifiers(fileOptions: [.openInPlace]) returns an empty array. Only once the drop is actually committed in dropInteraction(_:performDrop:) does that same call return the expected type identifiers. This creates a poor user experience. I want to validate the In Place capability at the very start of the session so the drop target only activates for valid files. If an item is ephemeral (like a dragged photo from the Photos app or a temporary export), the drop zone should not react at all. How can I reliably detect if an NSItemProvider supports .openI
Topic:
App & System Services
SubTopic:
General
Tags:
Mac Catalyst
UIKit
Files and Storage
Foundation
Thanks for the post and the crash file. Looks like you have received no replies. Looking at the crash file it seems like 135 threads at least. I would recommend to go ahead and create a focused sample project that reproduces this issue as I'm not aware of any open bugs on that API. Why not calling it from the main thread? Do you get the same results with just the relevant code in a small test project? If so, please share a link to your test project. That'll help us better understand what's going on. If you're not familiar with preparing a test project, take a look at Creating a test project. Albert Pascual
Worldwide Developer Relations.
Topic:
Media Technologies
SubTopic:
Audio
Tags:
Thanks for the post, so when using the https://developer.apple.com/documentation/carplay/cpcontacttemplate api for CarPlay has changed the output from iOS 16 to 26? Can you provide a focused sample showing the issue? The most common reason for buttons not showing is incorrect setup. The code for creating and configuring the buttons must be correct. Are you correctly initializing the button classes (e.g., CPContactCallButton())?Are you setting the properties of the buttons correctly (e.g., contactName, phoneNumber, messageBody)?Ensure you have implemented logic to handle button presses. Buttons require interaction to perform actions. Without either the target-action pattern (using addTarget) or implementing a CPButton delegate method the buttons have nothing to execute. The template needs to be presented using the correct CarPlay CPInterfaceController. Ensure that you are displaying your CPContactTemplate through the CarPlay interface. Ensure the view controller which is housing the CarPlay template i
Hi all, I believe the behavior we're seeing is explained in the documentation Using iCloud with macOS virtual machines https://developer.apple.com/documentation/virtualization/using-icloud-with-macos-virtual-machines From the article: If someone moves a VM to a different Mac host and restarts it... Additionally, the Virtualization framework detects attempts to start multiple copies of the same VM simultaneously on the same Mac host... My interpretation of this is: The Virtualization framework will assign a new Secure Enclave-derived UDID if a VM is started on a different host. It will also assign a new UDID if a cloned VM is started on the same host while the original VM is running at the same time. Given these constraints, I don't think it's possible to reliably preserve a Secure Enclave-derived UDID across multiple cloned environments. However, at least for now, it's still possible to install macOS 15/26 using the older ChipID=0000FE00 style UDID. In my UTM workflow, the process looks like
Topic:
App & System Services
SubTopic:
Core OS
Tags:
@423fts Can you go ahead and file a bug against Universal Links not working well against Unicode only like (求人ボックス.com)? Once you open the bug report, please post the FB number here for my reference. If you have any questions about filing a bug report, take a look at Bug Reporting: How and Why? Thanks and apologies for the delay, Albert Pascual
Worldwide Developer Relations.
Topic:
App & System Services
SubTopic:
General
Tags: