I'm new to swift and iOS development. I'm trying to create a file provider extension for my app. I have able to use createItem, modifyItem, fetchContents functions. But when I try to add a GarageBand file or a big size mp3 file(18 Mb) I can see multiple upload is happening. I checked the FruitBasket project where they are doing chunked upload when file size is more than 100 Mb. How do I fix this to only one upload? I'm getting suggestions like I have to do debounce upload but that seems not a proper solutions.
Apple Developers
RSS for tagThis is a dedicated space for developers to connect, share ideas, collaborate, and ask questions. Introduce yourself, network with other developers, and foster a supportive community.
Selecting any option will automatically load the page
Post
Replies
Boosts
Views
Activity
Gostaria de propor a criação de um Modo de Bateria Crítica Inteligente para impedir desligamentos abruptos quando o iPhone atinge 1% de bateria.
O objetivo principal é evitar perda de dados, especialmente em tarefas importantes ou documentos não salvos.
✔️ Funcionamento sugerido:
• Quando o iPhone atinge 1% de bateria, o sistema ativa automaticamente um modo de energia ultrarreduzida, mantendo o aparelho ligado por alguns segundos ou minutos extras.
• Esse modo poderia:
• suspender animações;
• reduzir brilho ao mínimo;
• pausar atualizações em segundo plano;
• congelar aplicativos não essenciais;
• priorizar salvamento automático de arquivos, notas, gravações e mensagens.
✔️ Benefícios:
1. Evita a sensação de desligamento inesperado.
2. Reduz o risco de perda de dados importantes.
3. Melhora a segurança e experiência do usuário.
4. Prolonga a vida útil da bateria, reduzindo ciclos críticos.
✔️ Considerações:
O objetivo não é estender artificialmente a autonomia, mas sim criar uma janela de proteção que permita ao sistema salvar dados e fazer desligamento programado, evitando danos e frustração.
Hello
I used to compile my SW in order to make it available on my iPhone 12 (IOS 18.6.2)
As I launch my app, it seems there is something witch disable the buttons . How can I enable all buttons in my app ?
Best regards
Guy Desbief
Topic:
Community
SubTopic:
Apple Developers
Not sure if this has been reported or not. I have found with several virtualization applications a bug in the running VM counter. After running multiple macOS vms or when shutting down and bringing up one macOS vm multiple times you will get the error that too many vm's are running. Even though all of them are shutdown and the applications closed at the time.
The only solution I have found is to reboot the computer. This started with macOS Tahoe 26 and so far has remained through 26.1. Hopefully reported and fixed in 26.2.
Topic:
Community
SubTopic:
Apple Developers
I am developing a SWIFITUI app that transfers playlists between Apple Music and Spotify but I am not directly create my requests to those companies APIs. I have my own backend. But when fetching users playlists due to "https://api.music.apple.com/v1/me/library/playlists" the response is 403 all the time. I tried many ways including creating new DevToken and UserToken when user login and sending those tokens in headers with Authorization and Music-User-Token. What else can be the problem?
Note: My team ids in Xcode and apple developer portal seems different. Maybe this is the problem.
I am facing a serious and ongoing security breach affecting all of my devices.
An unauthorized developer has gained access and installed development profiles without my consent, compromising my privacy and the integrity of my data.
I am requesting immediate action to:
1. Secure all my accounts and devices.
2. Remove all unauthorized development profiles, configurations, and code associated with my devices.
3. Revoke every suspicious provisioning or signing certificate linked to my devices.
4. Completely eliminate any programming, scripts, or embedded code connected to the following accounts:
•
•
5. Remove any unauthorized code or developer associations tied to my company website:
header 1
These certificates and configurations should not be recognized or accepted by Apple under any circumstance.
Apple is a reputable and highly trusted company, and I am confident it does not tolerate any form of misconduct that compromises user security or allows developers to exploit devices, inject code, or violate customer privacy.
I expect urgent and decisive action to restore the full security of my devices, accounts, and digital assets, and to ensure complete protection against any further unauthorized access.
Topic:
Community
SubTopic:
Apple Developers
I'm working on a SwiftUI application that uses a couple different webviews in a tabview to render some mdx and codemirror editor.
The editor webview, the one that's much more complicated works as expected. Some errors appear in the console due to what I imagine is a race condition that I'll get around to fixing, but it works as expected.
The other webview which just renders a single, local html file to display a dead simple summary absolutely refuses to work. It first appears to work as expected (shows the same 'return type unsupported' error in the console though) on the initial request, but then refuses to process any JS functions for that particular webview. Even the functions themselves are being used between the two webviews, and they work as expected in the other. Even worse, when I copy and paste the generated JS code into the safari dev tools it works as expected, even in the broken webview.
I've spent almost 12 hours on this today so far, and have made zero progress. I've tried commenting out just about the entire website to narrow it down on the JS side without success, and I've done everything I can think of on the swift side.
To be transparent, I'm very new to Swift and SwiftUI, having only picked it up a few weeks ago, but I'm an experienced developer and every obvious solution fails to work.
From what I've gathered, this might have something to do with the first function call failing, despite the fact that it appears to work on the first function call, but then the javascript engine refusing to process additional requests. I'm not sure if that's the cause, but it certainly seems to make sense.
Is there a way to debug this more completely? Like I said, I'm very new to Swift and still missing neovim, so I'm still getting comfortable with the apple ecosystem of devtools, but I can't even figure out how to print out the return type since it fails before I'm able to inspect anything on the safari side
I did notice this error in the console as well, and I'm not quite sure what to make of it:
Error acquiring assertion: <Error Domain=RBSServiceErrorDomain Code=1 "((target is not running or doesn't have entitlement com.apple.developer.web-browser-engine.rendering AND target is not running or doesn't have entitlement com.apple.developer.web-browser-engine.networking AND target is not running or doesn't have entitlement com.apple.developer.web-browser-engine.webcontent))" UserInfo={NSLocalizedFailureReason=((target is not running or doesn't have entitlement com.apple.developer.web-browser-engine.rendering AND target is not running or doesn't have entitlement com.apple.developer.web-browser-engine.networking AND target is not running or doesn't have entitlement com.apple.developer.web-browser-engine.webcontent))}>
And as I was digging for that one, I just noticed this:
WebContent[32934] 0x102011208 - [webPageID=306] WebPage::runJavaScriptInFrameInScriptWorld: Request to run JavaScript failed with error SecurityError: The operation is insecure.
What would trigger a security warning for running javascript against a local file?
Any help is greatly appreciated... this is driving me crazy.
On the latest iOS 26.2 betas I’ve noticed a consistent bug across every 2048-type number-merge game I’ve tested. At some point during gameplay the app freezes and the entire system becomes unresponsive for a few seconds. When control returns, the game is still stuck, looping its selection animation until it’s force-closed. Frame-rate limits and reduced-transparency settings don’t solve it. Is anyone else seeing similar behavior?
Topic:
Community
SubTopic:
Apple Developers
Unknown error during Developer Program Enrollment
I've been attempting to enroll in the Apple Developer Program since mid-October 2025, but I consistently receive an "Unknown Error - Please try again" dialog
Topic:
Community
SubTopic:
Apple Developers
When entering a text to a picture it is possible to paste it from here to there.
But when saving this picture the text leaves its position and gets saved a bit lower in the picture.
This only happens when you changed the text from a horizontal to a vertical position.
The text modules saved in the horizontal position keep there original position.
Topic:
Community
SubTopic:
Apple Developers
I'm concerned that the Apple Vision Pro is too costly for low-income developers to develop for. Any thoughts?
System data is beyond a joke now.
There constant logs being generated and stored somewhere with zero access and ability to delete or clear up. I’ve even tried changing the date hack, however this just created some space from system but mostly just unloaded my apps (a feature which I’ve now disabled, as virtually everything is unloaded now apart from essential items).
Apple support says wipe and start again, I’m sure that’s not a solution? Anyone figured out how to resolve this?
Also you can’t even force videos into the cloud, frustrating when I’ve got no space and pay for iCloud and have zero space left on my phone. It’s suppose to be intelligent.
Topic:
Community
SubTopic:
Apple Developers
Hello everyone! I'm a newly graduated Computer Engineer living in Türkiye. I've been developing my skills in the iOS field for a while now. But sometimes I get lost and don't know what to do. I've just joined this community and have a request for you. I'd be very grateful if you could share your own advice, experiences you've had along the way, and how you successfully overcame them. I'm open to all kinds of positive or negative feedback. Self-improvement is paramount to me.
I have a FORD F250 2021. I returned for a deployment, and CarPlay does not work in my vehicle. I have tried all the YouTube, TikTok, Facebook, and Instagram videos I could find. They all actually started to repeat, so I decided to come here. My wife has an iPhone 16 Pro Max, and it connects to CarPlay without any issues. Other than all the social media suggestions, do you have any other suggestions? No, I am not ready to purchase a new device.
Hey team,
I have an app in CarPlay where i was pushing the CPNowPlayingTemplate as follows:
self.interfaceController.pushTemplate(CPNowPlayingTemplate.shared(), animated: true)
This used to work perfectly, but suddenly I have started to get this error
NSInvalidArgumentException: Unsupported object <CPNowPlayingTemplate: 0x119a0b5c0> <identifier: 6EE4E5A9-B1FB-4341-A485-78D7DDEBD8D0, userInfo: (null), tabTitle: (null), tabImage: (null), showsTabBadge: 0> passed to pushTemplate:animated:completion:. Allowed classes: {(
CPActionSheetTemplate,
CPAlertTemplate,
CPVoiceControlTemplate,
CPTabBarTemplate,
CPListTemplate,
CPInformationTemplate,
CPContactTemplate,
CPMapTemplate,
CPGridTemplate,
CPSearchTemplate
)}
How is this possible? Even on Apple docs, it says to pushTemplate
Refer
https://developer.apple.com/download/files/CarPlay-Developer-Guide.pdf
https://developer.apple.com/documentation/carplay/cpnowplayingtemplate/
Hello,
Since having my iPhone 17 Pro, my CarPlay screen has been pixelated and unusable
Is there any update coming soon to resolve this issue?
My face id didnt work anymore after new version. After the installation Face id works, but few hours later stopped.
Topic:
Community
SubTopic:
Apple Developers
Hello Apple Developer Community,
I have developed a highly optimized, sub-millisecond utility API designed for deterministic linguistic correction in high-volume text environments (e.g., messaging, notes, or high-traffic input fields).
The service is engineered to be a lightweight, server-side or editor-level enhancement that preserves the user's text formatting and intent, only performing targeted, rule-based corrections.
As a member of the Apple Developer Program, I am looking to formally propose a potential integration to the relevant business development or engineering teams at Apple.
Could anyone with experience in formal API integration or partnership please advise on the correct channel?
Is there a specific internal team or email address (within Apple Services or Business Development) that handles proposals for this type of high-performance utility?
Should this proposal be initiated exclusively through a specific contact form on the Apple Partner Network site?
I am committed to following Apple's official vetting process. Thank you for any guidance on the proper point of contact.
Topic:
Community
SubTopic:
Apple Developers
Hello Apple Developer Community,
I'm experiencing an issue on macOS where ASWebAuthenticationSession fails to display its authentication window.
The session is created successfully and start() returns true, but:
no UI is shown,
presentationAnchor(for:) is never invoked,
the completion handler is never called,
and no errors appear in Console.app or Xcode logs.
This happens both when using the session via a Flutter plugin and when calling ASWebAuthenticationSession directly from Swift.
Environment
macOS 14.6 (Sonoma)
Xcode latest stable
Target: macOS 10.15+
App type: sandboxed macOS app, hardened runtime enabled
The project also includes a Login Item (SMAppService) target
Redirect URI scheme: myapp-auth://callback
Problem Description
When I trigger authentication, the logs show:
[AuthPlugin] Starting ASWebAuthenticationSession...
After that:
no authentication sheet appears,
presentationAnchor(for:) is never called,
the completion handler is not invoked.
The main window is visible and active when the method is called.
Swift Implementation
public class AuthPlugin: NSObject, FlutterPlugin, ASWebAuthenticationPresentationContextProviding {
private var webAuthSession: ASWebAuthenticationSession?
private var resultHandler: FlutterResult?
private func authenticate(url: URL, callbackScheme: String, result: @escaping FlutterResult) {
NSLog("[AuthPlugin] authenticate() called")
NSLog("[AuthPlugin] URL: %@", url.absoluteString)
NSLog("[AuthPlugin] Callback scheme: %@", callbackScheme)
resultHandler = result
let session = ASWebAuthenticationSession(
url: url,
callbackURLScheme: callbackScheme
) { [weak self] callbackURL, error in
NSLog("[AuthPlugin] completion handler invoked")
if let error = error {
NSLog("[AuthPlugin] error: %@", error.localizedDescription)
return
}
guard let callbackURL = callbackURL else {
NSLog("[AuthPlugin] missing callback URL")
return
}
self?.resultHandler?(callbackURL.absoluteString)
}
session.presentationContextProvider = self
session.prefersEphemeralWebBrowserSession = false
self.webAuthSession = session
NSLog("[AuthPlugin] Starting ASWebAuthenticationSession...")
let started = session.start()
NSLog("[AuthPlugin] start() returned: %@", started ? "true" : "false")
}
public func presentationAnchor(for session: ASWebAuthenticationSession) -> ASPresentationAnchor {
NSLog("[AuthPlugin] presentationAnchor called")
if let keyWindow = NSApplication.shared.windows.first(where: { $0.isKeyWindow }) {
NSLog("[AuthPlugin] using key window")
return keyWindow
}
if let firstWindow = NSApplication.shared.windows.first {
NSLog("[AuthPlugin] using first window")
return firstWindow
}
NSLog("[AuthPlugin] creating fallback window")
let window = NSWindow(
contentRect: .init(x: 0, y: 0, width: 400, height: 300),
styleMask: [.titled, .closable],
backing: .buffered,
defer: false
)
window.center()
window.makeKeyAndOrderFront(nil)
return window
}
}
Key Observations
The session is created successfully.
ASWebAuthenticationSession.start() returns true.
presentationAnchor(for:) is never invoked.
The completion handler is never triggered.
No errors appear in system logs.
The same code works correctly in a non-sandboxed macOS app.
The main window is visible and the app is active when the session is started.
Questions
What conditions must be met for macOS to call presentationAnchor(for:)?
Does the window need to be key, main, visible, or foreground?
Does ASWebAuthenticationSession.start() need to be called strictly on the main thread?
Are additional entitlements, sandbox permissions, or Info.plist keys required for using ASWebAuthenticationSession in a sandboxed macOS application?
Could the existence of a Login Item (SMAppService) affect the app’s ability to present the authentication sheet?
Are there known restrictions for using custom URL schemes (myapp-auth://callback) on macOS?
Is there any way to obtain more detailed diagnostics when start() silently fails to display UI?
Summary
In a sandboxed macOS application, ASWebAuthenticationSession starts without errors but never attempts to present its UI.
Since presentationAnchor(for:) is never called, it seems macOS is blocking the presentation for some reason — possibly sandbox configuration, entitlements, or window state constraints.
Any guidance or suggestions would be greatly appreciated.
Thank you!
Topic:
Community
SubTopic:
Apple Developers
Hi everyone,
I’m not sure if this is the right place for it, but I wanted to share a bit of my background and ask for advice from developers who’ve been in the industry longer than me.
I started learning to make games when I was a kid using Game Maker.
Later I got into Unity and even worked a few years as a solo developer for small startups — building Unity apps, VR projects, AR demos, websites, servers, everything.
But I never had a real team, never had mentorship, and none of the projects I worked on ever reached production or real users.
Life changed and I moved to the US, where I had to switch careers completely.
Now I’m trying to come back to software development, but I’m struggling with a feeling that I’m “not good enough” anymore.
The tech world has moved so fast, and companies like OpenAI, Meta, Epic, etc., feel way out of reach.
So my question to the community is:
How did you get started in your career?
Did you ever feel like you weren’t good enough?
How did you push through that and continue improving?
Any honest advice would help a lot.
Thanks.