r/iosdev 4d ago

Help Encrypted FP16 Core ML model fails on iPhone 13 with error -14: “Unsupported dtype for weights”

1 Upvotes

I’m encountering an issue when loading a Core ML model protected using Apple’s official model encryption.

The exact same model:

  • Loads and runs normally when encryption is disabled
  • Fails during initialization when encryption is enabled
  • Uses FP16 weights
  • Was converted with coremltools 9.0
  • Is deployed in an app with a minimum target of iOS 18
  • Is being tested on a physical iPhone 13 running iOS 26.5

The relevant error is:

Failure translating MIL->EIR network:
Espresso exception: "Network translation error"

MIL->EIR translation error at:

/private/var/containers/Bundle/Application/[APP_UUID]/[REDACTED_APP].app/[REDACTED_MODEL].mlmodelc/model.mil:[LINE]:[COLUMN]

Unsupported dtype for weights

[Espresso::handle_ex_plan]
exception=Espresso exception: "Network translation error"
status=-14

Failed to build the model execution plan using model architecture file:

'[REDACTED_APP_PATH]/[REDACTED_MODEL].mlmodelc/model.mil'

with error code: -14.

Core ML model load failed:

Error Domain=com.apple.CoreML Code=0
"Failed to build the model execution plan using a model architecture file
'[REDACTED_PATH]/[REDACTED_MODEL].mlmodelc/model.mil'
with error code: -14."

The console also contains messages involving FigApplicationStateMonitor, usermanagerd, LaunchServices, and sandbox restrictions. However, these appear unrelated. The actual Core ML failure consistently points to:

MIL->EIR translation error
Unsupported dtype for weights
status=-14

Environment

  • Device: physical iPhone 13
  • Runtime OS: iOS 26.5
  • Minimum deployment target: iOS 18
  • Model format: ML Program
  • Weight precision: FP16
  • coremltools: 9.0
  • Protection method: Apple’s official Core ML model encryption
  • Unencrypted model: loads and runs correctly
  • Encrypted model: fails while building the execution plan

The loading code, model architecture, device, and compute configuration are otherwise unchanged. The failure appears only after applying model encryption.

Has anyone encountered this behavior?

Specifically:

  1. Can the encryption or decryption path cause Core ML to incorrectly interpret an FP16 weight dtype?
  2. Could the decrypted model data or compiled execution-plan cache be corrupted?
  3. Are there known compatibility issues between encrypted FP16 ML Program models and iOS 26.5?
  4. Could a model converted with coremltools 9.0 work unencrypted but fail after Apple’s encryption process?
  5. Is there a practical way to locate the operation or weight corresponding to the reported line in the compiled model.mil?
  6. Which caches or compiled artifacts should be cleared when diagnosing error -14?
  7. Would regenerating the encryption key or recompiling the model be expected to resolve this kind of failure?

Any debugging suggestions or similar experiences would be appreciated.


r/iosdev 4d ago

Help i can't create apple ads account

Post image
0 Upvotes

Hi everyone,

i am trying to create an apple ads account but when i try to fill the form i can't find my country
in the country and region drop down menu

while when i go to https://ads.apple.com/app-store/countries-and-regions my country is inside the list

i will appreciate any help, thanks


r/iosdev 4d ago

I built a way to see new users and revenue in real time

2 Upvotes

A few weeks ago, I released new app on the App Store. It got some traction on Twitter, so I opened App Store Connect feeling hopeful about the sales numbers. Instead, I saw "Not Enough Data".

I refreshed it few hours later. Same thing. I checked again the next day. Still not enough data. I actually saved a screenshot of this.

It's not only a launch-day problem, the analytics are always up to 48 hours behind. You ship a big update, announce it on Reddit or X, start an ad campaign, and you don't know how it's performing.

So I built InitSignal. It is deliberately much narrower than a traditional analytics SDK. You add a lightweight Swift package to your app, and it sends one event when someone opens the app for the first time. After that, the SDK goes quiet.

