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

When navigationstack is using two times in SWIFTUI
Hello, I use Navigationstack in the first and second views. In this case, the second view is executed immediately and then disappears. Is there a solution? The code is as follows. device = i-phone struct ContentView: View { @State var path: [String] = [] var body: some View { NavigationStack(path: $path) { VStack { Text("Screen1") Spacer() Button(action: { path.append("2nd") }, label: { Text("go to 2nd Screen") }) } .navigationDestination(for: String.self) { s in if s == "2nd" { let _ = print("1st screen nav path(1) = \(path)") SecondScreen(path: $path) let _ = print("1st screen nav path(2) = \(path)") } } .onAppear { print("1st screen on appear") print("1st screen path = \(path)") } .onDisappear { print("1st screen on disappear") print("1st screen disa. path = \(path)") } .padding() } } } struct SecondScreen: View { @State var path2: [String] = [] @Binding var path: [String] var body: some View { NavigationStack(path: $path2) { VStack { Text("2nd Screen is loaded") Spacer() Button(action: { path2.append("3rd") } , label: { Text("go to 3rd Screen") }) Button(action: { path2.removeLast() } , label: { Text("back to 1st Screen") }) } .navigationDestination(for: String.self) { s in if s == "3rd" { // Text("3rd") thirdScreen() } else { thirdScreen() } } } .onAppear { print("2nd screen on appear") print("2nd screen path = \(path)") print("2nd screen path2 = \(path2)") } .onDisappear { print("2nd screen on disappear") print("2nd screen path = \(path)") print("2nd screen disa. path2 = \(path2)") } } } struct thirdScreen: View { var body: some View { VStack { Text("3rd Screen") } .onAppear { print("3rd screen on appear") } .onDisappear { print("3rd screen on disappear") } } }
0
0
198
Jan ’25
Error when copying Home Directory
I am trying to move my home directory to a secondary drive, but I am running into to two issues. When I try to do it via Finder I get the error - The operation can’t be completed because “<my account name>” needs to be downloaded. And when I try to do it via the terminal in recovery mode (after mounting the Data directory), It seems to copy a set of directories within ~/Library/Daemon Containers/. These appear to be snapshots of some sort, which when cp runs, end up taking up the entire drive of the target drive, which is 4 times larger than my base volume. Two questions: Why I am getting the message via finder (and how do I get around it? What is the correct process for moving the home directory to a second drive? Thanks!
0
0
458
Dec ’24
How to request several models simultaneously
I am using HelloPhotogrammetry in Xcode I can make one model with something like HelloPhotogrammetry.main([path_to_folder_of images, path_to_output/model.usdz, "-d", "medium", "-o", "unordered", "-f", "high" ]) But how would I request several models simultaneously? I only want to vary the detail. [ ("/Users/you/Desktop/model_medium.usdz", detail: .medium), ("/Users/you/Desktop/model_full.usdz", detail: .full), ("/Users/you/Desktop/model_raw.usdz", detail: .raw ]
0
0
71
Apr ’25
Issue with App Store Server Notifications V2 - Notification Ordering Problem
We are currently listening to App Store Server Notifications V2 and have encountered an issue with notification ordering. Specifically, there are instances where Apple sends the DID_CHANGE_RENEWAL_STATUS notification before the INITIAL_BUY notification. This leads to a situation where we are unable to process the cancellation of a transaction that is unknown to us at the time of the renewal status change. Could you please clarify why this occurs? If this is a bug, could you kindly address it and implement a fix? Below, I have included examples that illustrate the issue. These examples I obtained using the Notification History API, which may help in troubleshooting. bundleId: com.picsart.studio case 1: originalTransactionId 350002410***633 DID_CHANGE_RENEWAL_STATUS - ‘2025-03-05T00:47:05.900Z’ INITIAL_BUY - ‘2025-03-05T00:47:40.728Z’ case 2: originalTransactionId 420002297***345 DID_CHANGE_RENEWAL_STATUS - ‘2025-03-03T11:43:54.006Z’ INITIAL_BUY - ‘2025-03-03T11:43:56.437Z’ case 3: originalTransactionId 150002224***082 DID_CHANGE_RENEWAL_STATUS - ‘2025-03-02T05:15:36.610Z’ INITIAL_BUY - ‘2025-03-02T05:15:52.666Z’
0
0
154
Mar ’25
Printing error
Back in December 2024 I noticed when I go through the steps to print I would get an error to cancel or retry. We have 4 iPhones and 3 had the newest IOS and those 3 would get the same error. The phone that had old ios 17 something the print would work. Called Apple and did troubleshooting, the opened something on apples end for the developer to investigate. Within 2 weeks a new ios was available and fixed the issue on the 3 phones that could not print. I did the latest update February and March 2025 on all 4 phones thinking no way the issue will happen again and if did all 4 phone cannot print. Is there an iOS bug that is affecting printing ios 18.3.2.
0
0
70
Mar ’25
Card views and List views
My main app is CardView based w/programmatic navigation.. My secondary app is a nice EventListView w/programmatic navigation. Both are functional with no errors. I want to add an event list to my CardView app but the appearance is all wrong. See image. The blue swirl at bottom is all of my List that appears. I can post images of code, if needed. My question is this - can I combine CardViews and ListViews?
0
0
146
Feb ’25
buildAudienceType is not working as expected
Hi, Am using fastlane to upload into TestFlight. Am able to successfully upload the build without any issues. For Testing Internally , I want to upload the build into App Store Connect but I should restrict it on submitting to App Store. ( This is possible when i distribute the app via TestFlight Internal Only from XCode -&gt; Organizer -&gt; Distribute App (Select option with TestFlight Internal Only). I want to achieve the same using either Transporter/ fastlane. I tried setting buildAudienceType to INTERNAL_ONLY as per https://developer.apple.com/documentation/appstoreconnectapi/buildaudiencetype but it is not working. Can you suggest how i can achieve this via fastlane?
0
0
190
Mar ’25
Window server problem
Hi, I needed some help in understanding the crash logs which is as below. Any help is very much appreciated. Translated Report (Full Report Below) Process: WindowServer [440] Path: /System/Library/PrivateFrameworks/SkyLight.framework/Versions/A/Resources/WindowServer Identifier: WindowServer Version: 600.00 (???) Code Type: ARM-64 (Native) Parent Process: launchd [1] User ID: 88 Date/Time: 2025-03-13 12:58:55.0091 +0800 OS Version: macOS 15.3.1 (24D70) Report Version: 12 Anonymous UUID: C795BDC3-66F0-6CF9-7533-B788D0B2DD80 Sleep/Wake UUID: 6F927AA6-3C7B-4EE9-AB68-B77F0D1D622A Time Awake Since Boot: 4400 seconds Time Since Wake: 996 seconds System Integrity Protection: enabled C
0
0
230
Mar ’25
Beta Channel Setting Prevents Ventura Security Updates on Older Macs
I discovered an issue where older Intel Macs (like my 2017 MacBook) enrolled in the macOS Sequoia Public Beta do not receive Ventura security updates, even though Sequoia is not compatible with the hardware. My system said “macOS is up to date” while stuck on Ventura 13.7.1, but after switching to the Ventura Public Beta channel, it immediately showed a new update available. This seems like a serious flaw—Apple should warn users or fall back to compatible OS versions when an enrolled beta is unsupported. Has anyone else experienced this? Could be a widespread issue for Intel Mac users still relying on Ventura.
0
0
57
Mar ’25
Question About CarPlay Certification When Using Custom Wiring Harness
Hello developers, My question isn't directly related to app or software development, but this seems to be the most appropriate channel to possibly find the information I need. Context I work for an automotive company and I'm currently looking for Apple CarPlay certification guidelines. We're in the process of installing a multimedia system in a vehicle. The most viable solution would be to use the multimedia unit and microphone provided by our supplier, but with a custom wiring harness developed by our company to simplify the installation process. The multimedia unit, microphone, and the supplier’s harness are already certified for CarPlay. Question Would using our company’s custom wiring harness affect the existing CarPlay certification of the supplier’s product? Any information, contact, or suggestion on where I could find official guidance on this matter would be greatly appreciated. Thank you in advance!
0
0
58
Jun ’25
iOS 26 0% Battery Health
Updated iPhone to 26 beta 2, everything is ok but battery, battery is changed, not original. My phone can't charge higher than 1% and turns off every 5 minutes, even connecting to wireless charger and cable at the same time don't work, restored iPhone thru iTunes.I hope I will be able to install new beta without any problems because loving the new design, hoping for the best. Thanks. My FB-FB18327769
0
1
172
Jun ’25
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
97
Apr ’25
no internet connection
after updating to beta 4 the whole phone is not working anymore nothing is working only making calls and the camera no apps no internet even if it's connected to wifi or 5G ANd to get back to the old version you will lose your backup And now im stuck my data that i can't restore it cuz it have been made on the last IOS beta I don't want to lose my date and i don't know what to do Please help
0
1
236
Mar ’25
iCloud/Apple Account Deleted but still not allowed to use the address with another account.
I am trying to add a custom domain to my iCloud+ Mail however when I try to add its main user/email address I get an error saying that the email is already in use with another apple account. After this I checked the duplicate account and since I had forgotten the password I reset it and logged in. Then I followed the instructs on https://support.apple.com/en-in/102283 to permanently delete my account. This request was initiated on 8 Feb 2025 but I received the final email that all my data had successfully been deleted from Apple's servers on 25 Feb 2025. Despite Apple's confirmation that my account had been deleted successfully, I am still unable to use that email address to create an iCloud+ Mail account, even after waiting a whole month! This is very frustrating. I contacted Apple support via chat and phone and after more than 30 mins of back and forth they instructed me to contact Developer Support which I did two days ago (case ID is 102546369564) still no response. I hope posting here will be more fruitful. Thanks in advance. Dear Dan Newby, Your Apple Account dan@ ----- .world has been deleted. This information has been permanently erased from our systems or has been modified so it no longer identifies you. As a reminder, you made this request on February 8, 2025 at 7:09:59 PM GMT+5. If you still have the 12-digit access code we provided as part of your request, you can now discard it since the account no longer exists. We’re glad that we’ve been able to help and hope to see you again in the future. Apple Support
0
0
308
Mar ’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
132
Feb ’25