Apple Developers

RSS for tag

This 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.

Learn More

Posts under Apple Developers subtopic

Post

Replies

Boosts

Views

Activity

Download and Store Custom Notification Sound for Playback in All App States (Foreground, Background, and Terminated)
I want to implement a feature where a custom notification sound file is downloaded from the server when the app is first launched and stored locally on the device. When a push notification arrives, the stored sound should be played in all app states, including foreground, background, and terminated (killed) state. Does anyone have an idea on how to implement this in iOS? Specifically, I am looking for guidance on: 1)Downloading and storing the sound file securely on the device. 2)Using the locally stored file for push notification sounds. 3)Ensuring the sound plays correctly in all states, including when the app is not running.
0
0
114
Apr ’25
The application I developed cannot be opened by a computer with an M3 Max chip
I developed a Desktop application using Electron. This application can be opened on Mac computers and computers with other chips, but cannot be opened on a computer with an M3 Max chip. What is the general reason for this? The following is the relevant error log message: 2025-02-12 20:37:53.668795+0800 0x8be62b Info 0x1c30e4d 13984 0 CoreServicesUIAgent: (LaunchServices) [com.apple.launchservices:open] _LSLaunchRB(ai.plaud.desktop.plaud , event=aevt/oapp, args=- 0x22010044/async opts=LSOpen2Options(preferRunning ) 2025-02-12 20:37:53.671436+0800 0x8be62b Info 0x1c30e4d 13984 0 CoreServicesUIAgent: (LaunchServices) [com.apple.launchservices:open] LAUNCH: _LSLaunchThruRunningboard: ai.plaud.desktop.plaud / 2025-02-12 20:37:53.671912+0800 0x8be62b Info 0x1c30e4d 13984 0 CoreServicesUIAgent: (LaunchServices) [com.apple.launchservices:open] LAUNCH: Set flag for disabling pointer auth for launching ai.plaud.desktop.plaud 2025-02-12 20:37:53.685733+0800 0x8be62b Error 0x1c30e4d 13984 2 CoreServicesUIAgent: (LaunchServices) [com.apple.launchservices:open] LAUNCH: RBSLaunchRequest FAILURE ai.plaud.desktop.plaud 0x0-0x3f43f4 failed with error Error Domain=RBSRequestErrorDomain Code=5 "Launch failed." UserInfo={NSLocalizedFailureReason=Launch failed., NSUnderlyingError=0x6000005fd2f0 {Error Domain=NSPOSIXErrorDomain Code=1 "Operation not permitted" UserInfo={NSLocalizedDescription=Launchd job spawn failed}}} 2025-02-12 20:37:53.685765+0800 0x8be62b Error 0x1c30e4d 13984 2 CoreServicesUIAgent: (LaunchServices) [com.apple.launchservices:open] LAUNCH: Runningboard launch of ai.plaud.desktop.plaud returned RBSRequestErrorFailed, error Error Domain=RBSRequestErrorDomain Code=5 "Launch failed." UserInfo={NSLocalizedFailureReason=Launch failed., NSUnderlyingError=0x6000005fd2f0 {Error Domain=NSPOSIXErrorDomain Code=1 "Operation not permitted" UserInfo={NSLocalizedDescription=Launchd job spawn failed}}}, so returning -10810 2025-02-12 20:37:53.685797+0800 0x8be62b Error 0x1c30e4d 13984 2 CoreServicesUIAgent: (LaunchServices) [com.apple.launchservices:open] LAUNCH: request execute thru runningboard of 0x0-0x3f43f4 ai.plaud.desktop.plaud/ failed with error=Error Domain=NSOSStatusErrorDomain Code=-10810 "kLSUnknownErr: Unexpected internal error" UserInfo={_LSFunction=_LSLaunchWithRunningboard, _LSLine=3109, NSUnderlyingError=0x6000005fd3b0 {Error Domain=RBSRequestErrorDomain Code=5 "Launch failed." UserInfo={NSLocalizedFailureReason=Launch failed., NSUnderlyingError=0x6000005fd2f0 {Error Domain=NSPOSIXErrorDomain Code=1 "Operation not permitted" UserInfo={NSLocalizedDescription=Launchd job spawn failed}}}}}
1
0
158
Feb ’25
iOS 18 System Bug Causes URL Scheme Failure
iOS 18 System Bug Causes URL Scheme Failure A bug in iOS 18 causes URL Schemes to become invalid through the following steps, resulting in failure to open apps via URL Scheme. Reproduction Steps: Long-press the app icon Select "Require Face ID" Choose "Hide and Require Face ID" to hide the app Go to the App Library and locate the hidden app in the "Hidden" folder Uninstall the hidden app reinstalling the hidden app After reinstalling the app, all configured URL Schemes will become invalid, causing failure when attempting to open the app via URL Scheme. The issue appears to be that after uninstalling a hidden app and reinstalling it, the system fails to restore the app's URL Scheme functionality.
2
0
177
Apr ’25
Payment completed with error: Error Domain=ASDErrorDomain Code=500
I would like to inquire about an error that has started occurring while debugging AppStore billing. (In sandbox environment) This error occurs after entering a password and completing the purchase process, and in this case, no completion alert appears. The error doesn't seem to depend on the purchase item, sandbox account, or device, and shows unstable behavior - sometimes succeeding and sometimes failing. Additionally, this error started occurring after special debugging where the network was disconnected during the purchase process. Moreover, the same error occurs in the TestFlight version of our already released normal (supposedly) version. I think this might be a sandbox-specific error where the system has temporarily become unstable, but what do you think? If so, how can I resolve this issue? I would appreciate your insights on the cause and appropriate response. Error details below: <SKPaymentQueue: 0x283b3d070>: Payment completed with error: Error Domain=ASDErrorDomain Code=500 "(null)" UserInfo={NSUnderlyingError=0x28364d770 {Error Domain=AMSErrorDomain Code=305 "Purchase Failed" UserInfo={NSLocalizedDescription=Purchase Failed, AMSStatusCode=200, AMSServerPayload={ "cancel-purchase-batch" = 1; customerMessage = "Unauthorized_message"; failureType = ""; "m-allowed" = 0; pings = ( ); }, NSLocalizedFailureReason=Server canceled the purchase}}, storefront-country-code=JPN, client-environment-type=Sandbox}
1
0
165
Jul ’25
Multiple IPSW for same version
Hi Team, I just want to know the reasoning behind why there are two IPSW with same version and different build IDs. Example: https://ipsw.me/iPhone12,3 Version: 18.3 BuildIDs: 22D64 and 22D63 Also, in future, on what devices this kind of two buildIDs will be created?
0
0
139
Feb ’25
Console SSH remote authentication not working since some time
I am trying to connect to my openbsd server. The command works over local network (I am identified by public key) but fails over remote network. I get the following error : $ ssh -vvv sylvain @ saboua.xyz OpenSSH_9.8p1, LibreSSL 3.3.6 ... debug1: Authenticator provider $SSH_SK_PROVIDER did not resolve; disabling debug3: channel_clear_timeouts: clearing debug1: Connecting to saboua.xyz port 22. ssh: connect to host saboua.xyz port 22: Operation timed out A solution I gues would be to use brew's LibreSSL 4.0, but I cant find how to use it instead of the system LibreSSL.
0
0
258
Mar ’25
Random Apple ID Accounts
Recently, I have decided to delete all my Twitter accounts, but it turns out an Apple ID was used for one of them, I am unable to delete this account due to that fact because I do not have access to the “email” required. Twitter support says contact email provider, given that I used an Apple ID as the email, am I supposed to contact Apple support instead?
1
0
310
Feb ’25
Enabling Just-In-Time compiler on "Emulators" on AppStore and/or enabling hypervisor to the iPad
Hello, why is apple won’t adding Just-In-Time compiler to ”Emulators” in the app store. And/or hypervisor for newer devices. i feel like UTM (which is a PC Emulator) or other Apps that emulate need JIT to work properly, and will consume significantly less battery to emulate/virtualize, And will have a noticeably better performance than just not enabling JIT, and by the way jit is already being used on iPadOS/iOS 18.3/18.3.1 and newer/older version of that so being enabled by the choice of the developer of the App is more convenient than doing it with tools. and by the why apple wont let emulators on iPads and newer iPhones do hypervisor, it’s better than JIT but requires a good cpu, like making it available to people with newer/powerful devices, hypervisor is better than JIT by a lot and removing it in iPadOS/iOS 18.4 was an unnecessary choice?, becuase it had a better potential in virtualization instead of emulating, and I feel like enabling it In M1-M2 iPads and A14-18pro and newer devices is just better from having it disabled, to unlock the fullest potential of the iPad it needs to have a app or something to do instead of just running high graphics games/or Apps.
2
0
1.6k
Feb ’25
Alternate App Icon Change Does Not Reflect in Notification Center on iOS 18.1+
When changing the app's alternate icon using UIApplication.setAlternateIconName(_:completionHandler:), the icon is updated correctly on the Home Screen and App Switcher. However, in Notification Center, the old app icon is still shown for notifications, even after the change has completed. Rebooting or change the device's language causes the correct icon to appear. This issue only occurs on iOS 18.1 and later. In iOS 18.0 and earlier, Notification Center correctly reflects the updated icon. Could you provide insights into how iOS caches notification icons and how we can force a refresh for all users?
1
0
159
Apr ’25
MacOS sometimes not asking for password after sleep when close lid
Sometimes, when I close the lid using the MacOs version Sequoia 15.2, with the configuration to require a password for 5 seconds, the system does not ask for the password as expected. This happens sometimes even though nothing preventing the system from sleeping when you close and open the lid, but it still seems like a security concern. Is there some known issue related to this problem or a way to avoid it? Result of command pmset -g: Configuration:
1
0
421
Feb ’25
İphone 16 camera problem
İphone 16 cihazım ios 18.3.1 yüklü. Kamerada donma, odaklanma ve siyah ekran şikayetim var. Apple servisi ile görüştüğümde cihazın bütün donanım testlerinden basarıyla geçtiğini söylediler. Sorunun yazılımsal olduğunu söylediler. rica ediyorum bu iphone 16 için bu kamera sorununu ortadan kaldıracak ara bir düzeltme güncellemesi gönderin. Ve bu konuda azımsanmayacak kadar mağdur apple gönül dostları vardır. Bizi kaybetmeyin. Size güvenimizin boş olmadığını bizlere gösterin. Saygılarımla
1
0
194
Mar ’25
WalletUIExtention alert "Unable to add card"
I download a demo from:https://applepaydemo.apple.com/wallet-extensions And I run my WalletUIExtention,but it's failed. This is some key in my info.plist <key>NSExtensionMainStoryboard</key> <string>MainInterface</string> <key>NSExtensionPointIdentifier</key> <string>com.apple.PassKit.issuer-provisioning.authorization</string> <key>NSExtensionPrincipalClass</key> <string>MyAUViewController</string> But I found that deleting the key: NSExtendesionPrincipalClass or NSExtendeionMainStoryboard in the info.plist file can make it run. Should I delete the key ? Whitch key ? This is it alert: This it's message: 2025-05-06 09:15:02.946890+0800 WalletUIExt[626:13530] Successfully load keyboard extensions Line: 1 Col:1 2025-05-06 09:15:02.972702+0800 WalletUIExt[626:13597] [xpc.exceptions]<NSXPCConnection: 0x2830c30c0> connection from pid 584 on mach service named com.bank.app.WalletUIExt.viewservice: Exception caught during decoding of received selector __connectToViewControllerFromRemoteViewController:replyHandler:, dropping incoming message. Exception:<NSXPCDecoder: Qx12a82bc00> received a message or reply block that is not in the interface of the remote object (__connectToViewControllerFromRemoteViewController:replyHandler:),
0
0
111
May ’25
Bluetooth scan cycle problem
I have the following questions that need official answers: 1: Whether the Bluetooth scanning cycle can be controlled through the software level. If it can be controlled, please tell me how to control it. 2: Now the IOS mobile phone scanning strategy, how long is the scanning cycle, and what is the scanning duty cycle in this scanning cycle
0
0
237
Feb ’25
FocusState Issue with TextFields in ScrollView on iPad (iOS 18.0)
When using a VStack containing two TextFields inside a ScrollView on an iPad running iOS 18.0, the FocusState of the topmost TextField does not trigger, while the second TextField's FocusState works correctly. Adding an invisible TextField on top resolves the issue, but it appears to be a bug specifically in iOS 18.0 on iPads. This issue does not occur on iOS versions below or above 18.0 (including iOS 18.1). Code that is not working struct ContentView: View { @State var text: String = "" @FocusState private var focusState: Bool var body: some View { ScrollView(.vertical, content: { VStack(spacing: 0) { TextField(text: $text) { Text("Hello, World!") } .border(focusState ? Color.red : Color.gray) .focused($focusState) .onChange(of: focusState) { oldValue, newValue in print(newValue) } .onChange(of: text) { oldValue, newValue in focusState = true } } }) .padding() } } Code that is working struct ContentView: View { @State var text: String = "" @FocusState private var focusState: Bool var body: some View { ScrollView(.vertical, content: { VStack(spacing: 0) { // Invisible Text Field TextField("", text: .constant("")) .frame(height: 0) TextField(text: $text) { Text("Hello, World!") } .border(focusState ? Color.red : Color.gray) .focused($focusState) .onChange(of: focusState) { oldValue, newValue in print(newValue) } .onChange(of: text) { oldValue, newValue in focusState = true } } }) .padding() } }
0
0
289
Feb ’25
File/folder Permissions Issues
Currently running 15.5 Beta 3 on a Mac Studio M4. I am unable to read/write to my Home folder from most of my applications. I receive an error basically saying I do not have access rights to the file/folder. If I go to the file directly and open it, it works. I have repaired disk permissions, checked the Sharing & Permissions settings via Get Info, and finally called Apple. Of course, since I am running the beta, the support was quite limited. I will add that I am also unable to open .dmgs that have been downloaded to my Downloads folder. I receive the "The disk image couldn’t be opened. The operation couldn’t be completed. Operation not permitted" error. If I copy the .dmg to another drive, I can open it from there.
0
0
58
Apr ’25
No Apps appearing on home screen or in the App Library after download
Hello, i just noticed that when i download an app through the App Store on my iPhone, the app i downloaded does not appear on my home screen or in the App Library. is there any work around for me to make them appear at least in the App Library? the only way to open or to place an app on my home screen I downloaded after upgrading to iOS 18.4 Beta 3 is to search for it in Spotlight or in the App Store. Any apps I downloaded before upgrading to iOS 18.4 Beta 3 is still on my home screen or in the App Library. i am currently running iOS 18.4 Beta 3 on an iPhone 16 Pro
0
0
288
Mar ’25
Problem with deleting the MinimaList app
A question from an ordinary user for developers: The essence of the problem: I installed the To Do List by MinimaList app on both my MacBook and iPhone. After installing it, I decided not to use it and deleted the application. https://apps.apple.com/us/app/minimalist-to-do-list-widget/id993066159 However, it turned out that not everything was removed. Specifically: • In the “Allow Others to Find Me” section on both my MacBook and iPhone, these apps still appear. No matter what I do—whether I delete or clear them—they continue to be displayed there. • This app continues to appear in the section located at: Settings → Apple ID → iCloud → Stored in iCloud → See All → Allow Finding Me – To Do List and one more item. • It cannot be deleted. • It won’t delete on my MacBook, and it won’t delete on my iPhone. • It also appeared in iCloud itself under the Email Search section. P.S. The official Apple support (without violating any internal regulations) advised me to post on the forum to get in touch with Apple developers. In hope, I am posting this question here.
0
0
243
Feb ’25