Apple Developers

RSS for tag

This 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.

Learn More

Posts under Apple Developers subtopic

Post

Replies

Boosts

Views

Created

CarPlay Driving Task App Start/Stop NAvigation
Hi you all, I wrote an CarPlay Driving Task App that can start Navigation to a well defined target. This works as expected (navigation app is started to the destination), but sometime, for any important reason, my application receives updates about current destination. I should interrupt current navigation to current destination and update to the new destination. I'm not able to interrnupt/update. Have you any idea if this is possible? Thanls in advance!
1
0
332
Feb ’25
Sharing data between Targets via App groups but Userdefault Container is null
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.
4
0
327
Feb ’25
Crash Report
Crashed Thread: 0 Dispatch queue: com.apple.main-thread Exception Type: EXC_CRASH (SIGABRT) Exception Codes: 0x0000000000000000, 0x0000000000000000 Termination Reason: Namespace SIGNAL, Code 6 Abort trap: 6 Terminating Process: Microsoft Excel [1618] Application Specific Information: stack buffer overflow Thread 0 Crashed:: Dispatch queue: com.apple.main-thread 0 libsystem_kernel.dylib 0x19da2b720 __pthread_kill + 8 1 libsystem_pthread.dylib 0x19da63f70 pthread_kill + 288 2 libsystem_c.dylib 0x19d97099c __abort + 136 3 libsystem_c.dylib 0x19d961e74 __stack_chk_fail + 96 4 Microsoft Excel 0x106a89f88 0x104bdc000 + 32169864 5 Microsoft Excel 0x106a89b74 0x104bdc000 + 32168820 6 Microsoft Excel 0x106acc2fc 0x104bdc000 + 32441084 7 Microsoft Excel 0x106a98cc4 0x104bdc000 + 32230596 8 Microsoft Excel 0x106a97c04 0x104bdc000 + 32226308 9 Microsoft Excel 0x106a897f4 0x104bdc000 + 32167924 10 Microsoft Excel 0x106a8731c 0x104bdc000 + 32158492 11 Microsoft Excel 0x105d69ac8 0x104bdc000 + 18406088 12 Microsoft Excel 0x1061bea10 0x104bdc000 + 22948368 13 Microsoft Excel 0x104dbc1b4 0x104bdc000 + 1966516 14 Microsoft Excel 0x104d828a8 0x104bdc000 + 1730728 15 Microsoft Excel 0x104d80ff8 0x104bdc000 + 1724408 16 Microsoft Excel 0x104d809b4 0x104bdc000 + 1722804 17 Microsoft Excel 0x104d808e0 0x104bdc000 + 1722592 18 Foundation 0x19ed394e8 __NSFireDelayedPerform + 372 19 CoreFoundation 0x19db66384 CFRUNLOOP_IS_CALLING_OUT_TO_A_TIMER_CALLBACK_FUNCTION + 32 20 CoreFoundation 0x19db66028 __CFRunLoopDoTimer + 1012 21 CoreFoundation 0x19db65b38 __CFRunLoopDoTimers + 356 22 CoreFoundation 0x19db4b520 __CFRunLoopRun + 1856 23 CoreFoundation 0x19db4a724 CFRunLoopRunSpecific + 588 24 HIToolbox 0x1a90a2530 RunCurrentEventLoopInMode + 292 25 HIToolbox 0x1a90a8348 ReceiveNextEventCommon + 676 26 HIToolbox 0x1a90a8508 _BlockUntilNextEventMatchingListInModeWithFilter + 76 27 AppKit 0x1a16b5034 _DPSNextEvent + 660 28 AppKit 0x1a20192d4 -[NSApplication(NSEventRouting) _nextEventMatchingEventMask:untilDate:inMode:dequeue:] + 688 29 AppKit 0x1a16a8060 -[NSApplication run] + 480 30 AppKit 0x1a167e854 NSApplicationMain + 888 31 dyld 0x19d6e4274 start + 2840 Thread 1: 0 libsystem_kernel.dylib 0x19da22f54 mach_msg2_trap + 8 1 libsystem_kernel.dylib 0x19da35604 mach_msg2_internal + 80 2 libsystem_kernel.dylib 0x19da2baf8 mach_msg_overwrite + 480 3 libsystem_kernel.dylib 0x19da2329c mach_msg + 24 4 merp 0x108eb7f74 0x108eb4000 + 16244 5 libsys
2
0
171
Feb ’25
Swift Form on iOS
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 } }
4
0
252
Feb ’25
Problem with deleting the MinimaList app
A question from an ordinary user for developers: The essence of the problem: I installed the To Do List by MinimaList app on both my MacBook and iPhone. After installing it, I decided not to use it and deleted the application. https://apps.apple.com/us/app/minimalist-to-do-list-widget/id993066159 However, it turned out that not everything was removed. Specifically: • In the “Allow Others to Find Me” section on both my MacBook and iPhone, these apps still appear. No matter what I do—whether I delete or clear them—they continue to be displayed there. • This app continues to appear in the section located at: Settings → Apple ID → iCloud → Stored in iCloud → See All → Allow Finding Me – To Do List and one more item. • It cannot be deleted. • It won’t delete on my MacBook, and it won’t delete on my iPhone. • It also appeared in iCloud itself under the Email Search section. P.S. The official Apple support (without violating any internal regulations) advised me to post on the forum to get in touch with Apple developers. In hope, I am posting this question here.
0
0
243
Feb ’25
rebot when i close the lid@mac air 2024#M2 chipset#Version 15.2 Beta (24C5073e)
I have been experiencing an issue with my MacBook Air 2024 model that is equipped with the latest M3 chip. After upgrading to the beta version of the operating system, I've noticed that when I close the lid to put the laptop to sleep, and then open it to wake it up, the system unexpectedly restarts instead of resuming from where it left off. This behavior is not only inconvenient but also raises concerns about potential data loss or corruption during the unexpected restarts. I understand that beta versions can have bugs, but I was hoping to receive some guidance on whether this is a known issue or if there are any steps I can take to troubleshoot and resolve this problem. Any assistance or insights into this matter would be greatly appreciated.
2
0
424
Feb ’25
Geofencing Event Not Triggering When App is Killed and Not Opened After 2-3 Days
Hello, I’m facing an issue with geofencing events in my app. When the app is killed and not opened for 2–3 days, the geofencing event is not triggering when I re-enter the geofenced area. I’ve made sure that all necessary permissions (location, background refresh, etc.) are properly set in the app settings. Has anyone else experienced this? Is there a solution or workaround to ensure that geofencing works as expected even after the app has been killed for several days? Any help or insight would be greatly appreciated! Thanks in advance!
3
0
204
Feb ’25
Sidecar between macbook and ipad not connecting
Hi, I have a Retina 13 inch 2020 macbook air and an iPad 7. My macbook is updated to macOS sonoma and my iPad is updated to iPadOS 18.3. I want to use the sidecar feature on my mac and project the macbook display onto my iPad. I remember it working around a year ago when I used this feature before, but now it's telling me I have issues connecting due to my iPad's WiFi being 'unavailable.' However, my iPad isn't connecting to hot-spot, my mac isn't sharing the internet connection, they're linked to the same apple ID account, and they're on the same WiFi network. I've tried connecting both wirelessly and wired (and trusted the computer) but no matter how much I troubleshoot it, it won't connect. I'd be really grateful if somebody could help me fix this. Thanks :D
1
0
161
Feb ’25
Downgrade 15 ProMax
Hello, dear forum members! I have a serious (for me personally) question for you. I have a personal iphone 15 pro max, updated to the latest 18.3. There are many bugs and glitches in my work applications. I ask you for help. I need to find (or generate) a signature for ipsw iOS 17.5/6/7 to flash my phone. I don't want to get rid of it, sell it, etc.
1
0
212
Feb ’25
A wired keyboard connected via a hub cannot wake up the iPad on iOS version after 18.0
Problem Description: On the iPad 10th tablet, when a USB 2.0 interface extended by a Type - C interface through a USB 2.0 hub is used to connect a keyboard, there is an issue that the keyboard cannot wake up the system when the system version is 18.0 (inclusive) or higher. However, this problem does not occur on systems earlier than 18.0. Note: To ensure low power consumption of the product, if there is no key press on the keyboard for 10 minutes, the power supply of some functions of the hub will be cut off, but the power supply of the keyboard will remain on. When a key is pressed, the power supply of all functions of the hub will be reconnected.
1
0
110
Feb ’25
The proximity sensor works abnormal in some devices.
Steps to Reproduce make an outbound call cover the sensor Actual Behavior the screen won't go dark device iOS Result iphone15 17 Pass iphone14p 18.0.1 Pass iphoneXs_pro max 18.1.1 Pass iphone13pro max 18.2.1 Pass iphone16pro 18.2 Fail iphone15pro max 18.3 Fail iphone12 pro max 18.3 Fail ps: Skype has the same probelm Seems like this issue only happens on iOS18.2+ on some devices, so is there a bug for this?
3
0
363
Feb ’25
Firebase Notification Fails to Dismiss Voip CallKit UI in Background & Terminated Mode
Hi everyone, I am developing a VoIP calling feature in my Flutter app, using: Agora RTC Engine for real-time calls. CallKit & PushKit (VoIP notifications) for iOS call handling. Firebase Cloud Messaging (FCM) for notifications. Problem: CallKit UI Stays on Screen When Caller Hangs Up (Background/Terminated) I am using Firebase notifications to notify the receiver that the call should be dismissed, but it doesn’t work in the following cases: App is in the background – CallKit UI remains stuck even after receiving the Firebase notification. App is terminated – The Firebase notification does not trigger any background execution, so CallKit UI stays forever. Current Implementation I send an FCM notification to inform the receiver to dismiss CallKit UI. When received in the foreground, it works fine (callEnded method is triggered). But in background or terminated state, the notification is not received or doesn’t execute the code.
1
0
384
Feb ’25
diskutil "eraseDisk" on disk0 using terminal
Hi Apple Team & Everyone, Can someone guide me why sending 'diskutil eraseDisk APFS "WIPED" GPT /dev/disk0' command via terminal to remove/wipe the main physical drive (disk0) is failed? I tried booting into recovery mode, but it still didn’t work. The command returned the following error: Started erase on disk0 Unmounting disk The volume on disk0 couldn't be unmounted because it is in use by process 0 (kernel). Error: -69877: Couldn't open device I understand that we can use Disk Utility (GUI) to unmount and erase the drive. Is it possible to perform this operation via Terminal to erase disk0? I would appreciate any guidance on this. Regards, Winson
2
0
827
Feb ’25
Appleインビテーションで招待された人の条件は?
説明ではApple Accountが無くても回答可能とあるが、招待された画面を開きメールアドレスを入力するとApple acountのパスワードを入れるか、新規にacountを作成する画面になる。 Apple Accountが無い人は何も出来ないのか?それともあのパスワード欄は新規にパスワード登録するためのもの? また、招待を送ったメールアドレスとApple acountのメールアドレスが違う場合はどうなるのだろう? 誰か試した人いますか?
0
0
181
Feb ’25
MY BATTERY HEALTH IS CONCERNING
im for real tweaking out. my battery health is at 86 with only 1 year of usage (i bought my phone on feb 8 2024) IM FOR REAL concerned cuz every 3days my battery health would drop by 1% WHAT SHOULD I DO NOW? DO I UPDATE TO THE LATEST IOS SOFTWARE CUZ IM STILL AT 17.4
1
0
376
Feb ’25
chase app not working on Iphone iOS18.3
Hi! can someone please help me? the chase app will not work nor can I access it in the browser. I have tried literally everything - restarting my phone, deleting the app and reinstalling, resetting network settings, resetting all settings, clearing caches on all browsers. Everything is up to date. apps and my OS. nothing. I don’t want to wipe my phone by doing a factory reset. I called chase and they said it was a known issue and they’re working on a solution and that it would be resolved that day. this was 3 days ago. Is anyone else experiencing this issue?? What caused it and what is a solution?
1
0
271
Feb ’25
Recently used emoticons
Why can’t Apple just release a version that put the most frequent used emoticons in the most left side of the emoticons keyboard??? Each person always uses the same 20 or 30 emoticons. How this could be reported to developers? Thx
2
0
142
Feb ’25