Google Play rejections at least come with a policy name. Apple's build validation just says no.
A few weeks back we were pushing a client's app update to the App Store. The code was tested, the build compiled clean, everything green. Then we hit upload, and App Store Connect threw a validation error about an invalid bundle โ a framework inside the app was built for the iOS Simulator, not for real devices.
The confusing part? We had not added any such framework. The file it was complaining about was something called objective_c.framework, buried deep inside the build output. Nobody on the team had ever typed that name.
What was actually happening
Here is the simple version, no jargon.
When you develop an iOS app, you run it two ways: on the Simulator on your Mac while building, and on real iPhones for testing and release. These are technically different targets. Some code gets compiled for the Simulator, some for actual devices.
Apple's rule is strict: the final build you upload must contain only device code. If even one leftover Simulator-built file sneaks into the archive, the whole upload gets rejected. Apple does not remove it for you. It just refuses the bundle.
In our case, a dependency in the project โ not our code, a package the project pulled in โ was shipping a framework that got copied into the final archive from its Simulator build instead of the device build. The build system happily packaged it, everything compiled, and the problem only surfaced at Apple's gate.
This is a whole category of iOS pain: the error appears at the last step, and the cause is three layers below your own code.
How we found the culprit
You cannot fix what you cannot see, so step one was opening the archive itself. An .ipa file is just a zip. Rename, extract, and look inside the Frameworks folder.
There it was โ objective_c.framework, sitting where it had no business being in a release build.
Then we checked which architectures the file was built for, using the lipo tool that ships with Xcode. Device frameworks should show arm64. This one showed a simulator slice. Confirmed: this exact file was the reason Apple said no.
The fix, step by step
1. Find who brings the file in. We searched the project's dependency folders for the framework name. It came from a transitive package โ a package used by a package we used. This matters, because the fix belongs in the build process, not in the code.
2. Add a build phase that strips simulator slices. Xcode lets you add a small script that runs after the app is built. Ours goes through every framework in the final app and removes any slice that is not meant for real devices. This is a well-known pattern in iOS projects that use third-party frameworks โ most senior iOS developers keep a version of this script handy.
3. For files that should not ship at all, we excluded the phantom framework from the archive entirely with a build rule, since the release build never actually needed it.
4. Clean, archive again, validate before upload. Xcode has a Validate App button that runs Apple's checks locally, before you spend twenty minutes uploading. Use it every time. It would have caught this at step one.
Re-uploaded. Accepted. The update went live the next day.
The lesson we actually took from this
The bug was not interesting. The process gap was.
We now run archive validation as a fixed step in our release checklist for every iOS project, the same way we run a policy self-check before every Play Store submission after Google Play rejected one of our AI apps last month. Store problems are cheapest to catch on your own machine and most expensive to discover after a client is waiting on a release date.
A release checklist sounds boring until you count what one failed upload costs: a missed launch date, an awkward client call, and a developer evening spent bisecting build logs. Ten minutes of validation buys all of that back, on every single release.
Store gatekeeping is a theme we keep writing about, because it keeps costing founders real launch dates. The Android side has its own traps โ like the user-content policy that got a client's app flagged the same month. Different store, same lesson: the rules are knowable in advance, and reading them only after a rejection is the most expensive possible order.
If your app upload is stuck on a validation error right now and the message means nothing to you, this is bread and butter for our mobile app team. Send the exact error text on WhatsApp โ half the time we can tell you the cause from the error alone, before any call.
