I have developed three apps using the Screen Time API. The following are common problems I encountered in the three apps:
DeviceActivityMonitorExtension is automatically killed after running for a few days (frequently)
The same DeviceActivityEvent in DeviceActivityMonitorExtension is triggered twice during eventDidReachThreshold (especially obvious in iOS18.5)
Screen Time authorization is automatically canceled for no reason (occasionally)
I hope to get help
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
Hello :-)
I‘m not entirely sure, if I‘m on the correct Place here.
But I would like to report a Bug with tvOS 18.3 (latest beta) to the Apple Engineers!
When maximizing an app, a clear color jump occurs. The home screen is more colorful than the open app!
You can easily force this:
open an app, e.g. the App Store
back to the home screen
open the app again now you can see a color jump of the GUI!!!
The color becomes paler when the app is open. On the home screen it is more colorful again!
The problem occurs with every app! So it is a global tvOS Bug!
I can also send an example video if that's helpful!
Best regards,
Christian :-)
Topic:
Community
SubTopic:
Apple Developers
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!
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.
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
Why is the language character obtained by NSLocale.preferred Languages sometimes zh Han HK and sometimes zh HK? What kind of setting determines the value of this character
"TMS-90714: Invalid binary - The app contains one or more corrupted binaries" I am facing this error email from appstore since 15 days now and i tried 49 different things to fix this but it is not fixed. I migrated my app from storyboard controller to swiftUI and tried to submit to appstore and am not seeing the build in testflight and am receving the email error above. Can anyone please help, i will provide the required info, also i can pay couple hundered bucks.
Topic:
Community
SubTopic:
Apple Developers
In our iOS app we have added example.com in associated domains from the very beginning With no AASA file hosted at example.com domain
Now we need a subdomain app.example.com to be intercepted in our app, so for the same, we are thinking to host AASA at app.example.com and add app.example.com in associated domains too.
so my question is will hosting AASA at sub domain works? If yes, will it affect older apps where app.example.com is not handled.
In short we only want the links with app.example.com to be open in our app not the example.com links
Hello, my name is Natalia, I'm Ukrainian.
Please tell me how to contact Apple to propose a new development?
It's more about a startup.
Every week or so, mouse driver locks up. The LED laser goes out and none of the buttons operate. It's a generic 7 button USB mouse with my USB keyboard still active. I do not know what precipitates the lockup and a system diagnostic request (Sft-Alt-Ctl-Cmd .) does not seem to yield anything useful.
> ps -ef|grep -i mouse
501 579 1 0 Mon01PM ?? 0:04.42 /System/Library/ExtensionKit/Extensions/MouseExtension.appex/Contents/MacOS/MouseExtension
code-block
so the mouse extension was running at the time. With a "sudo kill -HUP 579" it did not restart.
Also, switching to a different mouse did no good. The mouse driver was behaving like it was deadlocked and I didn't know the correct incantation for restarting it. I power cycle reset the box.
SO:
you have a mouse driver problem
it cannot be just me
It behaves like a deadlock, but not knowing how to get a mouse driver dump, I cannot tell what lock(s) its waiting for.
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
I downloaded Xcode Beta 26 and built the POS code repository project. However, an error appeared: unable to find the module dependency 'minizip'. No changes have been made to the repository since upgrading to iOS 18.0. Is this a new issue with Xcode 26, and what are the resolution steps?
Topic:
Community
SubTopic:
Apple Developers
«Hello everyone, after installing iOS 26, I noticed that on my iPhone 13 Pro, which had its battery replaced, the battery status in the settings shows 0%, and the phone does not charge more than 1%, no matter how long I leave it plugged in. The same problem is observed on iPhones 14 and lower where the battery (FB18154101) was replaced.»
Topic:
Community
SubTopic:
Apple Developers
A few days ago I installed beta 1 of macOS 26 Tahoe on a spare MacBook Pro 14-inch M4. Everything went well, and it looks okay (well, I don't like it at all, but hey-ho), and I shut it down.
I started it up today, and it rejects my login password every time, then locks my account. When I click the link to "Restart and show password reset options" I'm asked for my Apple ID details, so I enter the correct email and password, then the MBP reboots and I'm back on the login screen with no indication that anything has changed.
Guess I'm stuck now... FB18364657
Topic:
Community
SubTopic:
Apple Developers
i can’t turn off autofill of an input field from background noise
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.
Topic:
Community
SubTopic:
Apple Developers
I am new to swift (developer from long ago) and have not been able to resolve an issue with IOS - I am building a text entry box with save / cancel buttons at bottom and a texteditor above all within a fixed size frame. It's all OK on macOS but when I try iOS the space taken by the form weirdly expands (beyond the size of the text editor) and end up pushing the save /cancel buttons below outside view. An extract of the code is here. I have tried all sorts of things like setting frame sizes, line limits, spacers, scrolling disable, but I can't stop the behaviour. Any ideas. Apologies if this is well known or my issue due to inexperience I just can't resolve it.
private func editSource(in geometry: GeometryProxy) -> some View {
NavigationStack{
Form {
Section(header: Text("Source Name")) {
TextEditor(text: $newSourceName)
.font(.title3)
.padding(5)
.background(
RoundedRectangle(cornerRadius: 10)
.fill(.background)
)
.textFieldStyle(PlainTextFieldStyle())
.frame(height: 50)
.foregroundColor(.primary)
.focused($isSourceFocused)
}
}
HStack {
Button("Save") {
events[eventIndex].source = newSourceName
isEditingSource = false
isSourceFocused = false
disableEdit = false
}
Spacer()
Button("Cancel", role: .cancel) {
isSourceFocused = false
isEditingSource = false
disableEdit = false
}
}
.padding()
.layoutPriority(1)
}
#if os(macOS)
.scrollDisabled(true)
.padding()
.frame(height: 180)
.frame(width: 240)
.background(.gray)
#else
.frame(width: 240)
.frame(height: 240)
#endif
.cornerRadius(10)
.clipShape(RoundedRectangle(cornerRadius: 10))
.overlay(
RoundedRectangle(cornerRadius: 10)
.stroke(Color.blue, lineWidth: 1)
)
.position(sourceLocation)
.offset(x: 0, y: 100)
.zIndex(1)
.onAppear() {
isSourceFocused = true
newSourceName = events[eventIndex].source
}
}
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.
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?
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.
Topic:
Community
SubTopic:
Apple Developers