I use DeviceActivityCenter to monitor app usage.
For DeviceActivityEvent, I set 30 events, and the threshold of each event increases by 2 minutes:
var events: [DeviceActivityEvent.Name: DeviceActivityEvent] = [:]
for index in 0..<30 {
let threshold = (index == 29)
? DateComponents(hour: 1)
: DateComponents(minute: (index + 1) * 2)
let name = DeviceActivityEvent.Name("\(prefix)|\(index)")
events[name] = DeviceActivityEvent(applications: tokens, threshold: threshold)
}
After reaching the last DeviceActivityEvent, I will restart directly in DeviceActivityMonitor
private func restartMonitoring(activity: DeviceActivityName) {
let center = DeviceActivityCenter()
let currentEvents = center.events(for: activity)
do {
try center.startMonitoring(activity, during: schedule, events: currentEvents)
} catch {
print("Fail: \(error)")
}
}
But I found that after restarting, DeviceActivityEvent will be automatically executed even if I don't use the app.
My iOS version is 18.5
This is a dedicated space for developers to connect, share ideas, collaborate, and ask questions. Introduce yourself, network with other developers, and join us in fostering a supportive community.
Selecting any option will automatically load the page
Post
Replies
Boosts
Views
Activity
I'm running into issues with iOS respecting the HTTP 410 "Gone" response type.
Setup:
Using the native iOS Calendar app, add a new subscription calendar. "Add Subscription Calendar"
Add the URL of a ICS calendar subscription that you control, e.g. https://mywebsite.com/userfeeds/23/cal.ics
Make sure to select the "Account" option and choose "On My iPhone/iPad". Set the query amount to 15 mins.
Calendar events show as expected, device queries the latest updates from the server every 15 minutes. Server returns HTTP 200 with the .ics contents.
Now, assume there is a need for the feed to end - maybe the user unsubscribed to mywebsite.com. There is currently no way for the mywebsite.com server / response to tell the device the feed has ended and it should stop requesting. If the user forgets to go to calendar and manually unsubscribe the device will continually ping the server every 15 minutes indefinitely. It's turning into a virtual DoS for my platform.
iOS should respect the HTTP 410 "Gone" header or something similar. If the server returns a HTTP 410 response code for https://mywebsite.com/userfeeds/23/cal.ics X amount of times, the feed should be automatically removed.
I've opened several tickets over the last 3 years and have not even had a status change on the tickets.
Does anyone know how to resolve this or a work around?
After connecting to a Passpoint network on macOS, the SSID field is displayed as empty.
Bugs ?
Passpoint connections are established and function correctly, with network communication unimpeded. However, a display issue where the SSID field is blank is present on macOS versions 13 through 15 inclusive. This issue persists even when utilizing connection profiles created with Apple Configurator.
Help me. Thks
Topic:
Community
SubTopic:
Apple Developers
Hi, I'm trying to figure out how to edit the bootps.plist which is in the system / library directory. I have an M4 MacBook running OS 15.3.2 and I've held down the power button to go into recovery mode, and in terminal entered the 'csrutil disable' command and have restarted but when I go back to 'get info - Sharing & Permissions' I can't change any of the permissions. I need to be able to edit this file to create DHCP server.
How can I change edit permissions on the bootps.plist?
Topic:
Community
SubTopic:
Apple Developers
Dear Apple:
If a BLE advertisement carries both a 16-bit service UUIDs and a 128-bit service UUIDs along with a local name, the local name will be placed in the scan response, then when the advertisement is turned off, both the 16-bit and 128-bit service UUIDs disappear while the local name persists. Subsequently, when transmitting a new advertisement that includes the 16-bit service UUIDs and local name, the resulting advertisement contains two local names. What methods can be used to avoid having two local names appearing simultaneously?Thanks
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.
I upgraded my macOS to 13.7.5 and since then I cannot open Adobe InDesing on my iMac.
I contacted Adobe Support to assist with the issue and they couldn't find any solution from their side. Probably the update is not compatible?
Is there a way I can solve this issue? Or remove the beta version from my system?
Topic:
Community
SubTopic:
Apple Developers
i am running iOS 18.5 beta 3 (iPhone 16 pro max) and my phone will not connect wirelessly to any of my vehicles. When connected via the apple certified usb-c cord, it will connect just fine. I have removed all vehicles from my phone, then removed my phone from both vehicle, reconnected, and it still will not connect wirelessly.
Topic:
Community
SubTopic:
Apple Developers
I’m running macOS 26 Beta 1 (build 25A5279m) on a 2019 Mac Pro (MacPro7,1) with a single 4K display connected via HDMI. Whenever I attempt to launch Finder, WindowServer immediately aborts and the machine reboots.
Crash details:
Process: WindowServer (PID 1441)
Exception: EXC_CRASH (SIGABRT) triggered in thread 0 (ws_main_thread)
Termination Reason: Abort trap: 6
Backtrace highlights:
CA::OGL::MetalContext::draw(MTLPrimitiveType, …) hits an internal __assert_rtn in libsystem_c.dylib
Subsequent calls all stem from QuartzCore’s OpenGL/Metal bridge (CA::OGL::render_layers, LayerNode::apply, etc.)
Related threads:
Thread 2 (com.apple.coreanimation.render-server) idle in mach_msg_overwrite
Thread 1 shows AmbientDisplay and ColorSync callbacks running
Hardware/Software:
MacPro7,1 (2019)
macOS 26.0 Beta 1 (25A5279m)
4K monitor via HDMI
System Integrity Protection enabled
What I’ve tried so far:
Safe-boot (crash still occurs)
Switching display profiles in System Settings → Displays → Color (no effect)
Happy to provide any additional logs or verbose console output. Let me know if there’s any other data that would help diagnose the Metal/OpenGL integration issue in this beta.
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.
Topic:
Community
SubTopic:
Apple Developers
Tags:
APNS
User Notifications
Sound and Haptics
Notification Center
How to Check Apple Development, iCloud ,Apple ID or Apple Account got some criminal act with Old Business Partners System and Fake reality shows to Stole my system Identity and Money. Can hear the sounds from up area in the air! and the accents and contenxt very bad behavior act! i tried to stop them on 2022, I know who they are, they **** up the reality bank , hospital ,apartment fire and lobby packages systems. and they got seriously damaged the other contries and humans body healthy system! and all my creations works.
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:),
Hi
Everybody knows about how this kind of files works.
My issue is about trying to load data from these files to a HTML page.
Everything works, I can read and use this data on my project however the records I have in Numbers, text where there are commas for punctuation, will be separated when this file is loaded. The comma is breaking the records, I know this is a CSV file but is there a way to set semicolon as delimiter on Mac or Numbers to be able to use the comma in my records without any issue? Also could be another symbol, but definitely I need the commas. thank you!
I can't use the app because I haven't received any email and I don't know what the invitation code is.
Will I receive it at some point or how can I receive it?
14Pro can not delete any application after upgrade system18.4
The Uber Driver app is able to get background location and there’s no way to turn it off from settings. Unlike other apps where there’s always an option to turn off background location from settings.
Is this a bug or special treatment for big companies?
this matters to me because we’re in a similar business but our app has to request background permissions, explicitly.
I am attaching both of the screenshots here for you to compare and see.
Please note that I verified personally that Uber Driver app is able to get background location.
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 -> Organizer -> 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?
So, I'm new to Swift, but I'm trying to get my app idea off the ground and am trying to find a way to create the main module of the app -
two users see in real time, where the other one touches their screen.
So, each of them see a red dot light up on their screen wherever the other one touched it. Ideally dot should change in diameter based on the pressure of the touch.
I am facing iOS app crash on app start, below is stack trace of crashed thread
OS Version: iOS 18.3.2 (22D82)
Report Version: 104
Exception Type: EXC_CRASH (SIGABRT)
Crashed Thread: 28
Application Specific Information:
*** -[__NSDictionaryM setObject:forKey:]: key cannot be nil
Thread 28 Crashed:
0 CoreFoundation 0x323b575fc
1 libobjc.A.dylib 0x31e649244 objc_exception_throw
2 CoreFoundation 0x323b3f224
3 libloader 0x10651eba4
4 libloader 0x10653f3b4
5 libdispatch.dylib 0x3336a8248
6 libdispatch.dylib 0x3336a9fa8
7 libdispatch.dylib 0x3336b15cc
8 libdispatch.dylib 0x3336b2124
9 libdispatch.dylib 0x3336bd38c
10 libdispatch.dylib 0x3336bcbd8
11 libsystem_pthread.dylib 0x43965d680 _pthread_wqthread
12 libsystem_pthread.dylib 0x43965b474 start_wqthread
Ld /Users/devops.mac1/Library/Developer/Xcode/DerivedData/MyJio-fwrzosmtfndowdejljdqbqhcfkjo/Build/Intermediates.noindex/ArchiveIntermediates/*****Production/IntermediateBuildFilesPath/UninstalledProducts/iphoneos/jsi.framework/jsi normal (in target 'React-jsi' from project 'Pods')
Facing this error while trying to archive an iOS project through terminal in Mac Agent. The having react native code too. Unable to resolve.
Topic:
Community
SubTopic:
Apple Developers