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

Activity

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
299
Feb ’25
No Apps appearing on home screen or in the App Library after download
Hello, i just noticed that when i download an app through the App Store on my iPhone, the app i downloaded does not appear on my home screen or in the App Library. is there any work around for me to make them appear at least in the App Library? the only way to open or to place an app on my home screen I downloaded after upgrading to iOS 18.4 Beta 3 is to search for it in Spotlight or in the App Store. Any apps I downloaded before upgrading to iOS 18.4 Beta 3 is still on my home screen or in the App Library. i am currently running iOS 18.4 Beta 3 on an iPhone 16 Pro
0
0
284
Mar ’25
Pages continues to crash
Process: Pages [24164] Path: /Applications/Pages.app/Contents/MacOS/Pages Identifier: com.apple.iWork.Pages Version: 14.3 (7042.0.76) Build Info: Pages-7042000076000000~4 (1A80s) App Item ID: 409201541 App External ID: 869633787 Code Type: ARM-64 (Native) Parent Process: launchd [1] User ID: 501 Date/Time: 2025-02-03 10:33:48.0108 -0500 OS Version: macOS 15.0 (24A5264n) Report Version: 12 Anonymous UUID: CADF4BC4-9940-34D7-7009-116B6231DC3E Sleep/Wake UUID: 74C42190-FF06-46AE-B3A5-A3EBD47E7F1F Time Awake Since Boot: 350000 seconds Time Since Wake: 720 seconds System Integrity Protection: enabled Crashed Thread: 0 Dispatch queue: com.apple.main-thread Exception Type: EXC_BAD_ACCESS (SIGSEGV) Exception Codes: KERN_INVALID_ADDRESS at 0x0000000000000000 Exception Codes: 0x0000000000000001, 0x0000000000000000 Termination Reason: Namespace SIGNAL, Code 11 Segmentation fault: 11 Terminating Process: exc handler [24164] VM Region Info: 0 is not in any region. Bytes before following region: 4336156672 REGION TYPE START - END [ VSIZE] PRT/MAX SHRMOD REGION DETAIL UNUSED SPACE AT START ---> __TEXT 102748000-1039a0000 [ 18.3M] r-x/r-x SM=COW /Applications/Pages.app/Contents/MacOS/Pages Model: Mac14,2, BootROM 11881.0.80.0.2, proc 8:4:4 processors, 8 GB, SMC Graphics: Apple M2, Apple M2, Built-In Display: Color LCD, 2560 x 1664 Retina, Main, MirrorOff, Online Memory Module: LPDDR5, Hynix AirPort: spairport_wireless_card_type_wifi (0x14E4, 0x4387), wl0: Apr 22 2024 07:25:15 version 20.10.1110.0.8.7.176 FWID 01-f2e48c5b IO80211_driverkit-1302.55 "IO80211_driverkit-1302.55" May 30 2024 20:56:50 AirPort: Bluetooth: Version (null), 0 services, 0 devices, 0 incoming serial ports Network Service: Wi-Fi, AirPort, en0 USB Device: USB31Bus USB Device: USB31Bus Thunderbolt Bus: MacBook Air, Apple Inc. Thunderbolt Bus: MacBook Air, Apple Inc.
1
0
248
Feb ’25
3rd party camera hardware with API
I hope questions about third party APIs are allowed. If not I guess a delete is in order. That said.... I am looking to do an app for dog owners, trainers and enterprises such as shelters & boarding, and a couple of features require access to one or more cameras in real time. So I have been looking for hardware that provides an API and coming up empty. So far as I can tell none of the major pet cam companies, like Furbo, Petcube or Eufy. Even security cameras like the TP-Link Tapo doesn't seem to. Am I just failing epically in my search formulation, or are all these companies playing the printer game and selling the camera cheap and making all their money in the monthly subscription to actually be able to use the hardware, and keeping that to themselves? And, can anyone recommend decent to good third party hardware that does provide a Swift API? Or am I better off just targeting the use of iPhone & iPad and Mac cameras? It's not ideal, but it's better than nothing.
0
0
397
Feb ’25
Passwords app stopped working with latest update?
I updated my Macbook Pro this week, macOS Sequoia 15.3.2 and now the Password app isn't working. When I log into my regularly saved sites, and I click user name, the Password app login modal pops up, but when I click it, NOTHING happens. If I manually type in my user name (which was unnecessary prior to the recent update), then SOMETIMES I get the fingerprint, but most times I don't. I am using the Chrome browser. I have attached a screenshot of the typical issue I experience.
1
0
328
Mar ’25
iOS 18.3 (22D5040d) Beta internet issues
I have been using US Cellular without any issues, and my previous device worked seamlessly with a stable connection. However, after updating to iOS 18.3 (22D5040d), I have been experiencing significant connectivity problems. In most locations, I have no internet access, and when I do, the speeds are extremely slow, typically around 2 Mbps at best.
2
0
733
Jan ’25
After connecting to a Passpoint network on macOS, the SSID field is displayed as empty.
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
0
0
193
Mar ’25
Battery Optimiser 18.4 beta 3
Since running 18.4 beta 3 my phone doesn’t stop charging at its pre determining % it’s set at 80% and until now has always held at that percentage but since installing beta 3 it’s gone to 100% and held at that when charging overnight anyone else experiencing this?
1
0
179
Mar ’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
157
Feb ’25
Developer Program Billing
Hi, I did get the renew invoice in email but there was an additional charge the same day / time for $6.19 from Apple , seems like it is related but cannot find any invoice in email or anything other than a charge line on the credit card. Does anyone have any idea what this additional charge might be? Still waiting to hear back from Apple.
0
0
239
Jan ’25
Issue Wifi Calling - with 5G and LTE - iOS Beta 18.4. 3rd beta and before
when I receive calls on my mobile number and I am connected to a Wifi, the calls is cancelled after the second ring and the caller receives a busy signal. That means I cannot receive calls anymore. This problems happens with different mobile providers and does not occur on my Samsung Galaxy Phone with the same number (eSim). Even when I disable WIFI Calling the problem persists, when I am connected to a WIFI. Only when I disable the WIFI Connect and I am only connected to the mobile carrier, the calls go throuhg in a normal way. VERY annoying and hast not been fixed with Beta 3 of iOS 18.4. Any clue how this can be solved with settings? Hope Apple fixes this very soon!
0
0
399
Mar ’25
CarPlay - Parking
Dear Developers, I'm exploring the feasibility of playing video content on CarPlay when the vehicle is in a parked state. Could you please provide guidance on whether this is supported and, if so, the best practices for implementation?
1
0
383
Jan ’25
Mac App Store Unable to Install or Purchase Any New Applications
Since macOS 15.4 Beta 2, my App Store has been unable to install or download any new applications; it can only download applications I have previously purchased. It appears as follows: when I click 'Get,' the system spins to load and then returns to the initial state. Upon checking system error reports, it seems there's an issue with AMSUIPaymentViewService_macOS [2113]. This problem persists despite changing credit cards or even removing all credit cards. macOS 15.4 Beta 3 has not fixed this error.
0
0
271
Mar ’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
805
Feb ’25
CarPlay music sound output from iPhone after enabled Enhanced Siri
With CarPlay communication plugin R18.1, I followed these steps to integrate Enhance siri, the music sound was output from carplay and there is no option for output to Car. ============================================ Enhanced Siri Declare supported audioFormats for the AuxIn and AuxOut streams Since the AuxIn and AuxOut streams for Siri do not have to be both active at the same time, the accessory must claim audio formats support for AuxIn Audio and AuxOut audio independently. The audio formats for each stream can differ from each other (48KHz for AuxOut and 16KHz for AuxIn). The new audio types represent these new streams - AuxIn/speechRecognition & AuxOut/speechRecognition. Check if connected device supports the feature AirPlayReceiverSessionHasFeatureEnhancedSiri() Claim support in the Setup Response message if device supports the feature Add kAirPlayKeyAccessoryEnabledFeature_EnhancedSiri key through the AirPlayReceiverServer delegate AirPlayReceiverServerCopyProperty_f function for the kAirPlayKey_AccessoryEnabledFeatures key. Helper function: CFArrayAppendValue() Add Enhanced Siri parameters dictionary in the INFO message Add dictionary through the AirPlayReceiverServer delegate AirPlayReceiverServerCopyProperty_f function for the kAirPlayKey_EnhancedSiriInfo key. kAirPlayKey_EnhancedSiriInfo dictionary parameters: Voice activation of Siri - kAirPlayKey_EnhancedSiriVoice Current language of voice model - kAirPlayKey_VoiceModelCurrentLanguage Supported languages of voice model - kAirPlayKey_VoiceModelSupportedLanguages Enhanced Button activation of Siri - kAirPlayKey_EnhancedSiriButton Supported zone(s) if any - kAirPlayKey_SupportedSiriTriggerZones Update AudioStream Get state of the AuxIn state by providing an implementation of AudioStreamUpdateState() - Off, local buffering, or streaming to device. Decouple input streams from output streams. AuxIn is an independent input stream only. The property kAudioStreamProperty_Direction will provide the necessary information if the stream is input, output or input & output. Provide a handler for the AirPlayReceiverSessionDelegate setEnhancedSiriParams_f This will provide additional information: Activation type Setting the language of the voice model Invoke the Communication Plugin to start buffering Once the activation type has been specified, the accessory can request the plugin to start buffering using AirPlayReceiverSessionAuxInStart(). Use the new APIs to trigger Siri: AirPlayReceiverSessionRequestSiriActionWithLatency() AirPlayReceiverSessionRequestSiriVoiceActivationWithLatency() AirPlayReceiverSessionRequestSiriVoiceActivationWithSample() Button presses and voice activations should use this new APIs which adds a timestamp of the activation. These APIs allow a choice of a latency or a sample for button and voice activations. If there is a delay between the user pressing the button to notifying the device on the button press, this latency value should represent this time. If the accessory can determine which zone activated, it can provide the zone with the request. Invoke the Communication Plugin to stop buffering You may need to invoke the plugin to stop buffering (AirPlayReceiverSessionAuxInStop()) if exclusive access to the microphone is necessary. Such instances may include but not limited to: Native voice recognition session Telephony Another stream function which uses the microphone starts modesChanged notification can be used to determine if a resource is being used Note, if the session ends, the plugin will automatically stop buffering
0
0
282
Mar ’25
Sandbox/Wallet/Apple Pay hacker
So this is a long shot. My apple device has been hacked. In March, my credit card, which is in apple pay, started to get used, until May. It was used for thousands of dollars. In July i discovered installed and generally “invisible” files in the files app. I’ve called All IPhone that was a contact file. when i started deleting everything from my phone, all messages and photos and accounts, it became obvious i was signed into the app store in a sandbox account i never signed up for or into. I believe this is one method by device as compromised through apple. does anyone have any ideas on if it would be possible for a hacker to use my apple pay through some scam developer who had initiated a testing agreement between myself and them?
1
0
480
Jan ’25
Apple Developer Account Terminated (No Email Notice) - Seeking Advice on Investigation & Appeal Process
Hi everyone, Our Apple Developer account (ID/Email: [*****]) was suddenly disabled, showing "Terminated" status in the backend, but we received no violation notice via email. Current issues: Context: Last operation before termination: "App submission" No warning emails or policy violation details received (checked spam folder) Attempted Solutions: Submitted appeal via Developer Support Page, no response yet Reviewed all apps against 《App Store Review Guidelines》, no obvious violations found Questions: Are there alternative ways to contact Apple support directly? What are common causes for such terminations (e.g., payment issues, account association risks)? Should we create a new account, or is reinstatement possible? Note: Sensitive details redacted. Will provide more info if needed. Thanks for any advice!
1
0
774
Mar ’25