Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

iPhone app under dev crashes if phone not connected through XCode

I tried this on a few devices, I have an iOS app that crashes when my phone is not connected via XCode.

Steps I follow:

1) Open XCode Project, connect phone to Mac
2) Launch app through XCode
3) App fully works
4) Unplug cable
5) Click again on app Icon -> crash after spashscreen

Would anyone have any idea where I could look to figure out this problem ? As its only occuring while unplugged, I have no logs.

PS: Also I have submitted this app to the App store (as I didn't notice before) and Apple accepted it. Which means their process didn't even find this problem.

like image 632
Andrei Avatar asked Mar 13 '12 17:03

Andrei


People also ask

Why does an app keep crashing on my iPhone?

When your apps keep crashing on your iPhone, updating them may just be the trick to solving it. To quickly check whether a specific app has an update, go to the App Store's Search tab to find the app. If an update is available, you'll see an Update button instead of the usual Open button. Tap on it to update the app.

Can you code an iOS app without Xcode?

No, because even if you design in those tools if you want to compile locally you need xcode. However, if you need to use an IDE, but prefer NOT to use Xcode, there's always AppCode: Smart Swift/Obj-C IDE for iOS & macOS Development .

How would you stop an application from crashing as a developer?

Keep your apps updated App developers keep pushing out updates to their apps. These updates contain bug fixes which should solve app crashing issues as well. As such, it is recommended to keep your apps updated.

How can I test my Xcode app on my iPhone without developer?

Xcode Automatic Signing with Personal Team ID You can do it by indicating your Personal Team ID in Unity Settings: Unity > Preferences > External Tools > Xcode Default Settings > Signing Team ID, checking Automatically Sign.


1 Answers

Had the same problem. It's the way you terminate the debugging process. Just add another step:

1) Open XCode Project, connect phone to Mac

2) Launch app through XCode

3) App fully works

4) STOP the application (from XCode)

5) Unplug cable

6) Click again on app Icon -> crash after spashscreen

like image 179
Rok Jarc Avatar answered Sep 19 '22 03:09

Rok Jarc