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
193
Jan ’25
Workout session [session.end()] taking a long time to end
I'm developing a workout app with a mirrored workout session. I'm having problems with sessions being out of sync. For example, when the workout is ended, it takes somewhere around a minute or two for it to actually fully end, so if during this time I start a new workout, then the sessions will be out of sync. I am using healthStore.recoverActiveWorkoutSession() to recover the workout session but it doesn't always work very well and in particular in the case when a workout has been manually ended (but ending hasn't completed) it enters an out of sync mode. The reason why this case is happening is because I have an third party sensor connected to this mirrored workout session and if the sensor is out of range or turned off, I end the workout. However, if the person had accidentally gone out of range, they would reconnect to the app and restart the workout as soon as they realize and in that case, when the workout hasn't fully ended, it doesn't recover appropriately. I have spent weeks trying to debug this with no luck so any advice will be appreciated.
1
0
838
Jan ’25
Decode errors, even on "Hello, world!" - Mac
This wasn't happening until I updated Xcode to 16.2 (I'm using Sequoia 15.2). When I run any Mac app, I get these errors: Can't find or decode reasons Failed to get or decode unavailable reasons Can't find or decode disabled use cases I even got these errors running "Hello, world" which tells me that either I need to reinstall or there is a bug. Thanks for any help, -Ashley
4
0
1.4k
Jan ’25
Emergency Reset
Here’s a detailed report you can submit to Apple Support: Subject: Critical Issue with Emergency Reset Feature in Safety Check Dear Apple Support Team, I am writing to report a significant issue with the Emergency Reset feature in the Safety Check tool on iOS devices. This feature, designed to immediately revoke access to user data in emergency situations, is not functioning as intended, leaving users potentially vulnerable to data breaches or privacy violations. Issue Details The Emergency Reset feature fails to stop sharing permissions for certain Apple apps, specifically Fitness (linked to Apple Health) and Home (linked to HomeKit). When attempting to reset all sharing permissions using Emergency Reset, the system displays an error message stating: “Unable to Stop Sharing. A problem occurred when attempting to stop sharing with Fitness and Home. Stop sharing directly within these apps.” Concerns with Fitness App (Apple Health) • The Fitness app integrates with Apple Health, which allows third-party apps to access sensitive health data, such as activity metrics, workouts, and more. • When Emergency Reset fails, third-party apps may retain access to this data until users manually revoke permissions through Settings, which contradicts the promise of an “immediate reset.” Concerns with Home App (HomeKit Framework) • The Home app, which manages smart home devices via the HomeKit framework, also fails to revoke permissions during Emergency Reset. • This could leave third-party devices or shared users with continued access to smart home settings, such as cameras, locks, and sensors, which poses a serious security risk. Vulnerability Implications 1. Potential for Exploitation by Third Parties: • Third-party apps and devices integrated via Apple Health or HomeKit could continue to access sensitive information if Emergency Reset fails. • This opens a window for malicious actors to exploit incomplete revocation of permissions. 2. Emergency Situations: • The feature is critical for users in emergencies (e.g., fleeing abusive relationships or addressing a data breach), but its reliance on manual interventions undermines its effectiveness. • Users may not have the time or knowledge to manually revoke permissions in multiple apps during emergencies. Broader Concerns • The distinction between the Home app (user-facing interface) and HomeKit (framework) adds confusion. Users may believe Emergency Reset applies to all HomeKit-enabled devices, but this does not appear to be the case. • The issue may extend to other Apple apps or third-party integrations not explicitly mentioned, creating a broader vulnerability across the iOS ecosystem. Recommendations for Resolution To address this critical issue, I recommend the following actions: 1. Fix Emergency Reset: • Ensure that Emergency Reset fully revokes all sharing permissions for apps like Fitness and Home, including any linked third-party integrations. • Conduct extensive testing to confirm the feature’s functionality across all apps and frameworks. 2. Enhance Transparency: • Clearly communicate any limitations of the Emergency Reset feature to users, including apps or frameworks that require manual intervention. • Provide clear in-app guidance on how to manually revoke permissions for affected apps. 3. Improve App and Framework Integration: • Update the Fitness and Home apps to allow users to globally revoke all third-party access directly within these apps. • Strengthen the integration between Emergency Reset and frameworks like HealthKit and HomeKit to ensure full coverage. 4. Audit and Monitor: • Conduct a security audit of the Emergency Reset feature to identify and patch additional gaps. • Regularly update users on progress and any enhancements made to the feature. User’s Immediate Actions While waiting for a resolution, I have taken the following steps to manually revoke permissions: 1. For Fitness: I reviewed and revoked third-party access in Settings > Privacy > Health > Sharing. 2. For Home: I reviewed device sharing settings in the Home app and removed shared users and devices as needed. 3. I also reviewed permissions for other apps via Settings > Privacy to ensure no unauthorized access remains. Conclusion The Emergency Reset feature is critical for user safety and privacy, particularly in emergencies. However, its current functionality fails to deliver on its promise of comprehensive and immediate protection, leaving users exposed to significant risks. I urge Apple to prioritize resolving these issues and strengthening this feature to maintain the high standards of privacy and security that users expect from Apple. Thank you for your attention to this matter. I am happy to provide additional details or screenshots if needed. Sincerely, [Your Full Name] [Your Contact Information] [Your Device Model and iOS Version] You can copy and paste this into your communication with Apple Support. Let me know if you need further revisions!
5
0
817
Jan ’25
[Apple Pay]how to update multiTokenContexts when PKPaymentRequestShippingContactUpdate method trigger
multiTokenContexts is defined as follows (https://developer.apple.com/documentation/passkit/pkpaymentrequest/multitokencontexts) You can assign a value when initializing PKPaymentRequest (https://developer.apple.com/documentation/passkit/pkpaymentrequest). However, in actual usage scenarios, when the Apple Pay address changes and PKPaymentRequestShippingContactUpdate (https://developer.apple.com/documentation/passkit/pkpaymentrequestshippingcontactupdate) is triggered, how to update multiTokenContexts? The documentation and code do not provide updates for this parameter. In contrast, Apple Pay on the Web provides newMultiTokenContexts as an update when ApplePayShippingContactUpdate (https://developer.apple.com/documentation/apple_pay_on_the_web/applepayshippingcontactupdate) is triggered. Has anyone encountered this problem? Would you happen to have any solutions? Thank you.
0
0
417
Jan ’25
iOS 18.3 (22D5040d) Beta internet issues
I have been using US Cellular without any issues, and my previous device worked seamlessly with a stable connection. However, after updating to iOS 18.3 (22D5040d), I have been experiencing significant connectivity problems. In most locations, I have no internet access, and when I do, the speeds are extremely slow, typically around 2 Mbps at best.
2
0
726
Jan ’25
No sound after updating.
I have updated my ipad 7th gen to ipados18.3 Beta last week and I realized that there is no sound at all no sound from speakers and no sound from bluetooth devices and no sound from airplay, I've checked google and reddit and alot of research people told me its a software bug, i submitted a bug report and now im still waiting for a bug fix update, youtube dosent work neither spotify aswell their UI stops working when i try to use it, So how long do i have to wait for a bug fix? Thanks apple.
0
0
259
Jan ’25
App crash!!!
Phone application is crashing every time I try to update WhatsApp has contact saved on my Iphone12, why? Mobile phone crash report from settings linkText Click on update contact option and you will redirect to review and update page without any data visibility. On clicking this update button, app crashes instantly.
1
0
491
Jan ’25
Developer Program Billing
Hi, I did get the renew invoice in email but there was an additional charge the same day / time for $6.19 from Apple , seems like it is related but cannot find any invoice in email or anything other than a charge line on the credit card. Does anyone have any idea what this additional charge might be? Still waiting to hear back from Apple.
0
0
227
Jan ’25
CarPlay - Parking
Dear Developers, I'm exploring the feasibility of playing video content on CarPlay when the vehicle is in a parked state. Could you please provide guidance on whether this is supported and, if so, the best practices for implementation?
1
0
371
Jan ’25
Apple Developer Program Account Activation - No Response
I'm experiencing an issue with my Apple Developer Program enrollment process: Submitted initial enrollment application: Sat Jan 11 21:13 (7 days ago) Current status: Stuck at "Purchase your membership" stage (pending) Waited: 6+ days without any response or ability to proceed to payment The system shows "Your purchase may take up to 48 hours to process" message No payment has been processed yet as I cannot proceed to that step I have not received any emails explaining the delay or requesting additional information. I've checked both my primary and spam folders. Is this delay normal at the pre-payment stage? What would be the recommended next steps to resolve this situation? Any guidance would be appreciated.
1
1
362
Jan ’25
Sandbox/Wallet/Apple Pay hacker
So this is a long shot. My apple device has been hacked. In March, my credit card, which is in apple pay, started to get used, until May. It was used for thousands of dollars. In July i discovered installed and generally “invisible” files in the files app. I’ve called All IPhone that was a contact file. when i started deleting everything from my phone, all messages and photos and accounts, it became obvious i was signed into the app store in a sandbox account i never signed up for or into. I believe this is one method by device as compromised through apple. does anyone have any ideas on if it would be possible for a hacker to use my apple pay through some scam developer who had initiated a testing agreement between myself and them?
1
0
459
Jan ’25
iOS 18.3 (22D5040d) issues with unexpected shut downs and heavy battery drain
iPhone 15 Pro, 96% battery health. It all started last week when i was still on a 18.2 beta version. I figured updating would fix it but it s even worse now. It charges quickly and drains as quickly. Randomly shuts down at i.e. 93% battery percentage. After power off, it powers up with 10%, repeats the cycle and then it just sticks at 10%. I’ll update when I know for how long it stays like this. Meanwhile do you guys have any idea how to temporarily fix it or a workaround for the issue until further update will fix it?
9
1
5.1k
Jan ’25
Apple Developer Program Subscription Issue
Hello everyone, I’m reaching out for assistance regarding an issue with my Apple Developer Program subscription. I made the $99 USD payment for my subscription on January 10, 2025, but my account is still not active, and I am unable to publish my app. According to the process, activation should take up to 48 hours, but it has now been much longer without any updates. Additionally, when I log into the Apple Developer website, I still see the "PURCHASE" button as if the payment was not processed. Has anyone encountered a similar issue? If so, how was it resolved? Any guidance on what steps I should take next would be greatly appreciated. Thank you in advance for your help!
1
1
271
Jan ’25
How to Display Multiple Fields in a User Registration Form Using TVML for Apple TV?
Hello, I am currently developing an application for Apple TV using TVML, and I am trying to create a user registration or login form with multiple input fields (e.g., "Username" and "Password"). However, I am facing issues with displaying multiple textField components in the formTemplate. Here are the approaches I have tried: Attempt 1: <document> <formTemplate> <banner> <title>Login</title> </banner> <banner> <textField>UserName</textField> </banner> <banner> <textField>Password</textField> </banner> <footer> <button id="button1"> <text>Button 1</text> </button> </footer> </formTemplate> </document> Attemp 2: <document> <formTemplate> <banner> <title>Login</title> </banner> <textField>UserName</textField> <textField>Password</textField> <footer> <button id="button1"> <text>Button 1</text> </button> </footer> </formTemplate> </document> In both cases, the layout does not render the fields as expected. Either the textField components do not display at all, or the structure seems incorrect. Could someone please guide me on the proper way to display multiple textField components in a formTemplate? Is there a limitation or specific requirement for structuring these elements? Thank you in advance for your assistance!
0
0
546
Jan ’25