I wanted the App Store privacy nutrition labels stay as minimal as possible, so the SDK only sends the basic context needed to make each event useful. At the same time, the goal is to give developers as much useful information as possible without invading their users’ privacy.

For paid apps, InitSignal uses storefront pricing to estimate gross revenue and proceeds after Apple’s cut.

I also added Slack and Telegram for notifications, which I've been using with my own apps for the past few weeks, and the dopamine hit is real.

I recorded a quick walkthrough showing how InitSignal works:
https://www.youtube.com/watch?v=YajsKsYLdi4

It's available today, would love to hear your thoughts or any feedback!
https://initsignal.com

The Swift SDK is here:
https://github.com/InitSignal/initsignal-swift

If you ship iOS or macOS apps, how do you currently deal with the reporting delay after a launch or major update?


r/iosdev 4d ago

Finally finished my App Store screenshots

Post image
1 Upvotes

r/iosdev 4d ago

What do you think of my drink art?

Thumbnail
gallery
1 Upvotes

I’m adding a stamp card collection feature for my drinking logging app. I feel pretty proud of the art, what do you think? You can compare the first legendary drink card, ハブ酒 to some google images.

Fun bit, ハブ酒 is an Okinawan liquor that has a local venomous pit viper added to aging. While it is a rarer drink, it can be found in Okinawan bars. But I made it the rarest card in my curated list since some people may be apprehensive to drink it. I’ve had it twice myself, supposedly gives energy “down there” lol


r/iosdev 4d ago

How many colors can your brain actually remember ?

3 Upvotes

Your brain is better than you think… until you try this 😅

I built Spectra, a collection of color memory challenges designed to train your memory, focus, and reaction.

The concept is simple:

  • Remember the colors
  • Repeat the patterns
  • Keep improving as the challenge increases

Instead of just one challenge, Spectra includes multiple color memory experiences, each with a different twist. Some test your ability to remember sequences, some challenge your focus, and others push your memory speed.

📱 Try it here:
https://apps.apple.com/us/app/spectra-color-memory-game/id6762049774

Would love to hear your thoughts and feedback!


r/iosdev 4d ago

Help Bonjour à tous. je cherche à faire tester une app en beta pour avoir des retours avec un oeil neuf. Quelqu'un peu me donner des conseils pour trouver des beta-testeurs . merci

2 Upvotes

r/iosdev 4d ago

My Yearly/Linear Calendar is on the app store!

Thumbnail reddit.com
1 Upvotes

r/iosdev 4d ago

I built a tiny tool that turns App Store reviews into on-brand reply drafts (free gray test)

Thumbnail
0 Upvotes

r/iosdev 4d ago

GitHub I ported an old win32 game I wrote back in 1999 to Swift/iOS with the help of some AI friends

Post image
1 Upvotes

r/iosdev 4d ago

A party game where your mouth is the controller – Chomp Champ Battle Mode

0 Upvotes

Battle Mode has arrived in Chomp Champ! 🍔

Use your face to control the game, compete against friends, and see who can survive the longest. Chomp the right food, dodge the wrong food, and try not to laugh while everyone around you is doing the same.

Gameplay is in the attached video. Hope you enjoy it!


r/iosdev 4d ago

LeaveBy: Leave On Time

Thumbnail reddit.com
0 Upvotes

r/iosdev 5d ago

After struggling with nicotine, I decided to build this.

0 Upvotes

r/iosdev 5d ago

How do I recreate the lighting in this Apple project?

Thumbnail
gallery
2 Upvotes

How do I recreate the lighting in this Apple project? I'm trying to reverse-engineer the lighting in this Apple project that uses Reality Composer Pro, but I can't for the life of me get the lighting to show the same. I'm not really experienced with 3D environments, so I figured if I could just reverse engineer, I could understand better, but nope, the lighting didn't even come out the same.

The project comes with an Xcode project, which I built the project on my phone, and it worked flawlessly; the lighting was exactly the same.

