Delve into the world of built-in app and system services available to developers. Discuss leveraging these services to enhance your app's functionality and user experience.

Post

Replies

Boosts

Views

Activity

AppleTV Simulator SiriRemote not working in App
Hi, I'm having a small App in the AppleTV-Simulator which is supposed to use the Siri-Remotes Swipe-Gesture. It works perfect on the real device but on the simulator the Swipe-Gesture is not recognized in the App but it works on the Start-Screen of the Simulator using the simulated Siri-Remote app. Here is the code which sets up the xAxis ans yAxis value change handlers: #if targetEnvironment(simulator) // Simulator let siriRemote = GCController.controllers().filter { controller in if controller.vendorName == "Gamepad" { return true } else { return false } } let sController = siriRemote.first! let inputProfile = sController.physicalInputProfile let dPad = inputProfile.dpads["Direction Pad"] self.dPad = dPad self.dPad!.xAxis.valueChangedHandler = self.directionPadXAxisValueChangeHandler self.dPad!.yAxis.valueChangedHandler = self.directionPadYAxisValueChangeHandler } #else // Device if let _ = ( notification.object as? GCController)?.microGamepad { let microProfileController = notification.object as! GCController self.microGamePad = microProfileController.microGamepad self.dPad = self.microGamePad!.dpad self.dPad!.xAxis.valueChangedHandler = self.directionPadXAxisValueChangeHandler self.dPad!.yAxis.valueChangedHandler = self.directionPadYAxisValueChangeHandler } #endif Any help is greatly appreciated. Cheers, Frank
0
0
61
1d
iPhone Mirroring does not work with remote desktop?
Hi there, I have an iOS 18 device and a macOS 15 MacBook, both of which were upgraded to beta 2 yesterday. I tried the iPhone Mirroring at home, and it worked. Today, I left my iPhone at home and connected to my MacBook from the office via remote desktop (aka VNC). I could mirror my iPhone but could not do anything with it, like swipe the iPhone screen or click to open an app. So I wonder whether this is a bug or a feature. I really hope this is a bug that will be fixed in the future.
0
1
78
1d
Unable to iMessage on MacBook Pro
Entering an address ( phone # or name) in the To: box works, but when a message is entered in the message box and return pressed, the address turns red and no message is sent. This is the case even when I send myself the message. I've rebooted, disabled the vpn, and kept the memory clean (as far as I can tell) of background tasks. What up the no message thing:? Is it a result of the developer beta?
0
0
34
2d
How to stop Finder from triggering full file download of a file on network share to generate the thumbnail
Default behaviour of the macOS when interacting via Finder with a network share is to create thumbnails to provide a nice user experience. This behaviour is implemented by QuickLook framework. This triggers the full file download and quickly lead to cache using large disk space and even cache trashing. We can disable QuickLook selectively by injecting specially prepared .DS_Store file with instruction/setup to disable thumbnails in that directory but still degrades user's experience only in the network share ecosystem. Is there any way we can provide our own thumbnails or ask Finder to not download full file to generate the thumbnail?
1
0
139
1w
Screentime API new issues on iOS 17.4.1 and 17.5.1
Hi, I have a released screentime app ScreenZen. The last few days I've seen a disturbing spike in bug reports coming from people with 17.4.1 and 17.5.1 phones with no update to the app itself. People reported they saw the issue immediately after updating their iOS version. Unfortunately it is not replicable on all phones with those versions, so we haven't been able to replicate it on our test phones. It appears the issue is the ApplicationToken passed into ShieldActionExtension and ShieldConfigurationExtension does not match any of the ApplicationTokens that the user selected to block through FamilyControls. (The selected ApplicationTokens are being loaded through a group UserDefaults and they are indeed being loaded in the ShieldActionExtension in the bug reports).This is preventing the app from loading the correct settings and handling the blocking accordingly. I am trying to isolate this better with a new release with better logging, but would appreciate any help on this issue.
1
4
403
3w
Canceling request to […].DeviceActivityMonitorExtension because it exceeded its allowed time.
Hello, I am working on an app that schedules a device activity monitor from the screen time API. I noticed that sometimes scheduling an activity monitor won’t work and instead I see this log: Canceling request to […].DeviceActivityMonitorExtension because it exceeded its allowed time. What does this mean? What exactly is exceeding its allowed time? Would love to get some feedback on this so I can prevent this from happening. Thanks a lot for any help and have a nice day!
0
1
62
2d
Not privileged to start service
我有个其他问题,我有两个可执行的二进制文件作为代理服务使用,我制作了两个对应的plist,沙盒为开启之前plist文件存放位置是/user/hhhhhme/library/LaunchAgents,我通过shell脚本内的命令chmod 644 "$HOME/Library/LaunchAgents/xx.xx.xx.plist" launchctl load -wF "$HOME/Library/LaunchAgents/xx.xx.xx.plist" launchctl start xx.xx.xx可以完美运行,并且我通过Mac的设置,登录项,也可以查看到这两个代理,但是当我打开沙盒功能后,plist 的存储位置变成了/Users/hhhhhme/Library/Containers/com.TI.ty/Data/Library/LaunchAgents,我用的shell运行,得到一些错误:Not privileged to start service,请问我这种情况,我需要加什么对应的什么权限,或者要怎么调整我的app才能让它在开启沙盒功能的情况下,也能运行呢?有人可以帮助我吗?
0
0
49
2d
Roblox won't open
I have an issue with roblox not opening on my mac, and it keeps crashing: Here is the console: Process: RobloxPlayerInst [1063] Path: /var/folders/*/Roblox.app/Contents/MacOS/RobloxPlayerInstaller.app/Contents/MacOS/RobloxPlayerInstaller Identifier: RobloxPlayerInst Version: ??? Code Type: ARM-64 (Native) Parent Process: launchd [1] User ID: 502 Date/Time: 2024-06-24 08:38:01.0791 +0200 OS Version: macOS 14.4.1 (23E224) Report Version: 12 Anonymous UUID: 6933E813-18D2-EB5E-133D-20CF07E5CDB3 Sleep/Wake UUID: 01CC6CCB-E4B9-4155-A4A5-3866A54DE1E7 Time Awake Since Boot: 86000 seconds Time Since Wake: 45 seconds System Integrity Protection: enabled Crashed Thread: 2 Dispatch queue: com.apple.NSXPCConnection.m-user.com.apple.windowmanager.server Exception Type: EXC_BAD_ACCESS (SIGBUS) Exception Codes: KERN_MEMORY_ERROR at 0x00000001049386f9 Exception Codes: 0x000000000000000a, 0x00000001049386f9 Termination Reason: Namespace SIGNAL, Code 10 Bus error: 10 Terminating Process: exc handler [1063] VM Region Info: 0x1049386f9 is in 0x104678000-0x1049a0000; bytes after start: 2885369 bytes before end: 424198 REGION TYPE START - END [ VSIZE] PRT/MAX SHRMOD REGION DETAIL UNUSED SPACE AT START ---> mapped file 104678000-1049a0000 [ 3232K] r-x/r-x SM=COW Object_id=8472cd21 mapped file 1049a0000-1049d4000 [ 208K] r--/rw- SM=COW Object_id=87183c21 Kernel Triage: VM - (arg = 0x0) Object has no pager because the backing vnode was force unmounted
1
0
32
2d
[AppKit] CNPropertyNotFetchedException when using CNContactFormatter on CNContact retrieved from CNContactPicker
I am using CNContactPicker (with "CNContactKey.PostalAddresses" as "displayedKeys") to allow users to pick a contact + postal address. Upon selection, I am retrieving the postal address using CNPostalAddressFormatter - this works without problems. However, when trying to retrieve the contact name using CNContactFormatter, this only works when the contact type is "Person". When it is "company", the app crashes with "CNPropertyNotFetchedException Reason: A property was not requested when contact was fetched" (because the formatter attempts to access "organizationName", which it apparently can't. There also doesn't seem to be a way to "retrieve" this information without having to request contacts permissions manually. The same code (just using CNContactPickerViewController, but also without requesting contacts permissions) works without issue on iOS.
1
0
160
3w
WeatherKit REST API new columns for CurrentWeather
My pipeline broke today as new fields were added for the current weather dataset: cloudCoverLowAltPct cloudCoverMidAltPct cloudCoverHighAltPct I presumed new fields would only be released in a new version of the API? Is there any way to use a specific version of the API that will not be subject to change? The current weather REST API docs are here, which don't include these fields: https://developer.apple.com/documentation/weatherkitrestapi/currentweather/currentweatherdata
6
1
880
Jan ’23
WeatherKit REST API down?
I'm just getting 400 error responses to my requests sent to the WeatherKit REST API... haven't changed anything in my code for months. Here is the verbose output from curl: # curl -v "https://weatherkit.apple.com/api/v1/weather/en/51.5203/-0.1775?dataSets=forecastHourly%2CforecastNextHour&hourlyEnd=2024-07-04T09%3A03%3A36.962Z&hourlyStart=2024-06-24T09%3A03%3A36.962Z" -H "Authorization: Bearer [REDACTED]" * Trying 23.73.4.202:443... * Connected to weatherkit.apple.com (23.73.4.202) port 443 (#0) * ALPN, offering h2 * ALPN, offering http/1.1 * CAfile: /etc/ssl/certs/ca-certificates.crt * CApath: /etc/ssl/certs * TLSv1.0 (OUT), TLS header, Certificate Status (22): * TLSv1.3 (OUT), TLS handshake, Client hello (1): * TLSv1.2 (IN), TLS header, Certificate Status (22): * TLSv1.3 (IN), TLS handshake, Server hello (2): * TLSv1.2 (IN), TLS header, Finished (20): * TLSv1.2 (IN), TLS header, Supplemental data (23): * TLSv1.3 (IN), TLS handshake, Encrypted Extensions (8): * TLSv1.2 (IN), TLS header, Supplemental data (23): * TLSv1.3 (IN), TLS handshake, Certificate (11): * TLSv1.2 (IN), TLS header, Supplemental data (23): * TLSv1.3 (IN), TLS handshake, CERT verify (15): * TLSv1.2 (IN), TLS header, Supplemental data (23): * TLSv1.3 (IN), TLS handshake, Finished (20): * TLSv1.2 (OUT), TLS header, Finished (20): * TLSv1.3 (OUT), TLS change cipher, Change cipher spec (1): * TLSv1.2 (OUT), TLS header, Supplemental data (23): * TLSv1.3 (OUT), TLS handshake, Finished (20): * SSL connection using TLSv1.3 / TLS_AES_256_GCM_SHA384 * ALPN, server accepted to use http/1.1 * Server certificate: * subject: C=US; ST=California; O=Apple Inc.; CN=weather-data.apple.com * start date: May 8 16:30:14 2024 GMT * expire date: Nov 4 16:40:14 2024 GMT * subjectAltName: host "weatherkit.apple.com" matched cert's "weatherkit.apple.com" * issuer: C=US; O=Apple Inc.; CN=Apple Public Server ECC CA 1 - G1 * SSL certificate verify ok. * TLSv1.2 (OUT), TLS header, Supplemental data (23): > GET /api/v1/weather/en/51.5203/-0.1775?dataSets=forecastHourly%2CforecastNextHour&hourlyEnd=2024-07-04T09%3A03%3A36.962Z&hourlyStart=2024-06-24T09%3A03%3A36.962Z HTTP/1.1 > Host: weatherkit.apple.com > User-Agent: curl/7.81.0 > Accept: */* > Authorization: Bearer [REDACTED] > * TLSv1.2 (IN), TLS header, Supplemental data (23): * TLSv1.3 (IN), TLS handshake, Newsession Ticket (4): * TLSv1.2 (IN), TLS header, Supplemental data (23): * TLSv1.3 (IN), TLS handshake, Newsession Ticket (4): * old SSL session ID is stale, removing * TLSv1.2 (IN), TLS header, Supplemental data (23): * Mark bundle as not supporting multiuse < HTTP/1.1 400 Bad Request < Server: Apple < Content-Length: 0 < X-Frame-Options: SAMEORIGIN < Strict-Transport-Security: max-age=31536000; includeSubdomains < X-XSS-Protection: 1; mode=block < Access-Control-Allow-Origin: * < X-Content-Type-Options: nosniff < Content-Security-Policy: default-src 'self'; < X-REQUEST-ID: ed7d038c-ef82-61d8-a2cb-4522ff7d32ca < X-Apple-Origin: fdcbff05-73b4-3a53-948b-343caa55a40e < Date: Mon, 24 Jun 2024 09:18:00 GMT < X-Cache: TCP_MISS from a23-73-3-202.deploy.akamaitechnologies.com (AkamaiGHost/11.5.2-56655770) (-) < Connection: keep-alive < * Connection #0 to host weatherkit.apple.com left intact
6
1
172
4d
Downgrade IOS 18 vers 17 sans perte de données
Bonjour, J'ai récemment installé iOS 18 pour le tester etc. Malheureusement suite a quelques bugs, je préfère retourner sur une version stable : J'avais bien fais une sauvegarde sur iTunes avant de passer sur iOS 18 mais cette dernière a été écrasée... Après de longue recherche, je suis tombé sur une méthode qui consiste a restauré l'iPhone avec une backup faite sur iOS 18 en changeant le numéro de version dans le fichier info présent dans la backup. Est-ce que cette technique peut marcher ? Merci par avance !
1
0
101
2d
Watch OS 11 not charging
Just upgraded to Watch OS11 Beta with the watch on charge and put the watch on and it was only 40% charged. I put it back on the charger and it didn’t charge. I erased it and went to repair and it is flat 20 minutes after it was on 40% and sitting on the charger. the message on screen is ‘LOW BATTERY to continue, connect Apple Watch to it’s charger.’ Have I bricked my watch? Thanks
3
1
210
2w
FileDocument - open another file in the same directory as selected file
I'm working on a macOS app where my file format can include other files (think #include in C/C++). When opening a file with SwiftUI's document-based APIs (i.e., FileDocument), is there a way to get access to those other files? Alternatively, is there a way I could "open" the file's directory, similar to how Xcode opens the directory that a .xcodeproj is located? I don't mind falling back to older Cocoa APIs if this is too obscure for the shiny new stuff :)
2
0
439
Mar ’24