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

Can't swap camera with AVCaptureMultiCamSession
I have a PIP camera that is streaming from the front and back based on AVCaptureMultiCamSession. It works fine, but when i go to swap the camera it crashes. This is code that works with a single camera, so not sure what is wrong. Also the object appears valid in the debugger. This is the snippit where the camera is swapped private func updateSessionConfiguration() { guard isCaptureSessionConfigured else { return } captureSession.beginConfiguration() defer { captureSession.commitConfiguration() } // Remove all current inputs for input in captureSession.inputs { if let deviceInput = input as? AVCaptureDeviceInput { captureSession.removeInput(deviceInput) app_log("removing input for \(input)") } } // Add the primary device input if let deviceInput = deviceInputFor(device: captureDevice) { app_log("device input \(deviceInput)") if !captureSession.inputs.contains(deviceInput), captureSession.canAddInput(deviceInput) { captureSession.addInput(deviceInput) } } if let secondaryDeviceInput = deviceInputFor(device: secondaryCaptureDevice) { app_log("Secondary device input \(secondaryDeviceInput)") if !captureSession.inputs.contains(secondaryDeviceInput), captureSession.canAddInput(secondaryDeviceInput) { captureSession.addInput(secondaryDeviceInput) } } updateVideoOutputConnection() } It crashes at: captureSession.addInput(deviceInput) with: Thread 10: EXC_BAD_ACCESS (code=1, address=0xcaeb36b964f0) which is strange because canAdd is checked prior to this call. Totally stumped here. Please help. Not sure if this is an AVCaptureMuliCamSession issue or something.
4
0
425
Jan ’25
iOS18, certificates, mail app and domain
I'm totally baffled by the changes Apple made on iOS18 about certificates usage in the built-in mail application. They decided that self-signed are not accepted any more, fine. As long as you can install your own root CA and trust it, it should be fine. But NO! They have also decided that mail will only accept IMAP servers using a domain name, no more just and IP address. So you can't get any IP-based certificate that will be accepted by the mail app, even with the right SAN and al. I've tried two "identical" certs, one with a domain and one with an IP and the domain works while the IP fails, being rejected as non-valid by the app. The most funny part is that the IP cert is good enough to configure mail (can see the successful login), but is being rejected when reading emails. I'm really fed up with the "Apple police" that wants to push us not using our own storage anymore. My se case is simple, I have an IMAP server that is used by family to archive all emails and keep them organized, saved forever and away from being scanned. I need to access that server either when locally connected or through VPN. For VPN, I use split tunnels because I don't want all traffic to go to tunnel. Nor do I want to create my own local DNS server and have all VPN clients use such DNS server only for the sake of having a domain name for the IMAP server. Nor do I want to open an external port to redirect to my IMAP server (that works of course as then I can use DDNS ...). Talk about increased security! This is insane
4
0
98
Apr ’25
Sharing data between Targets via App groups but Userdefault Container is null
Dear Apple Support Team, I am trying to shared data between two different App target. Target A is main iOS app and Target B is Intent Extension. I have create app group and utilise app group to share data between different target but when setting the user default from Target B stile getting container null. Target B UserDefault object details sharedDefaults UserDefaults 0x0000600000c05110 baseNSObject@0 NSObject kvo id 0x0 0x0000000000000000 [0] id identifier __CFString * "group.com.xxxx. xxxx" 0x0000600001704900 container __CFString * NULL 0x0000000000000000 _volatileDomainNames id 0x0 0x0000000000000000 [0] id Code snippet in Target B to setting UserDefault guard let sharedDefaults = UserDefaults(suiteName: SharedUserDefaults.suitName)else { completion(MuteIntentResponse(code: .failure, userActivity: nil)) return } ///["event": AudioCommand.mute.rawValue] sharedDefaults.set("test", forKey: SharedUserDefaults.Keys.audioCommand) let didSynchronize = sharedDefaults.synchronize() print("Intent Extension: Wrote Synchronize successful: \(didSynchronize)") guard let command = sharedDefaults.string(forKey: SharedUserDefaults.Keys.audioCommand) else { completion(MuteIntentResponse(code: .failure, userActivity: nil)) return } print("userDef \(command)") While reading UserDefault value in Target A UserDefault object details baseNSObject@0 NSObject isa Class NSUserDefaults 0x01000001efe1a8a9 kvo id 0x0 0x0000000000000000 identifier __CFString * "group.com.xxxx. xxxx” 0x0000600001782200 container __CFString * NULL 0x0000000000000000 _volatileDomainNames id 0x0 0x0000000000000000 [0] id Reading UserDefault value Code if let def = UserDefaults(suiteName: SharedUserDefaults.suitName){ print("commandInfo (def.string(forKey: SharedUserDefaults.Keys.audioCommand))") } Please let me know what I am doing wrong.
4
0
278
Feb ’25
I deleted my notes from iCloud and can’t restore them. Я удалил заметки из iCloud и не могу восстановить.
Greetings, everyone! I’m asking all of you to help me. My issue is that I accidentally deleted all my notes from iCloud, and they were then removed from my iPhone and other devices as well. I have been using Apple products for many years, and my notes have been transferred from one device to another over time. They contain very important information for me, and I would really appreciate any guidance on whether it is possible to recover them. I have already tried using the online support at http://www.apple.com/support, but I couldn’t find a live chat option - only general instructions on different situations. I also noticed that there are no Apple Support phone numbers available for Kazakhstan. Given this, I would appreciate any alternative way to get assistance. Looking forward to your reply.
4
0
312
Mar ’25
System Data
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.
4
0
292
4d
IOS 18.4 (beta)
since updating from 18.3 to 18.4, both on cellular and WiFi Networks I can’t connect to the internet. Since the phone wont connect to the internet I’m not able to turn off “find my iPhone“ to restore my iPhone to iOS 18.3 this way my iPhone is useless any ideas / thoughts about this?
4
2
1.3k
Mar ’25
Files app iOS 26
Ok, so I’ve downloaded iOS 26 for the iPhone and iPad and there are a couple of points bugging me. Why oh why would somebody think that it was a good idea to remove the ability to scroll through photos in a folder in files? Where in their tiny minds did they think that opening a photo, viewing said photo, then closing photo to then open the next photo in sequence was a better or more productive way than just swiping left and right? I mean, seriously!!! And why the need for a separate Preview app when it worked fine opening files in the Files app?! I deleted the Preview app from my iPhone to see what difference it would make, but alas it made things worse. Now, because there’s no Preview app, Files wants to open my photos in an image editing app called Afterlite! I checked settings for the files app, and the only options I have for opening photos are Afterlite (which it’s decided to make default), the Photoshop app, or iMovie! Does anyone have any ideas how to get photos stored in the Files app to open IN the Files app or at least the Photos app? Just when I thought they’d come to their senses and sorted out that god awful iOS 18 Photos app, they go and do something like this! Also, can someone explain to me what the point is of having a month and year view in the Photos app? When I sort by month and pick a particular month or date in a month, instead of showing just those images taken that month, it just takes you back to the view with ALL of your photos? Surely if you have thousands of photos on your device and you want to see only photos on a particular date, it would make sense to show only the photos from that date. Even if it generated automatic albums under the album view for each month and year that would be something!
3
0
430
Sep ’25
macOS is experiencing a severe memory leak issue.
问题描述: 在这两个版本后出现了可能是聚焦索引导致的内存、硬盘泄漏,使得mds_stores内存占用高达60G,硬盘内存持续写入50G,上述情况持续到最大后,系统释放空间后继续重新写入,导致内存严重泄漏,在可用空间中,系统数据占用高达150G, 系统版本: macOS Tahoe26.0beta5(25A5338b)、以及beta4 复现步骤: 开机即启动,没有任何操作步骤 解决方法: 进入安全模式后这个问题未复现 可能原因: 聚焦索引出现bug,在安全模式下“启动台”无法搜索应用程序,暂时没有发现其他问题,极有可能是聚焦索引出现问题 可能影响到的软件: node.js、meven、vue等与开发者相关的软件,既有可能使聚焦索引了开发者的项目依赖文件节点模块,它包含有极其大量的小文件,这些文件不需要索引,可能是这个问题导致。 ###问题截图
3
0
273
Aug ’25
How Should a Beginner Properly Start iOS Development? Seeking Advice from Experienced Developers
Hello everyone, I'm a 2nd-year Computer Science student who's excited to dive into iOS development, and I'd really appreciate some guidance from the experienced developers in this community. MY CURRENT BACKGROUND I have a solid foundation in programming fundamentals through my university coursework (data structures, algorithms, OOP concepts), and I'm familiar with general software development principles. However, iOS development is entirely new territory for me, and I want to make sure I start on the right foot. WHAT I'M LOOKING TO UNDERSTAND Learning Path & Technologies Should I start with UIKit or SwiftUI? I've heard conflicting opinions about this How important is it to learn Objective-C in 2025, or should I focus solely on Swift? Are there any foundational Apple frameworks I should prioritize learning early on? Roadmap & Structured Learning Is there a recommended roadmap or learning sequence I should follow? What skills/topics should I master before moving to more advanced concepts? Should I learn iOS development in a linear fashion, or is it better to learn as I build projects? Are there any official Apple learning paths or certifications worth pursuing? Common Mistakes to Avoid What are the most common pitfalls beginners face when starting iOS development? Are there any bad habits or patterns I should consciously avoid from day one? What misconceptions did you have as a beginner that you wish someone had corrected earlier? Project-Based Learning What types of projects would you recommend for someone at my level? Should I build several small apps or focus on one comprehensive project? At what point should I start contributing to open-source iOS projects? Best Practices & Design Patterns Which iOS-specific design patterns (MVC, MVVM, etc.) should I learn first? How can I develop good habits around memory management and app architecture from the beginning? What resources do you recommend for learning iOS best practices, not just syntax? Apple Ecosystem & Tools Beyond Xcode, what tools should be in my toolkit? How important is it to learn about TestFlight, Instruments, and other Apple developer tools early on? Should I get comfortable with CocoaPods/SPM from the start, or wait until I'm more experienced? MY GOALS My goal is to build a solid foundation over the next 6-8 months, create a few portfolio-worthy apps and pursuing iOS development as a career path after graduation. SPECIFIC QUESTIONS How many hours per week would you recommend dedicating to learning iOS development while managing university coursework? What's the best way to stay updated with Apple's annual changes and new frameworks? When should I start thinking about publishing apps to the App Store? Are there any mentorship programs or communities specifically for beginner iOS developers you'd recommend? I know this is a lot of questions, but I genuinely want to learn the right way rather than picking up bad habits I'll have to unlearn later. Any advice, resources, or personal experiences you're willing to share would be incredibly valuable to me. Thank you in advance for taking the time to help a beginner. I'm committed to putting in the work and learning properly!
3
0
235
Oct ’25
Expo crash on iOS simulator
I've been working on my mobile app project using Expo. Yesterday, when I tried to run the app again, the Expo Go in the iOS simulator got stuck on the screen showing "New update available, downloading..." and then crashed. I'm not sure what went wrong. It only provides a long error report. I ran an EAS build, which completed successfully, so I suspect the issue might be with the iOS simulator or Expo Go itself. Please help me out :(
3
0
1.2k
Jan ’25
Sandbox apple in app purchases not working - Error Domain=AMSErrorDomain Code=305 "Purchase Failed Server canceled the purchase"
<SKPaymentQueue: 0x10629d1b0>: Payment completed with error: Error Domain=ASDErrorDomain Code=500 "(null)" UserInfo={client-environment-type=Sandbox, storefront-country-code=USA, NSUnderlyingError=0x108f15c80 {Error Domain=AMSErrorDomain Code=305 "Purchase Failed Server canceled the purchase" UserInfo={AMSFailureReason=Server canceled the purchase, AMSURL=https://sandbox.itunes.apple.com/WebObjects/MZBuy.woa/wa/inAppBuy?guid=00008030-001E19361A12202E, AMSDescription=Purchase Failed, AMSStatusCode=200, AMSServerPayload={ "cancel-purchase-batch" = 1; customerMessage = "Unable to process your request."; dialog = { defaultButton = ok; explanation = "Please try again later.\n\n[Environment: Sandbox]"; initialCheckboxValue = 1; isFree = 1; "m-allowed" = 0; message = "Unable to process your request."; okButtonString = OK; }; failureType = ""; "m-allowed" = 0; metrics = { actionUrl = "sandbox.itunes.apple.com/WebObjects/MZBuy.woa/wa/inAppBuy"; asnState = 0; dialogId = "MZCommerce.SystemError"; eventType = dialog; message = "Unable to process your re"; mtEventTime = "2025-07-30 07:08:24 Etc/GMT"; mtTopic = "xp_its_main"; options = ( OK ); }; pings = ( ); }, NSDebugDescription=Purchase Failed Server canceled the purchase}}}
3
1
227
Jul ’25
Have not received weekly analytics email for over a month
The last "App Store Connect: App Analytics Weekly Summary" email I received was June 3. My apps are still up and the emails are not going to spam. In my Apple Developer settings, "App Analytics Weekly Email Summary" is still set to on (i.e. "Receive a weekly email."). Coincidentally, on June 9 I received an email about updated agreements and guidelines, which I hadn't logged in to accept until today. Is this related, and if so, why should it be? If something else is causing the missing emails, how can that be resolved?
3
0
226
Aug ’25
Ghost entry remains in “Allow in Menu Bar” after app deletion — macOS Tahoe beta
I’m experiencing an issue on macOS Tahoe (Developer Beta, July 2025) related to the new “Allow in Menu Bar” section in System Settings. After uninstalling the application Backdrop (developer: Cindori), the entry com.cindori.Backdrop.Wallpaper still appears in the list of apps allowed to show in the menu bar, even though: — The app and all its associated files have been fully deleted. — The LaunchAgents files in ~/Library/LaunchAgents and /Library/LaunchAgents have been removed. — Preferences have been deleted via defaults delete com.cindori.Backdrop and defaults delete com.cindori.Backdrop.Wallpaper. — The system has been restarted. It seems the “Allow in Menu Bar” section keeps phantom references to apps or agents even after complete cleanup. Could you please confirm if this is expected behavior (perhaps for future reactivation) or a bug? Is there any official method or recommended command to permanently remove such residual entries from this list? Thank you very much for your help and clarifications.
3
2
516
Oct ’25
tvOS 26 Bugs – Persistent UI animation issues: app launch stutter, text rendering jumps, shadow jumps, abrupt swipe transitions
Hello :-) I‘m not entirely sure, if I‘m on the correct Place here. But I would like to report some Bugs with tvOS 26 (Beta 6) to the Apple Engineers! Description I am reporting multiple persistent UI animation issues observed in tvOS 26 (Beta 3). These issues have been reproducible across multiple tvOS releases. They are subtle but noticeable, and they affect the overall polish and perceived quality of the system. I am happy to provide high-quality video captures for each of the issues described below. ⸻ Bug #1: App launch animation stutter/jump Summary: The zoom-in animation from a Springboard icon to full-screen app stutters or jumps at the moment the app becomes full screen. Steps to reproduce: 1. On Springboard, select any app icon. 2. Observe the zoom-in animation. Expected result: Smooth, continuous zoom without frame drops or jumps. Actual result: Animation visibly stutters/jumps at the full-screen transition. Possible cause: Timing issue in Core Animation interpolation or abrupt view hierarchy switch. ⸻ Bug #2: Text rendering weight change (“jump”) during transitions Summary: Text inside apps changes visual weight mid-transition from scaled preview to full screen. Steps to reproduce: 1. From Springboard or App Switcher, launch an app with visible text. 2. Observe text during the zoom animation — initially slightly bolder, then thinner once full screen. Also occurs in: • Top Shelf banners in the Dock • App Switcher → full-screen transitions Expected result: Consistent text rendering throughout the transition. Actual result: Visible “pop” in text weight/anti-aliasing during transition. Possible cause: Different rasterization/anti-aliasing mode between preview snapshot (CALayer.contents) and live CoreText/UIKit rendering. ⸻ Bug #3: Focus shadow jumps instead of interpolating smoothly Summary: Shadows around focused UI elements (icons, buttons) change abruptly during focus transitions. Steps to reproduce: 1. Navigate between focusable UI elements on Springboard or in apps. 2. Observe the shadow effects. Expected result: Shadows interpolate smoothly (offset, opacity, radius) during focus transitions. Actual result: Shadows “jump” abruptly, breaking animation smoothness. Possible cause: UIFocusEngine not interpolating shadow parameters consistently. ⸻ Bug #4: Abrupt jumps when swiping horizontally between content items Summary: In horizontally scrollable poster/content rows, focus snaps abruptly instead of scrolling smoothly. Steps to reproduce: 1. In the TV app or any app with horizontal poster rows, swipe left/right. 2. Observe the transition between focused items. Expected result: Smooth horizontal navigation with continuous motion. Actual result: Occasional abrupt snapping/jumping between items. ⸻ Impact While none of these bugs block core functionality, they degrade the premium feel and visual polish of tvOS. They are persistent across releases and occur in core system UI, so they are visible to all users. Note I can provide video recordings for each bug to assist engineering in reproducing and analyzing the issues.
3
0
444
Sep ’25
Terrible treatment by Apple Dev support team
I paid for my developer account on the 13th of June 2024 (1 week ago). My ID was approved. However, I still don't have access to the account. When I go to check the status of it, it is asking me to pay again. I then tried to email the team, however only received useless, timewasting responses, such as "Please go to developer.apple.com/enroll to enroll for an apple dev account", which I already told them prompts me to pay again and verify my ID again. I then tried to call them, and they said they had to re-verify my ID and would call me back in 10 mins, but I never received a call back. I also couldn't call them again because it wouldn't let me request another call from them. I then emailed them, but still haven't received a response. The next day I tried to request another call from them, during their opening hours at Thursday 4pm AEST, (they are open Mon-Fri 9am-5pm AEST see https://developer.apple.com/support/worldwide-telephone-hours/) however it still says that "Phone support is currently unavailable". I tried to email them but now I am getting no responses at all. I tried to contact the apple support through the iMessage chat, however I was only put on call with a lady who was helpful, but couldn't even do anything as she was only generic support. She couldn't even schedule me a call or transfer me to the developer team, even though it was within their working and calling/support hours. I have tried to refund my developer account, but apparently that purchase is "illegible for a refund". This is the treatment I get from apple for paying $100 USD. An entire week of being left on blank. I don't know what to do. I paid 100 bucks for an account which I can't even use, and the support hasn't helped me for an entire week. My emails being left on blank, and I can't even call them. If anyone from apple or anyone that could help me sees this, please contact me ASAP at makrypodisc@ hotmail.com or reply to this thread. Thank you.
3
1
955
May ’25
The proximity sensor works abnormal in some devices.
Steps to Reproduce make an outbound call cover the sensor Actual Behavior the screen won't go dark device iOS Result iphone15 17 Pass iphone14p 18.0.1 Pass iphoneXs_pro max 18.1.1 Pass iphone13pro max 18.2.1 Pass iphone16pro 18.2 Fail iphone15pro max 18.3 Fail iphone12 pro max 18.3 Fail ps: Skype has the same probelm Seems like this issue only happens on iOS18.2+ on some devices, so is there a bug for this?
3
0
345
Apr ’25