I would like to avoid the middle man and call Objective C directly from C
Currently I do this
This is called from a dispatch table in a pure C file
_ctx->mt_render_funcs.mtlEnd(_ctx);
Which calls this routine in a obj c file .m
void mtlEnd(MTRenderContext mt_ctx)
{
// Call the Objective-C method using Objective-C syntax
[(__bridge id) mt_ctx->mt_render_funcs.mtlObj mtlEnd];
}
Which ends up here... in ObjC
#pragma mark mtlEnd
(void)mtlEnd
{
// vertex buffer
size_t size;
size = sizeof(Vertex4ColorNormalTex) * _ctx->vert_eng.current_vertex;
[_currentRenderEncoder setVertexBytes:_ctx->vert_eng.vertices length: size atIndex: VertexInputIndexVertices];
[_currentRenderEncoder drawPrimitives:(MTLPrimitiveType)_ctx->vert_eng.prim_type
vertexStart:0
vertexCount:_ctx->vert_eng.current_vertex];
}
It would simplify this to get rid of one call and call ObjC directly.
The other idea is I want to use GCD and put a lock / unlock on the call from C to ensure thread safety so I can use GCD to dispatch a thread to do the ObjC routines.
I want to stick with C as the foundation so it can be used directly from C or a FFI interface from other languages. But Metal works well in ObjC and I would prefer to use that.
Thanks ahead of time.
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 develop and build the DeepSkyStacker application on an M4 Mac Mini. A user reports that with a given set of data files and application settings, that it crashes on his M4 MAX.
He sent me his data files, and I can't provoke a crash on my M4.
He also sent an App Crash report file which I attach.
Any insight into the likely cause of the problem will be appreciated (yes, I know it is a segfault in code called from Avx256Stacking::pixelPartitioning - probably a lambda ...).
dss-6.1.3-crash.log
Topic:
Community
SubTopic:
Apple Developers
We are experiencing an issue with ADCertificate auto-renewal on macOS devices enrolled via MDM.
Platform: macOS
CA: Microsoft AD CS
Payload Type: com.apple.ADCertificate.managed
Initial certificate enrollment works correctly
EnableAutoRenewal is set to true
Certificate does not renew automatically as it approaches expiry
We would like to confirm:
Are there any known issues with macOS ADCertificate managed payload auto-renewal, particularly with Microsoft AD CS environments?
Below is the exact payload configuration in use:
Thank you.
Hardware:
• Mac Studio (M1 Ultra)
• Apple Silicon
• Sufficient free disk space (~35GB+ available)
• SIP enabled
• 4 local Time Machine snapshots present
Current System:
• Already running macOS Tahoe beta
• Attempting upgrade to macOS Tahoe 26.4 Beta (Build 25E5207k)
Primary Issue:
Software Update downloads successfully, then moves to “Preparing…”.
It stalls at “About 5 minutes remaining” for ~10–15 minutes and fails with:
“Failed to prepare the software update. Please try again. An error occurred while downloading the selected updates.”
The error appears network-related, but download always completes.
Observed Behaviour:
• “Checking for Updates” completes in <3 minutes.
• softwareupdated and mobileassetd CPU usage <1%.
• softwareupdate --history shows no record of the failed beta install.
• No excessive system load or obvious disk pressure.
Steps Already Attempted:
1. Standard Software Update retries
• Multiple download/retry cycles from System Settings.
• Same Preparing failure every time.
2. Permissions / Disk Access
• Granted Terminal Full Disk Access.
• SIP remains enabled.
• Some system-protected locations still return “Operation not permitted”.
3. Cache / State Cleanup Attempts
• Removed /Library/Updates/*.
• Cleared temporary softwareupdate folders under /private/var/tmp.
• Attempted MobileAsset cache cleanup where permitted.
• Killed softwareupdated and mobileassetd processes (auto-restarted by launchd).
4. Beta Channel Reset
• Turned Beta Updates OFF in System Settings.
• Rebooted.
• Re-enabled Beta Updates.
• Forced catalog refresh via softwareupdate -l.
5. Snapshot Check
• tmutil listlocalsnapshots / shows only 4 snapshots (normal range).
6. Full Installer Workaround
softwareupdate --list-full-installers shows:
• macOS Tahoe Beta 26.4 (25E5207k)
• Tahoe 26.3 / 26.2 / 26.1
• Sequoia / Sonoma / Ventura / Monterey installers
Downloaded installer via:
softwareupdate –fetch-full-installer –full-installer-version 26.4
Installer downloaded correctly:
/Applications/Install macOS Tahoe Beta.app
7. startosinstall Method (Apple Silicon optimized)
Attempted install with:
sudo “/Applications/Install macOS Tahoe Beta.app/Contents/Resources/startosinstall”
–user
–agreetolicense
–nointeraction
–forcequitapps
–rebootdelay 30
–passprompt
Authorization succeeds, installer begins preparing, but installation still ultimately fails.
Additional Notes:
• CPU usage remains low during failure.
• No excessive snapshot count.
• Error messaging consistently references download/network even though download completes.
• Issue appears to occur during cryptex/asset preparation phase rather than initial download.
Question for Apple / other developers:
Has anyone else seen Tahoe 26.4 beta fail specifically during the Preparing phase on Apple Silicon (especially Ultra-class chips)? Looking for confirmation whether this is a known MobileAsset or cryptex staging issue, or if logs indicate a deeper APFS / volume-owner authorization problem.
I installed the latest build of Tahoe (25E5218f) yesterday on our test machine, an M1 Pro MacBook Pro and have been having a hard time getting my WiFi network to work. It's especially noticeable in Mail and Safari. Mail shows it can't connect to the designated server, and Safari simply can't connect to most sites. None of my other devices or computers are having problems, so I have to assume it's this last build that is the culprit. When I tether to my iPhone Air, everything pops back into place and I can access Mail and use Safari.
I've reported the problem with FBA, but wanted to know if anyone else is experiencing the same thing.
Has anyone been able to raise a ticket with the support team in the past 48 hours without getting an infinite loader or error on the page?
Topic:
Community
SubTopic:
Apple Developers
Leider ist bei der Beta 2 iOS 26.4 immer noch so das dass öffnen der App Store sehr langsam ist und teilweise sehr lange braucht bei suchen von Apps.
Topic:
Community
SubTopic:
Apple Developers
I installed the new 26.4 ios and now can't compose or reply to emails on the Gmail app. I tried restarting my phone and uninstalling and reinstalling the app, but nothing helps. How can I fix this?
Topic:
Community
SubTopic:
Apple Developers
Has anyone gotten Postgres to run in a sandboxed app? I am compiling Postgres 18 myself from source and have tried to patch it so it doesn't use sysv (shmem) but it apparently has all kinds of invocations of sysv and once it's sandboxed has issues, e.g.:
2026-02-24 18:26:05.014 EST [4384] FATAL: semctl(65596, 16, SETVAL, 536) failed: Operation not permitted
Does anyone know of a way to either make the sandbox relax or make Postgres compatible with sandboxing? I have tried passing flags to initdb to use POSIX semaphores but it always wants to use sysv so I'm finding myself super deep in the weeds of the Postgres source code.
Topic:
Community
SubTopic:
Apple Developers
Tags:
Developer Tools
Entitlements
Debugging
App Sandbox
Hi everyone, I’m considering integrating External Payments into my iOS app. I’ve done some research, but I’m finding it difficult to pinpoint the exact commission rates for different regions.
For those of you who have already implemented external payment links: Could you share what the actual fees paid to Apple look like in your specific Geos (e.g., US, EU, or others)? Does the total cost—including Apple's commission and the payment processor's fee (like Stripe)—end up being significantly lower than the standard 15-30% IAP?
Topic:
Community
SubTopic:
Apple Developers
Updated iOS to 26.4. Gmail folders have disappeared in Apple Mail. Can‘t transfer email messages to folders as consequence. Any ideas?
Topic:
Community
SubTopic:
Apple Developers
After updating to another beta of High Sierra, my internal hard drive became read-only somehow. I have a user home directory on that and many things have stopped working. I tried re-installing the OS, but it didn't help. I'm out of options by now. Anyone has ideas how can I fix that?
I am verifying my new account. However in my first log in it says my account is locked. When I try to get a new password, it is now showing a different phone number to verify that isn't mine.
Now I am stuck in the loop where I can't contact support as Apple doesn't share support email or phone number details unless you log in, so now I'm stuck in a loop.
Any help Apple Support, can you send me your email?
Topic:
Community
SubTopic:
Apple Developers
Is there any way to get the "uninstall" status to run code while uninstalling an app?
Topic:
Community
SubTopic:
Apple Developers
Hi everyone,
I’m having issues registering my own Apple Developer accounts in both China and the US.
For my China account, my Face ID is already in use by accounts registered under two companies, which prevents me from creating a new developer account.
For my US account, my device SSID and handheld ID documents were used, and Apple Support advised that I can only register using a US identity.
I’ve already contacted Apple Support, but the problem remains unresolved.
I’m looking for shared experiences or advice on how to handle this situation. Thank you in advance!
I recently updated my iphone 14 from IOS 26.4 public beta to 26.4 developer beta 1 and I have noticed that whenever I am connecting apple original charger along with original lightening cable, the phone is charging at a very slow speed and the lock screen shows “slow charger” prompt, I tried cleaning the cable connector and also made sure that the lightening port is clean still the issue persist.
Need Apple to solve this issue for multiple users like me which I have noticed on reddit with the same problem.
Topic:
Community
SubTopic:
Apple Developers
Hello all,
I have been using app limits for a while and I recently updated my iPhone to IOS26.2.1
I have set my limit as 1 hour and 30 minutes. However, the app is already locked on 20 minutes. This happens everyday.
Topic:
Community
SubTopic:
Apple Developers
Dear colleagues, when will you add the ability to manually adjust the display's color temperature? Everyone is familiar with the color rendering issue on the 17 series. Many complain about the display's yellowish tint. I'm one of those people, with a G9N panel, but I can't get whites right; there's a persistent yellow tint. TrueTone only solves this problem under cool, white lighting conditions. So, the display might work as intended, but how can I make it work consistently? If there were a way to manually adjust TrueTone, many users wouldn't be so upset when buying a new device, fearing the display would be yellow. I'd like users to be able to choose their preferred color, warm or cool, and have a scale to adjust it! This would solve the yellowish tint issue on 17 series displays! Thank you.
Hi all
Our App was rejected for being suspected Spam, copied from another entiy's App witht he following narrative:
"We noticed your app shares a similar binary, metadata, and/or concept as apps submitted to the App Store by other developers, with only minor differences. "
We explained this on the form, but the case is not being progressed, jsut ignored. Is there a good way forward to resolve this that is good for Apple as well.
Here is our response in the Form:
Dear App Review,
Thank you for flagging this point and we fully understand and appreciate your concern for protection of our App from being put to unauthorised use.
This App and has been developed solely for us and on our instruction and under our direction. As you have noticed, our developer submitted our App to your App Store years ago and it was available for several years from this account.
Then some months ago we decided with the developer to move it to our own account. And as you also noticed, some small changes to simplify the flow were made intentionally before we submitted our app.
Would you prefer that we resubmitted the App through the previous account of Osiel Lima, our valued friend and developer. Alternatively, we look forward to your positive advice on how to move forward.
Thank you for your support and co-operation.
Topic:
Community
SubTopic:
Apple Developers
With 26.4 beta 2 announce the time is no longer using the voice I have selected. I am using Australian English Siri 2, however it will speak using American English Samantha. I also have the system voice set the Australian English Siri 2 which is never honored. In fact, with that setting, Speak announcement never happens. Speak announcements has been broken since 26.0. There are several other issues with text to speach. Basically, TTS works for the most part if you use the default Samantha voice. Various things break when using other voices.
FB22035712 -- "Announce the time not using selected voice"
FB22035743 -- "Speak announcements only works if Samantha voice is selected."
I will note that FB20933185 -- "Siri voices break System voice UI" appears fixed in 26.4 beta 2, in that the UI is no longer broken with Siri voices, but now Siri voices aren't honored.
Topic:
Community
SubTopic:
Apple Developers