Why your own iPhone app closes right after you open it
An app you made opens and closes at once, or will not open at all. The usual causes, how to tell them apart on the iPhone, and the fix for each one.

By Sigsten Gustavii· · 9 min read
Build your own receipt tracker with Borel
Build this appWhen an app you made closes the moment you open it, it is easy to assume the app is broken. Often it is not. An app you installed yourself has a few reasons to stop that App Store apps do not have, and most of them are fixed in a minute without changing the app at all. This guide sorts the causes by what you see on the iPhone, so you can tell which one you have, and covers what to do when it really is the app.
| What you see | Likely cause | Fix |
|---|---|---|
| It flashes and closes, a week or so after you installed it | The 7-day signature ran out | Install again from Borel, or open Companion |
| A message about an untrusted developer | Your Apple ID is not allowed yet | Settings, General, VPN & Device Management |
| Unable to Verify App | The iPhone could not check the app online | Go online, then Verify App in Settings |
| It will not open since you turned Developer Mode off | Developer Mode is off | Turn it back on and restart |
| It closes when you tap one button | A bug in that part, often camera or location | Tell Borel what you tapped |
| It closes on opening, right after a new version | A bug in the new version | Tell Borel; it builds a fix |
Cause 1: the 7 days ran out
This is the most common one by far. Every app on an iPhone is signed, and an app signed with a free Apple ID gets a provisioning profile that lasts a week. Apple's membership comparison says such profiles “will expire 7 days from issuance” and that you then need to reinstall the app.
The icon stays on your Home Screen when that happens, which is what makes it confusing. The app flashes and closes, or iOS says it is no longer available. Our post on why your app stops after 7 days has the whole story.
How to tell: count the days since you last installed or updated it. The Borel app on your iPhone lists each of your apps with how long it has left.
The fix: press Install again in Borel, and Companion signs the app for a fresh 7 days. Better still, leave Borel Companion running on your computer: it signs each app again when it has less than 2 days left, so it never gets this far. If the computer was off for a week, open Companion with the iPhone on the same Wi-Fi and it catches up. Installing again goes over the old copy as the same app, so the app's data stays.
Cause 2: a message instead of the app
If iOS shows a message rather than flashing the app away, the app is fine and the iPhone wants a decision from you. There are three messages, each with a guide of its own.
- Untrusted Developer. The iPhone asks you to allow apps from your Apple ID once. Open Settings, General, VPN & Device Management, tap your Apple ID under Developer App, then Trust. See how to trust your own app.
- Unable to Verify App. The iPhone needs the internet to check the app's signature. Put it on Wi-Fi or mobile data, then tap Verify App in the same Settings screen. See Unable to Verify App.
- Developer Mode. Apps you install yourself are what Apple calls development-signed software, and they only run with Developer Mode on. Apple says that after you turn it off, “you can't run apps from Xcode on the device until you turn on Developer Mode again”, and the same goes for your own installs. Turn it back on in Settings, Privacy & Security, Developer Mode, and let the iPhone restart. See Developer Mode on iPhone.
Cause 3: a bug in the app
If none of the above fits, and the app opens, perhaps shows a screen, and then closes, the app itself has stopped. iOS calls this an app that closes unexpectedly. It is a bug, and it is the one cause you fix by changing the app.
A useful thing to notice is when it happens:
- Every time, the instant it opens. Something in the app's start-up fails on your iPhone. If it began with a new version, that version is the place to look.
- When you tap one particular button. The part of the app behind that button fails, and the rest of the app is fine.
- After a while, with lots of photos or a long list. The app may be using more memory than the iPhone allows. Apple names these crashes JetsamEvent in the iPhone's logs.
Why the browser's iPhone did not catch it
Borel tries to stop crashes before they reach you. Every build that compiles is opened on an iOS Simulator on Borel's Mac and watched for a few seconds; if it stops as it opens, the AI works on the fix and Borel builds again before you see it. So an app that closes the instant it opens on your iPhone, but not in the browser, is usually closing because of something only the real iPhone has.
The live iPhone in your browser is Apple's Simulator, and it cannot do everything a phone does. When your app uses something it cannot run, Borel shows a small pill above the preview, such as 2 things to try on your iPhone, and lists them: the camera, the microphone, sound, NFC, notifications, Face ID, payments, Bluetooth, motion and steps, Health and location. Those are the parts no simulator check could try, so a crash that only happens on the phone is often in one of them. Try each on the iPhone soon after a new version lands.
One classic cause is handled for you. Apple's page on requesting access to protected resources says that without a valid purpose string, the sentence iOS shows when it asks for permission, “attempts to access the resource fail, and might cause your app to crash.” Borel adds the purpose string for each protected feature the app's code uses, such as the camera or location, every time it builds the app.
How to get the bug fixed
You do not need to read code or logs. Tell Borel in the app's chat what happened, in your own words. Three details help most:
- What you tapped just before it closed, or that it closes as soon as it opens.
- Whether it happens every time, or only sometimes.
- What changed, if it began after a new version: the change you asked for.
The app closes every time I tap Scan receipt on the Expenses screen, on my iPhone. It worked before I asked for the photo picker. Opening the app and the other screens still work.Borel changes the app and builds it again, with the same simulator check. The fixed version then goes to your iPhone over Wi-Fi: by itself while Companion is open, or when you press Update in Borel or in the Borel app on your phone. Our guide to updating an app you installed yourself covers that step.
If you like, the iPhone keeps a record of each crash. Apple's page on crash reports says to open the Analytics & Improvements section of Settings, tap Analytics Data, and find the log whose name starts with the app's program name and the date. Apps made in Borel are built under the program name App, so look for one starting App. You can paste its text into the chat with your description, though your description is what matters.
Apple's general steps, for your own app
Apple's support page for an app that closes unexpectedly gives four steps for any app. Here is how each one applies to an app you made.
| Apple's step | For your own app |
|---|---|
| Force the app to close, then open it | Worth one try; it clears a stuck start |
| Restart the iPhone | Worth one try, especially after an iOS update |
| Check for an update | Your update comes from Borel, not the App Store |
| Delete the app and download it again | Install it again from Borel instead; deleting can lose its data |
Apple warns about the last step: “When you do this, you might lose data that was stored in the app.” For your own app there is no need to delete anything. Installing again from Borel goes over the old copy as the same app, and keeps what you saved in it.
Step by step
- Count the days. Installed a week or more ago? Install again from Borel, or open Companion so it renews.
- Read the screen. A message about trust, verification or Developer Mode is fixed in Settings, as above.
- Force it closed and open it again, then restart the iPhone if it still stops.
- Notice when it closes: on opening, on one button, or after a while.
- Tell Borel in the chat what you tapped and what changed.
- Let the fixed version land over Wi-Fi, and try the same tap again on the iPhone.
New to all this? Making an app on Borel starts free, with 5 free credits a day, up to 30 a month, and putting it on your own iPhone comes with a paid plan, Pro, from $25 a month. The Learn page on your iPhone covers the setup.
Common mistakes
- Deleting the app to fix it. It can take the app's data with it. Install again from Borel over the old copy.
- Rebuilding when the 7 days ran out. Nothing in the app changed; it only needs signing again.
- Turning Developer Mode off to tidy up. Your own apps stop opening until it is back on.
- Telling Borel only that it crashed. Say what you tapped; that is what points to the part that failed.
- Testing only in the browser. Try the camera, location and other phone-only parts on the iPhone itself.
Questions people ask
Why does my own app open and close immediately?
Most often its 7-day signature from a free Apple ID ran out; install it again from Borel or open Borel Companion so it renews. If it was installed recently, it is likely a bug in the app: tell Borel what you tapped and it builds a fix.
Why did my app stop opening after a week?
Apple's profiles for a free Apple ID expire 7 days after they are issued. Borel Companion renews each app when it has less than 2 days left, while it runs; if the computer was off, open Companion and it catches up.
Will I lose my data if I reinstall my app?
Not when you install again from Borel: it goes over the old copy as the same app, so the data stays. Deleting the app beforehand is what can lose it, as Apple's own page warns.
The app works in the browser but crashes on my iPhone. Why?
The browser's iPhone is Apple's Simulator, which cannot run the camera, Face ID, NFC, Health, location and a few other phone features. A crash only on the phone is often in one of those parts. Tell Borel which button you tapped.
Where do I find the crash report on my iPhone?
Apple's steps: open the Analytics & Improvements section of Settings, then Analytics Data. Apps made in Borel are built under the program name App, so their reports start with App and the date.
Does turning off Developer Mode stop my own apps?
Yes. Apps you install yourself are development-signed, and Apple says they cannot run until Developer Mode is on again. Turn it on in Settings, Privacy & Security, Developer Mode.
I think an app that closes on you deserves a fix, not a shrug. If yours keeps closing after you have tried all of this, tell me what you tapped and I will look.
– Sigsten
Build your own receipt tracker
Your idea is already written. Press the button, read it, change anything, and Borel builds it, free to start.
An app where I photograph a receipt, type the shop, the amount and a category, and see what I spent each month by category, kept on my phone.Build this app