When My App Star, It will crash. X Code logs is:
{"app_name":"BuildGuard","timestamp":"2024-12-03 10:47:35.00 +0800","app_version":"3.8.2","slice_uuid":"6a885ed1-0141-3b69-bca8-4f746e88c1d6","build_version":"1","platform":"2","bundleID":"com.BuildGuard.freedo","share_with_app_devs":"0","is_first_party":"0","bug_type":"309","os_version":"iPhone OS 18.1.1 (22B91)","roots_installed":"0","name":"BuildGuard","incident_id":"E2CB5DD7-99D8-4EB9-AA48-F72B5BEF9023"}
{
"uptime": 3500,
"procRole": "Foreground",
"version": 2,
"userID": 501,
"deployVersion": 210,
"modelCode": "iPhone14,5",
"coalitionID": 950,
"osVersion": {
"isEmbedded": true,
"train": "iPhone OS 18.1.1",
"releaseType": "User",
"build": "22B91"
},
"captureTime": "2024-12-03 10:47:34.2708 +0800",
"codeSigningMonitor": 2,
"incident": "E2CB5DD7-99D8-4EB9-AA48-F72B5BEF9023",
"pid": 729,
"translated": false,
"cpuType": "ARM-64",
"roots_installed": 0,
"bug_type": "309",
"procLaunch": "2024-12-03 10:47:34.0445 +0800",
"procStartAbsTime": 85384647991,
"procExitAbsTime": 85390036612,
"procName": "BuildGuard",
"procPath": "/private/var/containers/Bundle/Application/B2FAEAFF-EA32-4431-81B4-70BCF7D6CB70/BuildGuard.app/BuildGuard",
"bundleInfo": {
"CFBundleShortVersionString": "3.8.2",
"CFBundleVersion": "1",
"CFBundleIdentifier": "com.BuildGuard.freedo"
},
"storeInfo": {
"deviceIdentifierForVendor": "A54E5EC2-AB9E-4A54-A011-7465DA2A1F29",
"thirdParty": true
},
"parentProc": "launchd",
"parentPid": 1,
"coalitionName": "com.BuildGuard.freedo",
"crashReporterKey": "94df86a1cd449259b3b4d4bd07e6eae5fcd189f9",
"appleIntelligenceStatus": {
"reasons": [
"assetIsNotReady",
"countryLocationIneligible",
"notOptedIn",
"selectedLanguageIneligible",
"regionIneligible",
"deviceNotCapable",
"accessNotGranted",
"siriAssetIsNotReady",
"selectedSiriLanguageIneligible"
],
"state": "unavailable"
},
"wasUnlockedSinceBoot": 1,
"isLocked": 0,
"codeSigningID": "com.BuildGuard.freedo",
"codeSigningTeamID": "MV84352VU6",
"codeSigningFlags": 570434309,
"codeSigningValidationCategory": 3,
"codeSigningTrustLevel": 4,
"instructionByteStream": {
"beforePC": "fyMD1f17v6n9AwCRPOz/l78DAJH9e8Go/w9f1sADX9YQKYDSARAA1A==",
"atPC": "AwEAVH8jA9X9e7+p/QMAkTHs/5e/AwCR/XvBqP8PX9bAA1/WECeA0g=="
},
"bootSessionUUID": "0C44CFFB-9C67-4F70-AB62-19AEEEA2D0F0",
"basebandVersion": "4.10.02",
"exception": {
"codes": "0x0000000000000000, 0x0000000000000000",
"rawCodes": [
0,
0
],
"type": "EXC_CRASH",
"signal": "SIGABRT"
},
"termination": {
"flags": 0,
"code": 6,
"namespace": "SIGNAL",
"indicator": "Abort trap: 6",
"byProc": "BuildGuard",
"byPid": 729
},
"asi": {
"libsystem_c.dylib": [
"abort() called"
]
},
"exceptionReason": {
"arguments": [
"__NSCFConstantString",
"_accessibilitySetFrameExpansion:",
"0x10c2e4460"
],
"format_string": "-[%s %s]: unrecognized selector sent to instance %p",
"name": "NSInvalidArgumentException",
"type": "objc-exception",
"composed_message": "-[__NSCFConstantString _accessibilitySetFrameExpansion:]: unrecognized selector sent to instance 0x10c2e4460",
"class": "NSException"
},
"lastExceptionBacktrace": [
{
"imageOffset": 534476,
"symbol": "__exceptionPreprocess",
"symbolLocation": 164,
"imageIndex": 10
},
{
"imageOffset": 94948,
"symbol": "objc_exception_throw",
"symbolLocation": 87,
"imageIndex": 7
},
General
RSS for tagDelve 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.
Selecting any option will automatically load the page
Post
Replies
Boosts
Views
Created
PLATFORM AND VERSION
Xcode Version 16.2 beta 3 (16C5023f)
macOS 15.1.1 (24B91)
Run-time configuration: iOS 18.0
DESCRIPTION OF PROBLEM
We are currently testing the functionality of AirDrop by bringing iPhones close to each other.
I am trying to transfer the activityItemsConfiguration set in the modal screen via AirDrop.
However, if presentationStyle is fullscreen, it succeeds, but otherwise the connection is successful but no item is displayed on the screen.
STEPS TO REPRODUCE
Open my project.
Run on device
Tap Present with toggle is off.
ModalViewController presented as sheet.
Bring another iPhone closer
Play connection animation, then just display connected.
Hello,
I am experiencing an issue with the Live Activity feature in my application. Despite extensive debugging efforts, the problem persists, and I would greatly appreciate your assistance.
Here are the key details of the issue:
We are not using APNS; everything related to Live Activities is handled locally within the app.
The Live Activity displays task details, including: Task title, icon and A label functioning as a timer that shows the remaining time in seconds for the task.
The Live Activity appears as expected when the app is opened. However, when the app is sent to the background, the Live Activity does not appear consistently. It disappears unexpectedly in some random instances.
I have tried various debugging methods, including:
Ensuring the activity is correctly created and updated as per the Apple Documentation.
Verifying the ActivityAttributes and ActivityContentState configurations.
Testing with different app lifecycle events to determine when the issue occurs.
Despite these efforts, the issue remains unresolved, and the cause is unclear. The app behavior seems inconsistent, as the Live Activity sometimes remains visible and at other times disappears when the app is backgrounded.
I would greatly appreciate your help in understanding and addressing this issue. Specifically:
Are there any system-level constraints or conditions that could cause a Live Activity to terminate when the app is backgrounded?
Are there best practices or configurations to ensure the persistence of locally managed Live Activities?
Can you suggest additional debugging techniques or tools that could help identify the root cause?
Thank you for your time and support. Please let me know if further information or logs are needed to assist in troubleshooting
STEPS TO REPRODUCE
Download and Install the Owaves App from the App Store.
Create a Live Activity:
Open the app and create an activity for the current time on Today.
Example: If the current time is 9:30 AM, create an activity with a time range such as 9:00 AM - 10:00 AM to ensure it is live.
Enable Live Activity:
Tap on the newly created activity to open the Event Details page.
Scroll to the bottom of the page and locate the toggle switch labeled "Live Activity".
Switch the toggle to the ON position to enable the Live Activity.
Background the App:
Send the app to the background.
Check the Lock Screen:
Swipe down to enable iOS' Lock Screen and check for the Live Activity from the Owaves app.
Repeat the Steps:
If the Live Activity appears on the Lock Screen initially, repeat steps 3-5 multiple times.
Eventually, you will encounter instances where the Live Activity does not appear on the Lock Screen, despite following the same process
Hello, if an associated domain is specified for an app (for example, the url of a server services an app extension text spam filtering) then what is there in place to stop somebody with malicious intentions from obtaining that url from the .plist/.entitlements file of the app and doing something with that url, such as denial of service attack or whatever?
I've developed a new Quicklook data-based preview extension for a custom file type that generates an image preview of the file. I previously used a Quick Look generator plug-in but support for it was deprecated and now removed in macOS Sequoia.
My app opens files using a
open(url.path, O_RDWR | O_NONBLOCK | O_EXLOCK)
call. The locking flags are used to prevent other clients from writing the file if it's already open.
I discovered that when Finder is showing the “large” file previews (such as when in column or gallery modes) from a SMB share, the open call fails with EWOULDBLOCK as if the file is locked.
It does work just fine on local files. Opening with O_SHLOCK also has the issue. Surprisingly it does work just fine for previews that return Plain Text data instead of Image data.
Using the lsof command, it seems like the Quicklook process has some kind of lock on the file.
This is the output of the lsof command:
COMMAND PID USER FD TYPE DEVICE SIZE/OFF NODE
QuickLook 48487 XXXX txt REG 1,15 125000611 3161369
Attached is a test project that tries a few different opening and locking functions. It also includes a test file and a sample image preview extension that displays a red square.
When everything is working, regular console messages show the progress of the tests. When the file is on a SMB share and selected in Finder Gallery mode, the open test will fail with a fault message in the console.
Notably, locking with flock works, which is weird because it should have similar semantics according to the man page for open(2).
Filed this as FB15051186
Topic:
App & System Services
SubTopic:
General
Tags:
Extensions
QuickLook
QuickLook Thumbnailing
Files and Storage
Hello,
I have a question related to the public iTunes Search API: https://performance-partners.apple.com/search-api
Do all the books have an ISBN associated? I used to do queries like:
https://itunes.apple.com/lookup?isbn=9781501110368. That book is available on Apple Books here: https://books.apple.com/us/book/it-ends-with-us/id1052928247 and the endpoint above returns informations about it.
However for newer books like:
https://itunes.apple.com/lookup?isbn=9781419766954
https://itunes.apple.com/lookup?isbn=9781250288776
Nothing comes back anymore even if those books exist there. The url's for the 2 above are:
https://books.apple.com/us/book/hot-mess-diary-of-a-wimpy-kid-19/id6476554491
https://books.apple.com/mt/book/the-mirror/id6474420363
For newer books starting the beginning of September 2024, nothing seems to come back when you search them by ISBN.
Thanks
How can I show my VoIP calling app in the same list as Facetime and Whatsapp as shown in the image?
My app implements VoIP calls and is integrated with CallKit.
Any tip would be appreciated!
I'm working with the FamilyControls API and am running into an issue with sharing ActivityTokens between devices in the same family sharing network.
Based on this documentation, ActivityTokens are only accessible and readable by other members in the family sharing network. My app is based on the idea that if one user selects the Games category in the FamilyActivityPicker, then this token can be shared with another device in the same family-sharing network and this other device can read and display the category.
So my question is:
If a user in the network selects an activity category in the FamilyActivityPicker, can this category token be shared, read, and used by another user in the family-sharing network?
When I use the screen time API, the app occasionally crashes in the morning. I mean the UI freeze lasts for more than ten seconds.
But the weird thing is that I work normally during the day, that is, in the morning, when I just woke up. (There is no Do Not Disturb mode). This problem has been bothering me for several days, please help.
The specific crash log is as follows, and the specific code is as follows.
Model: iPhone 15 Pro, iOS: 18.1.1
Thanks for your help!
Code:
private func startAppMonitoring(application: ApplicationToken, seconds: Int, isFromNow: Bool) {
let schedule = DeviceActivitySchedule(
intervalStart: isFromNow ? Calendar.current.dateComponents([.hour, .minute, .second], from: Date()) : DateComponents(timeZone: TimeZone(identifier:TimeZone.current.identifier), hour: 0, minute: 0, second: 0),
intervalEnd: DateComponents(timeZone: TimeZone(identifier:TimeZone.current.identifier), hour: 23, minute: 58, second: 59),
repeats: true,
warningTime: DateComponents(minute: 1)
)
let event = DeviceActivityEvent(
applications: Set([application]),
threshold: DateComponents(second: seconds)
)
let center = DeviceActivityCenter()
do {
try center.startMonitoring(DeviceActivityName("\(application.hashValue)Usage"), during: schedule, events: [DeviceActivityEvent.Name("\(application.hashValue)Event"): event])
} catch {
print("Error starting monitoring schedule: \(error)")
}
}
Crash report:
I have developed a standalone WatchOS app which runs a stopwatch.
I want to develop a shortcut that launches the stopwatch. So far I have created the Intent file, and added the basic code (shown below) but the intent doesn't show in the shortcuts app.
In the build, I can see the intent metadata is extracted, so it can see it, but for some reason it doesn't show in the watch.
I downloaded Apple's demo Intent app and the intents show in the watch there. The only obvious difference is that the Apple app is developed as an iOS app with a WatchOS companion, whereas mine is standalone.
Can anyone point me to where I should look for an indicator of the problem?
Many thanks!
//
// StartStopwatch.swift
// LapStopWatchMaster
import AppIntents
import Foundation
struct StartStopWatchAppIntent: AppIntent {
static let title: LocalizedStringResource = "Start Stopwatch"
static let description = IntentDescription("Starts the stopwatch and subsequently triggers a lap.")
static let openAppWhenRun: Bool = true
@MainActor
func perform() async throws -> some IntentResult {
// Implement your app logic here
return .result(value: "Started stopwatch.")
}
}
Does anyone have any luck getting Search Ads Basic to work? Since I released my app, I've attempted to get a campaign going. This was months ago. It occasionally spends a little. Each time, well under my max. It usually sits at zero. I try raising the max and raising the budget and it will show a little activity then stop again. What is the trick? There doesn't seem to be very many things to change. 90 countries, max CPI way higher than the average when it does spend, trying a $1500 budget. It's like it's glitched out.
Description:
I have encountered an issue with SFSpeechRecognizer on iOS 18.0. During live dictation, if a natural pause (e.g., 1-2 seconds) is introduced, the previously transcribed text is cleared, and the transcription starts over. This behavior makes it difficult to use the API for real-time speech recognition scenarios where pauses are expected.
Steps to Reproduce: Open Apple's demo app "SpokenWord".
Start the dictation process using SFSpeechRecognizer.
Speak a few words, pause for 1-2 seconds, and then continue speaking.
Observe that the previously transcribed text is truncated, and the transcription starts anew.
Expected Behavior: The transcription should continue appending new results to the previous ones after a natural pause, maintaining a seamless user experience.
Observed Behavior: After a pause, the transcription resets, clearing previously transcribed text.
Impact: This behavior makes the SFSpeechRecognizer API unreliable for scenarios requiring continuous speech recognition with intermittent pauses.
Additional Information:
iOS Version: 18.0
Device: [Specify your device, e.g., iPhone 13 Pro]
Speech Recognizer Locale: [Specify locale, e.g., en-US]
App Behavior: Issue persists in both Apple's demo app ('SpokenWord') and custom implementations.
I rarely use the Shortcuts app, so it took me a while to notice that my app's app intents all show incorrectly on macOS 15. On macOS 14 and 13, they used to show correctly, but now it seems that all localized strings show the key rather than the localized value.
@available(iOS 16.0, macOS 13.0, *)
struct MyAppIntent: AppIntent {
static let title = LocalizedStringResource("key1", comment: "")
static let description = IntentDescription(LocalizedStringResource("key2", comment: ""))
...
}
In Localizable.xcstrings file I have defined all the strings, for instance I have associated key1 with the value Title, but while the Shortcuts app used to display Title, it now displays key1.
Is this a known issue or did something change in macOS 15 that would require me to update something?
The Verify the behavior of your intent in Simulator or on-device documentation says that it's sufficient to build and run the app and open the Shortcuts app to test an app intent, but that doesn't seem to be the case. I always needed to at least move the debugged app to the Applications folder before the app intents showed up in Shortcuts, and even then, most of the times I also need to wait a lot or restart the Mac. When updating an existing app intent (for instance by changing its title), building the app, overwriting the existing one in the Applications folder and restarting Shortcuts is not sufficient to make the new title appear in Shortcuts.
Is there an efficient way to test app intents in the Shortcuts app? I already created FB15638502 one month ago but got no response.
I have a timer running on widget which was working completely fine till iOS 17. However, in iOS 18 it has stopped displaying
I have a timer displaying on widget which was working fine till iOS 17. However, it is not displayed in updated version. May someone provide the insight for this
I am developing a VOIP app which should also work in China region. I want to detect whether there are any other calls active or ended. This functionality is can be achieved using Callkit CXCallObserver. But CallKit cannot be used in China. So is there any other alternative way to achieve what CXCallObserver offers?
We found some Firebase crashes in QLPreviewController on iOS18.1 +.
It shows cash info in QLPreviewController that we haven't changed for some years.
Please help with this.
Thanks in advance.
// stack info from Firebase
Fatal Exception: NSInvalidArgumentException
*** -[NSURL URLByAppendingPathComponent:]: component, components, or pathExtension cannot be nil.
0
CoreFoundation
__exceptionPreprocess
1
libobjc.A.dylib
objc_exception_throw
2
Foundation
-[NSURL(NSURLPathUtilities) URLByAppendingPathComponent:]
3
QuickLookUICore
+[NSURL(_QL_Utilities) _QLTemporaryFileURLWithType:filename:]
4
QuickLookUICore
+[NSURL(_QL_Utilities) _QLTemporaryFileURLWithType:uuid:]
5
QuickLook
-[QLPreviewController(ScreenshotsSupport) screenshotService:generatePDFRepresentationWithCompletion:]
6
ScreenshotServices
__82+[SSScreenshotMetadataHarvester _grabPDFRepresentationForIdentifier:withCallback:]_block_invoke_3
7
libdispatch.dylib
_dispatch_call_block_and_release
8
libdispatch.dylib
_dispatch_client_callout
9
libdispatch.dylib
_dispatch_main_queue_drain
10
libdispatch.dylib
_dispatch_main_queue_callback_4CF
11
CoreFoundation
__CFRUNLOOP_IS_SERVICING_THE_MAIN_DISPATCH_QUEUE__
12
CoreFoundation
__CFRunLoopRun
13
CoreFoundation
CFRunLoopRunSpecific
14
GraphicsServices
GSEventRunModal
15
UIKitCore
-[UIApplication _run]
16
UIKitCore
UIApplicationMain
17
Glip
main.swift - Line 13
main + 13
The documentation for a text filter extension states that receiverISOCountryCode is a field the extension receives
https://developer.apple.com/documentation/sms_and_call_reporting/ilmessagefilterqueryrequest/3979257-receiverisocountrycode
"The ISO Country Code of the receiving phone number"
However, if the extension defers to its text server, then the payload sent to the server doesn't contain the iso country code:
POST /server-endpoint HTTP/1.1
Accept: */*
Content-Type: application/json; charset=utf-8
Content-Length: 148
{
"_version": 1,
"query": {
"sender": "14085550001",
"message": {
"text": "This is a message"
}
},
"app": {
"version": "1.1"
}
}
from: https://developer.apple.com/documentation/sms_and_call_reporting/ilmessagefilterextensioncontext/2880240-deferqueryrequesttonetwork
Why does the payload sent to the text server not contain the country code?
Hi,
I'd like to develop an app which runs speech recognition even after going into background. I know I can accomplish this using audio background mode and the process the audio but I am not sure if this workaround would get accepted into App Store because of the processing limitations while in the background.
How can I accomplish this while still being compliant with Apples privacy policy and other restrictions?
Thanks,
Marek