In xr model mic not working after beta 18.4 update please check
Apple Developers
RSS for tagThis 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.
Selecting any option will automatically load the page
Post
Replies
Boosts
Views
Activity
I am trying to create a phone app that can receive incoming call notifications using CallKit, as described in Apple's CallKit documentation.
Added the com.apple.developer.calling-app entitlement in my .entitlements file. Implemented CXProvider and set up the delegate methods (provider:perform: and providerDidReset). Added UIBackgroundModes with voip in Info.plist. Configured CXProviderConfiguration to support phone numbers.
I expected to receive incoming call notifications when my app was set as the default calling app. However, I am not receiving any notifications when an incoming call arrives.
How can I properly detect and handle incoming calls in my default calling app? Is there any additional configuration required for iOS 18.2+?
Can iOS support Bluetooth trackpad?
Topic:
Community
SubTopic:
Apple Developers
Will the iOS 18.5 update fix bugs from 18.4.1 for iPhone 16 Pro users?
I recently wrote an article on getting gtk auto complete/syntax highlighting on macOS
its a genuinely fun hobby to make portable software, and this method will ultimately help in porting software to the macOS platform
a copy and paste:
before I continue, I want to mention that emacs auto completion, using company-mode, is rather slow when it comes to parsing a ton files, and in some configurations, especially recursively when it comes to parsing and displaying functions and macros, even when using the semantic auto complete system, but I do believe it speeds up when you initially parse and save to ctags or when you build a semanticdb, functions such as g_signal_connect() and macros such as G_APPLICATION however, did not work with company modes auto complete, but worked with flycheck on the fly syntax checking, using this method, and I haven’t had time to perfect an emacs configuration; maybe some time next week
you will need gtk installed from brew or ports, since gtk has trouble compiling from source on some Mac configurations. this method works with whatever version of gtk is reported by pkg-config –cflags (pkg-config --cflags gtk. you will also need pkg-config installed, multiple installations of gtk can be used and utilized
but the emacs plugins you’ll need are (and you’ll need to connect to Melpa using list-packages https://melpa.org/#/getting-started to have these automatically downloaded and configured):
company
company-c-headers
flycheck
flycheck-pkg-config
exec-path-from-shell (this allows x11emacs to read the shells configuration, may be option for terminal based emac uses)
optional: function-args-mode, but when fa-show-auto is used, it breaks themes in emacs
download all of them through M-x list-packages (which means pressing alt+x, macOS option+x, which should issue an input on the bottom of emacs, where the status bar is), after that, type list-packages or use auto completion, aka ctrl+tab to cycle through possible candidates
open a c file (C-f ~/test.c) (which is control+x, macOS control+x)
type in:
M-x semantic-mode
M-x semantic-customize-system-include-path
in semantic-customize-system-include-path, add the path to the gtk version you intend to develop for, in my case /opt/homebrew/Cellar/gtk4/4.16.12/include/gtk-4.0 using the text based interface; you should be able to use your mouse (click ins after where it says /usr/include. semantic is included in emacs. options are automatically saved at command)
M-x exec-path-from-shell-initialize
M-x flycheck-mode
M-x flycheck-pkg-config
in flycheck-pkg-config, press enter, and then type the name of the version of gtk that provides valid input from pkg-config (ie gtk4)
M-x global-company-mode
if you need to bind ctrl+tab to auto complete, you can add this to your config (~/.emacs.d/init.el)
(global-set-key (kbd “C-”) ‘company-semantic)
this will do most of the grunt work when plugins are installed (ctrl-tab shows a window to auto complete, ctrl+` (thats the key before 1, with shift it becomes ~) shows function argument. fa-show-auto automatically shows function prototypes, but can break emacs themes:
(require ‘package)
(add-to-list ‘package-archives ‘(“melpa” . “https://melpa.org/packages/”) t)
;; Comment/uncomment this line to enable MELPA Stable if desired. See package-archive-priorities
;; and package-pinned-packages. Most users will not need or want to do this.
;;(add-to-list ‘package-archives ‘(“melpa-stable” . “https://stable.melpa.org/packages/”) t)
(package-initialize)
(global-company-mode t)
(global-flycheck-mode t)
(semantic-mode t)
(function-args-mode)
(global-company-mode t)
(global-flycheck-mode t)
(semantic-mode t)
(function-args-mode)
(global-set-key (kbd “C-”) ‘company-semantic)
(global-set-key (kbd “C-`”) ‘fa-show)
if you need to compile from inside emacs, I would make a Makefile according to the gtk tutorial on gtk.org
I also have another article on getting Xcode to work with gtk, which is more reliable: https://unix-world.com/2025/01/25/getting-gtk4-to-work-in-xcode-with-auto-complete-and-syntax-highlighting/
website is unix-world.com and I welcome any and all traffic !
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.
Topic:
Community
SubTopic:
Apple Developers
i need help, i have a groupchat with friends, but it recently glitched and now i have 2 of the same one with half of the original conversation. i already tried leaving the duplicate and deleting the convo but it still reappears and it glitched back. i asked others in the chat if they’re experiencing the same issue and they are.
I download a demo from:https://applepaydemo.apple.com/wallet-extensions
And I run my WalletUIExtention,but it's failed.
This is some key in my info.plist
<key>NSExtensionMainStoryboard</key>
<string>MainInterface</string>
<key>NSExtensionPointIdentifier</key>
<string>com.apple.PassKit.issuer-provisioning.authorization</string>
<key>NSExtensionPrincipalClass</key>
<string>MyAUViewController</string>
But I found that deleting the key: NSExtendesionPrincipalClass or NSExtendeionMainStoryboard in the info.plist file can make it run.
Should I delete the key ? Whitch key ?
This is it alert:
This it's message:
2025-05-06 09:15:02.946890+0800 WalletUIExt[626:13530] Successfully load keyboard extensions
Line: 1 Col:1
2025-05-06 09:15:02.972702+0800 WalletUIExt[626:13597] [xpc.exceptions]<NSXPCConnection: 0x2830c30c0> connection from pid 584
on mach service named com.bank.app.WalletUIExt.viewservice: Exception caught during decoding of received
selector __connectToViewControllerFromRemoteViewController:replyHandler:, dropping incoming message.
Exception:<NSXPCDecoder: Qx12a82bc00> received a message or reply block that is not in the interface of the remote object
(__connectToViewControllerFromRemoteViewController:replyHandler:),
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
Topic:
Community
SubTopic:
Apple Developers
Installed update on Monday night and since then keep losing Network connection despite resettting Network connections and iphone.
Comes back for a short time after rsetting then is lost with nothing showing under Mobile Service.
Topic:
Community
SubTopic:
Apple Developers
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
Topic:
Community
SubTopic:
Apple Developers
Currently running 15.5 Beta 3 on a Mac Studio M4. I am unable to read/write to my Home folder from most of my applications. I receive an error basically saying I do not have access rights to the file/folder. If I go to the file directly and open it, it works. I have repaired disk permissions, checked the Sharing & Permissions settings via Get Info, and finally called Apple. Of course, since I am running the beta, the support was quite limited. I will add that I am also unable to open .dmgs that have been downloaded to my Downloads folder. I receive the "The disk image couldn’t be opened. The operation couldn’t be completed. Operation not permitted" error. If I copy the .dmg to another drive, I can open it from there.
Topic:
Community
SubTopic:
Apple Developers
I have encountered a problem that the Apple Watch cannot automatically continue playing the music in my playlist even if I have press the cycle button. It stops every song. And I used Apple Music. All these are performed without iPhone. But after restarted the watch, it works fine. I use S10 GPS watch with watch os 11.3.1. I never restarted the watch after I renewed the system. And i believe the problem have existed for more than one year as i saw a post describe the same problem on social media.
I have tried everything. Different addresses, different credit cards, then it appears pending, but the credit card is never charged and then it "resets", meaning I can do the whole process again as if nothing had happened. I have already sent an email to Apple and I have not had a response either. How can I move forward? Some help. Greetings!
i am using this code
public static bool CheckForForceUpdate()
{
try
{
Version latestVersion = new(GetLatestVersion());
Version currentVersion = new(AppInfo.VersionString);
if (latestVersion != null && currentVersion < latestVersion)
{
NSUserDefaults.StandardUserDefaults.SetBool(true, StorageKey.IsForceUpdate);
return true;
}
else
{
NSUserDefaults.StandardUserDefaults.SetBool(false, StorageKey.IsForceUpdate);
return false;
}
}
catch (Exception ex)
{
Console.WriteLine("CheckForForceUpdate....." + ex.Message);
return false;
}
}
public static string GetLatestVersion()
{
try
{
string appId = "1586153397"; // Replace with your App Store app ID
string url = $"https://itunes.apple.com/lookup?id={appId}";
using (HttpClient client = new HttpClient())
{
var response = client.GetStringAsync(url).GetAwaiter().GetResult();
var json = JObject.Parse(response);
var latestVersion = json["results"]?[0]?["version"]?.ToString();
return latestVersion;
}
}
catch (Exception ex)
{
Console.WriteLine("GetLatestVersion..." + ex.Message);
return null;
}
}
The value of latestVersion should 2.1 in my production app i am not able to get this
hence i am not able to achieve Force Update functionality
Topic:
Community
SubTopic:
Apple Developers
On my first attempt at adding iCloud to my existing app this is how far I've gotten. For reasons that I won't go into, the use case for my app does not need coordination. I have successfully made my app write a file to the Documents directory of iCloud and read back that same file without errors. In testing on a real iPhone 13 and iPhone 7 I have verified that my app can write a file to iCloud from the iPhone 7 and then read back that same file on the iPhone 13, so I know that the file truly exists in the cloud. But when I make my app on the iPhone 13 write to iCloud, my app on the iPhone 7 says the file does not exist. Exactly the same build of my app is running in both phones. This is problem #1. Problem #2 is that none of these files appear in the iCloud section of the Files app on either of these Phones, nor do they appear in the iCloud section of my Mac. All devices are signed in to my same Apple account in iCloud. Also my info.plist file in the app contains:
<key>NSUbiquitousContainers</key>
<dict>
<dict>
<key>iCloud.com.{my domain}.{my app}</key>
<dict>
<key>NSUbiquitousContainerIsDocumentScopePublic</key>
<true/>
<key>NSUbiquitousContainerSupportedFolderLevels</key>
<string>Any</string>
<key>NSUbiquitousContainerName</key>
<string>{my app}</string>
</dict>
</dict>
</dict>
<key>UIFileSharingEnabled</key><true/>
The iPhone 7 is running iOS 15.8.4 and the iPhone 13 is running iOS 18.3.2.
The code that does the writing to iCloud is:
NSFileManager *fman = [NSFileManager defaultManager];
NSURL *urlDrive = [fman URLForUbiquityContainerIdentifier: nil];
NSURL *urlDocs = [urlDrive URLByAppendingPathComponent:@"Documents"];
if(urlDocs.path == nil) {
NSLog(@"NULL path");
return; //..big problem
}
if( ! [fman fileExistsAtPath: urlDocs.path] ) { //..need to create the Docs directory
NSError *err00 = nil;
@try {
[fman createDirectoryAtURL: urlDocs withIntermediateDirectories:true
attributes:nil error:&err00];
NSLog(@"created the directory");
} @catch (NSException *except) {
NSLog(@"Exception creating directory %@", except);
}
} //..directory is now created
NSLog(@"url=%@", urlDocs);
NSURL *urlFile = [urlDocs URLByAppendingPathComponent:txtfname()];
NSData *fdata = [@"Hello world" dataUsingEncoding: NSUTF8StringEncoding];
NSLog(@"file url=%@", urlFile);
NSLog(@"file Data=%@", fdata);
NSError *errorReturn = nil;
Boolean ret = [fdata writeToURL: urlFile options: NSDataWritingAtomic error: &errorReturn];
NSLog(@"returned %1d, error=%@", ret?1:0, errorReturn);
And the code that does the reading is:
NSFileManager *fman = [NSFileManager defaultManager];
NSURL *urlDrive = [fman URLForUbiquityContainerIdentifier: nil];
NSURL *urlDocs = [urlDrive URLByAppendingPathComponent:@"Documents"];
NSLog(@"url=%@", urlDocs);
if(urlDocs.path == nil) {
NSLog(@"urlDocs.path is NULL!");
return; //..big problem
}
if( ! [fman fileExistsAtPath: urlDocs.path] ) { //..need to create the Docs directory
NSLog(@"It seems the urlDocs folder does not exist");
}
NSURL *urlFile = [urlDocs URLByAppendingPathComponent:txtfname()];
if([fman fileExistsAtPath: urlFile.path]) {
NSLog(@"file %@ exists", urlFile);
[fman copyItemAtURL: urlFile toURL:<#(nonnull NSURL *)#> error:<#(NSError *__autoreleasing _Nullable * _Nullable)#>];
} else {
NSLog(@"file %@ DOES NOT EXIST!", urlFile);
}
Hello,
I'm trying to publish my app, but I'm constantly getting rejected by Apple. They're telling me I'm having issues with tracking user data.
This item has been rejected for the following reasons:
5.1.2 Legal: Privacy - Data Use and Sharing
I've indicated that I don't use this data for ads, that it's only used for personalization and to understand who saves items.
I added the NSUserTrackingUsageDescription property to the info.plist.
I run AppTrackingTransparency.requestTrackingAuthorization() when the user logs into the app, displaying a warning message.
I'd say I meet all the requirements they've set for me, but they still haven't approved my app. What do you recommend? How can I speak to a physical person who can help me?
Thank you very much and best regards.
I am trying to open items saved to my files and keep receiving this notification every time I do so, “The operation couldn't be completed. (NSFileProvider-
ErrorDomain error -2005.)” What does this mean and how do I fix it? I have a 256 gb phone so I know storage is not an issue. Please help as I have files saved to my phone and not anywhere else.
Genmoji app is not working. It will not allow me to select myself. It will choose other people when I prompt with “me”. it will not allow me to add other people in my “photos” app to use in the genmoji app
Topic:
Community
SubTopic:
Apple Developers
i have a specific requirement as below.
i have apartments in which i have 4 units and each unit will be of same layout. furniture etc.. might change but not walls and layout as far as i know.
Step1:
Now i will enter into one unit, scan the entire unit and save it using RoomPlan Api and at the end of the scan i will be saving the worldmap as well.
Step2:
i want to use the previously saved worldmap and enter into another unit and want to relocalize with only walls because the furniture might be different.
is that possible. if not is there any otherway to achieve this functionality? i really appreciate you valuable time. Thankyou.