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

Getting GTK auto complete/syntax highlighting to work on emacs on macOS
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 !
0
0
313
Feb ’25
Enrollment Delay – Waiting 2.5 Months with No Update
Hello, I’m reaching out here because I have exhausted all other support channels without success. I submitted an enrollment request for the Apple Developer Program on March 3, 2025 (Enrollment ID: 3CJFXN3AA3), and it’s now been over 2.5 months with no resolution. All required documents have been submitted, confirmed received by Apple Support, and multiple follow-ups have been made (Case #102541675488). Each time, I’m told that the case is still under review, but I haven’t received any clear update or timeline. Is there anything else I can do to move this process forward? Is there a better way to escalate or contact someone who can help finalize the review? Any advice or help from the community or Apple team would be greatly appreciated. Thank you, Daniyar
0
0
64
May ’25
NFC iOS 18.0 slow
Why NFC tags shown speed is slower than iOS 16.0? After paying with Apple Wallet with iOS 18.0, it seems that it could only detect the NFC tags after 5s, it is the particularity of the iOS 18.0? How can it be quick as former version?
0
0
289
Jan ’25
An idea for a photographic app
Hello, I created a particular ray tracing based photo/video capture app for iPhone (which causes me several headaches in finding the optimal configuration) that which often offers very soft and visually beautiful shots but is trapped in the usual oblivion of apps from unknown developers. While it is true that on the one hand the fact that almost no one downloads your app even if it is free can save you from several gaffes in the early days, in the long run it becomes depressing. So I thought of creating something that could be an incentive to try the app. Not having money to invest in prizes for contests or much more pragmatically in advertising, I thought of adding a function where you can see the best photos taken in your area and vote for them and, if you want, add a photo taken in the competition. Do you think it could be a nice idea? It's true that the problem itself is to overcome the wall of 0 downloads, where your app is neither successful nor unsuccessful because in fact nobody tries it, but without money for advertising I don't have many other ideas... Thanks
0
0
83
May ’25
TVOS - App Data Stored in Shared App Groups not removing after deletion of apps
Hi, Having a weird issue that I’m noticing on Apple TVs with some apps that are by the same company. I think it’s storing residual user data if if you delete the app and all other apps relating to this. I have even tried deleting every app and reinstalling but we found two apps to be still logged in. Seams like a sandboxing bug and I presume it’s to do with App data stored in the shared app groups. I can only reset the apple tv to remove the user data. The two apps we can see are being persistent is Binge and Kayo by streamotion. We have tried problem solving this in every way imaginable but it’s Interesting that this is allowed to happen on an Apple platform. There is no active user logged into the apple TV with an Apple ID either
0
0
57
Apr ’25
Subscribed Calendar Issue
I'm running into issues with iOS respecting the HTTP 410 "Gone" response type. Setup: Using the native iOS Calendar app, add a new subscription calendar. "Add Subscription Calendar" Add the URL of a ICS calendar subscription that you control, e.g. https://mywebsite.com/userfeeds/23/cal.ics Make sure to select the "Account" option and choose "On My iPhone/iPad". Set the query amount to 15 mins. Calendar events show as expected, device queries the latest updates from the server every 15 minutes. Server returns HTTP 200 with the .ics contents. Now, assume there is a need for the feed to end - maybe the user unsubscribed to mywebsite.com. There is currently no way for the mywebsite.com server / response to tell the device the feed has ended and it should stop requesting. If the user forgets to go to calendar and manually unsubscribe the device will continually ping the server every 15 minutes indefinitely. It's turning into a virtual DoS for my platform. iOS should respect the HTTP 410 "Gone" header or something similar. If the server returns a HTTP 410 response code for https://mywebsite.com/userfeeds/23/cal.ics X amount of times, the feed should be automatically removed. I've opened several tickets over the last 3 years and have not even had a status change on the tickets. Does anyone know how to resolve this or a work around?
0
0
85
Apr ’25
Is It Possible to Restore Previous Browser State After openURL on iOS?
Hi Everyone, I’m currently working on a flow where a web page redirects to our app to perform certain actions, and then returns the user back to the browser. However, on iOS, the only way to go back to the browser is by using the openURL method. The issue is that this method can only open the browser app itself—it can’t control which tab or page is shown, so the user doesn’t return to the original tab they came from. The same limitation also applies to Android. Furthermore, iOS doesn’t allow an app to programmatically return to the previous app (in this case, the browser). While Android doesn’t have an official way either, in some cases, the OS automatically returns to the previous app when ours is closed. I’d like to ask: Is there any known method or workaround that allows returning from my app back to Safari (or the default browser) and restoring the previously active web page or tab? Or, is there any way to programmatically return to the previous app from within my app? Thanks in advance for your support!
0
0
119
Apr ’25
Unexpected high mobile data usage when travelling in Europe using an ESIM on iPhone 16 Pro Max
The iPhone mobile data usage skyrocketed to use 1GB per day whereas I am normally a 5GB a month data user. the culprit was Apple System Services General there is currently no iPhone functionality to turn off System Services Genera. the solution was to block updates.cdn-apple.com using data sniffer called Proxyman. Tip hat to the person who posted “High mobile data usage on iOS 18 and how to solve it” on Reddit.com This is something apple developers maybe should look at
0
0
36
Jun ’25
How to Keep Live Activity in Expanded Dynamic Island State (ActivityKit, iOS 17+)
I'm building a Live Activity using ActivityKit in iOS, and I'm trying to understand how apps like Uber or Lyft manage to keep the Dynamic Island always in its expanded state, without transitioning through the compact phase. In my implementation, the Live Activity always starts in the compact state, and only expands temporarily when I interact with it. I've tried the following: Updating the ContentState frequently using activity.update(using:) I tried updating the activity every 1 second, but it didn’t make a difference. Leaving the compactLeading, compactTrailing, and minimal regions empty using EmptyView() — also didn’t change the behavior. Delaying the initial update by 1 second — no effect. What I'm trying to figure out: Is there any way to programmatically force or request the Dynamic Island to stay in the expanded state? Could this behavior be achieved through push updates, using apns-push-type: liveactivity and a high priority (apns-priority)? What I’m trying to achieve is similar to the behavior shown in the images below — the apps do not transition to the compact island, but instead displays the expanded view immediately. Example:
0
0
70
Apr ’25
A payment platform that enable user in west Africa to be able to credit their Apple account.
My team and I are currently working on an app, that enable user especially in Nigeria who are having issues with crediting thier Apple account in other to carry out some transactions such as Apple Music subscription and co. This project wI’ll grant user easy access. We are currently seeking assist and API Support
0
0
74
Apr ’25
iOS 18.3 (22D5040d) issues with unexpected shut downs and heavy battery drain
its crazy on my iphone 11 pro max . all of a sudden my battery is not recognized down to 1% keeps crashing cant open any apps keep rebooting absolutely the worse . after all this am finally gonna have to leave the apple echo system. apple seams to be a huge failure at the time. any one ger tips on this cause am heading to downgrade possible 18.2 cause all that issue did not exist till 18.3 beta
0
0
894
Jan ’25
App Latest version from the App Store
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
0
0
62
Apr ’25
Apple Developer Enrollment
Hello, I am trying to enroll to apple developer program as solo developer. While trying to enroll via app my passport and drivers license are not validated. When trying to enroll via web, I fill in the details and try to make the payment, but payment itself is not deducted from my bank account. I receive email that payment is being processed, but nothing further happens.
0
0
145
Feb ’25
18.5 beta 22F5042g April 2, 2025
18.5 beta 22F5042g April 2, 2025 this last updates i did have troubles with my wi~fi connections.I dont know if it is only me who experienced this problem.Let us share and wait to see the perfomance of the new beta firmware updates.
0
0
86
Apr ’25
Beta Channel Setting Prevents Ventura Security Updates on Older Macs
I discovered an issue where older Intel Macs (like my 2017 MacBook) enrolled in the macOS Sequoia Public Beta do not receive Ventura security updates, even though Sequoia is not compatible with the hardware. My system said “macOS is up to date” while stuck on Ventura 13.7.1, but after switching to the Ventura Public Beta channel, it immediately showed a new update available. This seems like a serious flaw—Apple should warn users or fall back to compatible OS versions when an enrolled beta is unsupported. Has anyone else experienced this? Could be a widespread issue for Intel Mac users still relying on Ventura.
0
0
62
Mar ’25