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

iOS 17.4.1 Crash with WebCore "cache_remove_all"
Our iOS 17.4.1 users are experiencing a crash when we try to convert Markdowns to HTML. We're wondering what could be the trigger for this crash 💥. we would love to get some help. Here is the full stack: Crashed: WebThread 0 WebCore 0x2ee8 <redacted> + 20 1 WebCore 0x15df7d0 <redacted> + 11068 2 WebCore 0x191b6b0 <redacted> + 264 3 WebCore 0x15e0e7c <redacted> + 784 4 WebCore 0x1e1a01c WebCore::LocalFrame::~LocalFrame() + 548 5 WebCore 0x1e1a760 WebCore::LocalFrame::~LocalFrame() + 16 6 WebCore 0x1e5470c WebCore::Page::~Page() + 7264 7 WebKitLegacy 0xb65e8 __29-[WebView(WebPrivate) _close]_block_invoke + 372 8 WebCore 0x214d070 <redacted> + 648 9 CoreFoundation 0x3762c __CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE0_PERFORM_FUNCTION__ + 28 10 CoreFoundation 0x368a8 __CFRunLoopDoSource0 + 176 11 CoreFoundation 0x350b8 __CFRunLoopDoSources0 + 340 12 CoreFoundation 0x33d88 __CFRunLoopRun + 828 13 CoreFoundation 0x33968 CFRunLoopRunSpecific + 608 14 WebCore 0xe90110 <redacted> + 780 15 libsystem_pthread.dylib 0x2a90 _pthread_start + 136 16 libsystem_pthread.dylib 0x1fcc thread_start + 8 com.apple.uikit.datasource.diffing 0 libsystem_kernel.dylib 0x249c __psynch_cvwait + 8 1 libsystem_pthread.dylib 0x1590 _pthread_cond_wait + 1228 2 JavaScriptCore 0x7d5f8 ***::ThreadCondition::timedWait(***::Mutex&, ***::WallTime) + 160 3 JavaScriptCore 0x51d78 ***::ParkingLot::parkConditionallyImpl(void const*, ***::ScopedLambda<bool ()> const&, ***::ScopedLambda<void ()> const&, ***::TimeWithDynamicClockType const&) + 2072 4 JavaScriptCore 0x42468 ***::LockAlgorithm<unsigned char, (unsigned char)1, (unsigned char)2, ***::EmptyLockHooks<unsigned char> >::lockSlow(***::Atomic<unsigned char>&) + 216 5 WebCore 0xe8da54 <redacted> + 280 6 WebCore 0xe8ea38 WebThreadLock + 132 7 UIFoundation 0xdb68c -[NSHTMLReader _loadUsingWebKit] + 1448 8 UIFoundation 0xdc234 -[NSHTMLReader attributedString] + 24 9 UIFoundation 0x83c88 _NSReadAttributedStringFromURLOrDataCommon + 6440 10 UIFoundation 0x7ed34 _NSReadAttributedStringFromURLOrData + 288 11 UIFoundation 0x7ebac -[NSAttributedString(NSAttributedStringUIFoundationAdditions) initWithData:options:documentAttributes:error:] + 148 ...
1
0
74
4d
Screen Time | How to enable/disable screen time for a game app by setting start and end times?
let schedule = DeviceActivitySchedule( intervalStart: DateComponents(calendar: Calendar.current ,hour: 20, minute: 0), intervalEnd: DateComponents(calendar: Calendar.current ,hour: 22, minute: 59), repeats: true, warningTime: nil ) store.shield.applications = selectionToDiscourage.applicationTokens.isEmpty ? nil : selectionToDiscourage.applicationTokens store.shield.applicationCategories = selectionToDiscourage.categoryTokens.isEmpty ? nil : ShieldSettings.ActivityCategoryPolicy.specific(selectionToDiscourage.categoryTokens) store.shield.webDomains = selectionToDiscourage.webDomainTokens store.application.blockedApplications = selectionToDiscourage.applications try center.startMonitoring(.daily, during: schedule)
0
0
55
4d
Screen Time | How to enable/disable screen time for a game app by setting start and end times?
try center.startMonitoring(.daily, during: schedule) let schedule = DeviceActivitySchedule( intervalStart: DateComponents(calendar: Calendar.current ,hour: 20, minute: 0), intervalEnd: DateComponents(calendar: Calendar.current ,hour: 22, minute: 59), repeats: true, warningTime: nil ) extension DeviceActivityName { static let daily = Self("daily") }
0
0
61
4d
updateContentFilter no work when swich capture window
Start carpture window A, it works fine. After some time, I want to switch to capture window B without stop the scstream. My code is like this : content_filter = [[SCContentFilter alloc] initWithDesktopIndependentWindow:winID_B]; [scStream_ updateContentFilter:content_filter completionHandler:^(NSError *_Nullable error) { if (error) { "some error log" } else { "update OK" } }]; I cant get the "update OK" log, but sometimes it still output frame of the old window A. Is there any special operation need do before call updateContentFilter ? Or, is my usage is not correct ?
0
0
66
4d
ShareLink with custom UT type not opening in my app
Hey all, my first time posting on these forums as I've finally become completely stumped. I'm working to implement a ShareLink to share data between users on my app, and have gotten pretty far (file saves, sends correctly), but am having significant issues getting the link to open in my app when sharing by email and not getting any action at all when tapping a shared link in iMessage. I'll go through my setup below: I have declared my new UTType, and created my new model which conforms to transferable here: struct transferTemplate: Codable { var id: UUID = UUID() var name: String = "TempName" var words: [String] = ["word1","word2"] } extension transferTemplate: Transferable { static var transferRepresentation: some TransferRepresentation { CodableRepresentation(contentType: .oltemplate) } } extension UTType { static var oltemplate: UTType { UTType(exportedAs: "com.overloadapp.oltemplate") } } I have declared the document type in my info.plist: <key>CFBundleDocumentTypes</key> <array> <dict> <key>CFBundleTypeName</key> <string>Template Session</string> <key>LSHandlerRank</key> <string>Owner</string> <key>LSItemContentTypes</key> <array> <string>com.overloadapp.oltemplate</string> </array> </dict> </array> I have declared the Exported Type Identifier: <key>UTExportedTypeDeclarations</key> <array> <dict> <key>UTTypeConformsTo</key> <array> <string>public.json</string> </array> <key>UTTypeDescription</key> <string>Template Session</string> <key>UTTypeIconFiles</key> <array/> <key>UTTypeIdentifier</key> <string>com.overloadapp.oltemplate</string> <key>UTTypeTagSpecification</key> <dict> <key>public.filename-extension</key> <array> <string>oltemplate</string> </array> <key>public.mime-type</key> <array> <string>application/json</string> </array> </dict> </dict> </array> I've also included the "LSSupportsOpeningDocumentsInPlace" boolean to True in the PLIST. My physical ShareLink setup is: @State private var transferred: transferTemplate = transferTemplate(name: "NameTemplate", words: ["One","Two"]) ... ShareLink(item: transferred, preview: SharePreview("Share your template", image: Image("tanLogo"))) Heres where the above code gets you: ShareLink brings up the share sheet and allows you to send the file (with the .oltemplate file extension). Sharing via iMessage will send a file, but within iMessage, the file cannot be opened at all. By email, the file can be opened but does not show any information. If you open the ShareSheet within the email attachment, you can manually choose to open the file in my app. If the file is saved to "Files", it will open my app when it is tapped (work as intended). Heres what I have tried to fix this: Modifying the Exported File Type "Conforms to" value. Ive used public.data, public.text, public.json. Including and not including the mime type I've scoured forums trying to solve this issue, and it doesn't seem like there is a clear cut solution for this issue. I appreciate any help you can provide! Please let me know if I can include any more helpful information.
0
0
89
5d
WeatherKit failures in last 24 hours
In the last 24 hours, I've noticed a huge increase in the number of connection failures to WeatherKit... more than half the calls are responding with responseFailed or -999 / -1001 errors. This is happening to customers in production, I have not managed to replicate the error on my own devices to get a complete error readout. Is anyone else experiencing this? System status shows green.
0
0
48
6d
Screen time glitch
Any apps that I have screen time on for and needs a password to gain access to it. Repeatedly says password is incorrect when it actually isn’t. When trying to go into screen time in settings, as soon as I click on screen time, it kicks me out of settings and put me back on home screen.
1
0
87
6d
Where can "SystemVersion.bundle" be found?
This is one of the files being looked for during initialization of the RoomPlan WWDC Demo package but it cannot be found since moving to IOS 18.0. it is not anyrhere since the upgrade. Reference is 2024-06-18 16:03:36.871062-0500 RoomPlanExampleApp[860:159744] [loading] Unable to create bundle at URL (file:///System/Library/CoreServices/SystemVersion.bundle): does not exist or not a directory (0)
8
0
133
6d
How to return to the original app after scanning a barcode in the custom keyboard app
We are developing a custom keyboard with barcode scanning functionality in Swift. We are aware that the camera function cannot be used on the custom keyboard due to iOS security, so we are implementing a combination of the custom keyboard app & a hosting app that handles scanning and settings. The hosted apps that can use the keyboard app are not limited, but are assumed to be used by an unspecified number of apps such as Notepad, Safari, etc. After displaying the keyboard app in the host app, I am able to press the button displayed in the keyboard app → transition to the hosting app with a custom URL scheme to scan the barcode, but I am unsure how to return to the host app from here. I am aware that there is some way to get back to the host app, as the following app I referred to is able to achieve this. https://apps.apple.com/jp/app/imagerswift/id1469166411 We have investigated and verified the following three points whether it is possible to come back to the keyboard app with a custom URL scheme →The keyboard app does not allow custom URLs to be set. Can we return to the host app with a custom URL scheme? →The keyboard app cannot recognize which app is the host app. Is it possible to press the Back to xxxx link that appears in the upper left corner of the screen as an iOS function? →Cannot be controlled from the app.
0
0
51
6d
How to return from the custom keyboard hosting app to the host app
We are developing a custom keyboard with barcode scanning functionality in Swift. Since the camera function cannot be used to scan on the custom keyboard, we are considering using the hosting app to perform the scanning and then return to the host app. Is there any way to automatically return to the host app after scanning in the hosting app? In the following apps that I have benchmarked, Custom Keyboard > Scan in Hosting App > Automatically return to host app after scan This transition seems to be achievable. https://apps.apple.com/jp/app/imagerswift/id1469166411 We have investigated and verified the following three points whether it is possible to come back to the keyboard app with a custom URL scheme →The keyboard app does not allow custom URLs to be set. Can we return to the host app with a custom URL scheme? →The keyboard app cannot recognize which app is the host app. Is it possible to press the Back to xxxx link that appears in the upper left corner of the screen as an iOS function? →Cannot be controlled from the app.
0
0
52
6d
Universal Link with query parameter
Hi guys! I'm using a universal link to match with iOS and Android. I'm trying to open my app when user clicks in a link like this: https://mywebsite.com/?invite=TI878IU I've tried many different ways to create the file apple-app-site-association. But any of them I could use this parameter directly. Do you have any guidance in how I could do that? This is my file: { "applinks": { "apps": [], "details": [ { "appIDs": [ "ABC12345AB.com.example.app" ], "paths": [ "*" ], "components": [ { "/": "/*", "comment": "Matches any URL with a fragment parameters to open it as universal link" }, { "/": "/privacy.html", "exclude": true, "comment": "Matches any URL with a path that starts with /help/website/ and instructs the system not to open it as a universal link." } ] } ] } }
2
0
79
6d
MacOS 15.0 Beta fails to AirDrop & connect to Vision Pro
I was able to AirDrop files to other Mac and connect to Vision Pro before updating the system to 15.0 Beta Currently, here is what I have: MacOS Version 15.0 Beta (24A5264n) fails to AirDrop files to the other one, while it can drop to the IPhone and that Mac can receive files from that IPhone without any issue Regarding the Vision Pro, it takes forever for this Mac to connect after pairing. Does anyone have any idea on what might be the cause?
1
1
83
6d
Support for custom Matter endpoints, clusters and attributes
I am working on an app for a home automation device. If I were using HomeKit exclusively I could add custom services or custom characteristics on standard services and these things would all be reported to my app via HomeKit. There is sample code from Apple that demonstrates how to do this. When a Matter device is commissioned using HomeKit you might expect custom clusters and/or custom attributes in a standard cluster would be translated to appropriate HomeKit services and characteristics, but this doesn't appear to be the case. Is there a way to have HomeKit do this? If not it seems I would need to use Matter directly rather than via HomeKit to access custom features. But if I commission the device using Matter in my app then I understand a new fabric is created and the device would not show in the Home app. Maybe the user needs to commission the device twice, once with my custom app and once with the Home app? That seems like a poor user experience to me. Perhaps that is the price paid for using a cross-platform standard? Is there a better way to get the same level of customization using Matter that I am able to get using HomeKit?
2
0
79
6d
Apple-app-site association file is not fetching from the server
Hi Team, The apple-app-site association file is not fetching from the server. We have waited for more than 10 days. Please find below, the details for the same. URL - https://app-site-association.cdn-apple.com/a/v1/mobile.plymouthrock.com Well Known file - https://mobile.plymouthrock.com/.well-known/apple-app-site-association Please help us by letting us know the reason for this. Thanks and Regards, Ibrahim Sulaiman
2
0
64
1w
Apps of the same family being blocked inadvertently
My app allows users to select apps and websites to block using the Screen Time API. Lately I have gotten a bunch of emails from users who say that selecting one app also results in other apps of that family being blocked, even if they aren't selected in the FamilyActivityPicker. The most common example is Facebook. A handful of users have said that they selected Facebook to be blocked, but Messenger will be blocked as well (even though Messenger isn't selected, and they don't want it to be blocked). Does anyone know why this might be happening? It seemed to begin happening awhile ago after allowing users to block websites in addition to apps - not sure if that could have something to do with it.
3
1
108
1w
App Clips Domain Status Issues
Hello, I am trying to set up my app clip experience but am having issues with the associated domain. I have added the domain to my app clip's associated domains and updated my apple-app-site-association file on my website. On app store connect under my build I see "Bad HTTP Response" for domain url status. This is what my apple-app-site-association file looks like: { "appclips": { "apps" : [ "123ABC.com.NESVB.North-End-Shuttle.Clip" ] } } My associated domains looks like:
0
0
75
1w
Predicitive Text is presenting suggestions in incorrect language when 3rd party keyboard is installed
I'm the developer of a third-party keyboard app, Snippety - Snippets Manager, which is designed for using snippets rather than regular typing. One of my users has encountered a strange issue: after installing my keyboard (even when it is not actively in use), the predictive text bar starts showing suggestions in Polish. This happens despite the Polish language not being installed on the device. The issue resolves as soon as my keyboard is uninstalled from the system settings. Interestingly, my application (including the keyboard) does not support the Polish language, nor is Polish specified anywhere in the app. The app was developed and published from macOS in English. This seems to be an iOS bug. The only language-related configuration in my keyboard is the PrimaryLanguage key in the Info.plist file, which I set to "mul" because the keyboard is not intended for typing. I also tried setting it to "mis", but the issue persists. The video presenting this issue on an iPhone 15 simulator running iOS 17.5: https://www.dropbox.com/scl/fi/xjdyucxpmv1cv0mnmwzvd/prdictive-text-issue.mp4?rlkey=aphznpdti08pz8xl84ojbyxz3&dl=0 Info.plist for my keyboard: My project settings: Steps to reproduce: Configure iOS to use English language only, with English keyboard Enable predictive text feature in the system Install Snippety keyboard Use the regular keyboard & start typing "dzie" Actual result: Polish predictions appear even though the Polish language is not installed or declared by the keyboard. Expected result: The predictive text should present predictions based on system settings. What is even more weird, I discovered that when I add the keyboard in system settings, it automatically installs Polish language in the system settings. I even changed PrimaryLanguage to "de" (German) in Info.plist but it still installs Polish. See: https://www.dropbox.com/scl/fi/aiv5g4z331zwy827zj47v/incorrect-language-installed.mp4?rlkey=16v5gqmb6mj8yuyyd7jwmjnsw&dl=0 Any ideas what could be wrong? I also created a ticket: #FB13949087 I also found a similar issue from 2018 (O_O) reported here: https://stackoverflow.com/questions/53069262/ios-adds-new-preferred-language-when-installing-my-3rd-party-keyboard
2
0
138
1w