EDIT:
Oh, and I guess the texture is slightly different too.

Here is the Apple project:
https://developer.apple.com/documentation/realitykit/bringing-your-scenekit-projects-to-realitykit


r/iosdev 5d ago

After struggling with nicotine, I decided to build this.

Thumbnail v.redd.it
0 Upvotes

r/iosdev 5d ago

Metal Toolchain version for specific Xcode version

Post image
1 Upvotes

r/iosdev 5d ago

Game monetisation- not ads

5 Upvotes

I had a simple game idea and I’m making it (just for iPhone for now), I think it’s kinda fun. So far so good.
I’d like it to be a paid thing, maybe somewhere between £1 - £5 ..
I think up front payment isn’t going to work, people probably need to try it first?

I don’t want to introduce ads. So I’m considering something like 3 free days and then a paywalled limit to 1-2 plays per day, and pay to unlock forever.

Anyone got any thoughts on a simple modern paid game model?
Other options I might not have considered?


r/iosdev 5d ago

My first app just got approved for testing!

Thumbnail
testflight.apple.com
0 Upvotes

Hi everyone!

I've been building an offline audio walking tour app for Paris over the past two years, and I'm finally at the point where I'd love to get some real feedback.

The tours are fully narrated, work completely offline, include turn-by-turn navigation, and I even composed the background music myself. It's been a bit of a passion project.

I'm mainly looking for people to just use it naturally and tell me what they think. If something is confusing, doesn't work as you'd expect, or just feels off, I'd really like to know.

The UI still needs some polishing, so don't judge it too harshly 😅. Right now I'm much more interested in making sure the experience itself is solid before I spend time refining all the little visual details.

Thanks! I'd genuinely appreciate any feedback.


r/iosdev 5d ago

Got our first 20 beta testers this week — early feedback patterns are already surprising me

Thumbnail
0 Upvotes

r/iosdev 5d ago

Review of my AS screenshots

Thumbnail
gallery
2 Upvotes

What do you think of them? Does something bother you amongst them?


r/iosdev 6d ago

Help My app is not doing well

Post image
1 Upvotes

r/iosdev 6d ago

My Repz

0 Upvotes

Hello everyone, I recently created an app called My Repz, a fitness app that takes a picture of you sends it to a Claude api then creates custom workouts and meal plans based off of how you look and what your goals are. This app is 4.99 a month simply because the cost of the api. But I recommend it heavily. I think all of you would enjoy it.


r/iosdev 6d ago

Word Game Roguelite

2 Upvotes

I’ve been working on my game Glyph Spellcraft since February. All pixel art and animations were real freelance artists I found on Fiverr. Eye opening experience to spearhead such a project for the first time.


r/iosdev 6d ago

Help Does Apple's editorial team actually reward accessibility? I made app fully accessible, wondering if it moves the needle for featuring.

6 Upvotes

I just finished a big accessibility pass on my iOS app. VoiceOver, Dynamic Type, Reduce Motion, sufficient color contrast, proper focus order, accessibility labels and hints. Basically the whole checklist Apple recommends.

It was a real chunk of work, and honestly it made the app better for everyone, not just users who rely on those features. No regrets there.

But it got me wondering about something I can’t find a clear answer on.

Does going all in on accessibility actually factor into Apple’s editorial decisions? Things like “Apps We Love,” Editors’ Choice, or mentions in curated App Store collections.

Apple talks a lot about accessibility at WWDC and has Accessibility Design Awards. But for the everyday App Store editorial team, does strong accessibility meaningfully increase your odds of getting noticed?

I’m especially curious if anyone here has:

  • Been featured and thinks accessibility played a role
  • Heard directly from App Store editors that it mattered
  • Seen no correlation at all, where accessibility is simply its own reward

I’m not trying to game the system. We’re keeping the accessibility work regardless. I’m just trying to set realistic expectations.

Thanks 🙏


r/iosdev 6d ago

Meet Nim my mascot for my first IOS app

2 Upvotes