Hi everyone,
Has anyone experienced something similar when running a project on a real iPhone?
I’m trying to run my project on my iPhone using Xcode, but I’m getting a “signal 9” error in the debugger. When I hit the Run button, the iPhone screen stays black with a small loading icon in the middle for a while, and then the device just returns to the lock screen.
I’ve run another project and it’s working perfectly.
The issue is only with my current project.
Any ideas what might be causing this?
Thanks in advance!
Do you have a paid developer account?
If you don’t you will find that you are limited in the number of projects you can run on your real device in a given period of days and they only remain active for a short period of time.
If you do have an active paid developer account then try creating a fresh simple project and see if that runs on the real device. If that is successful then you need to look closely at your project that is not working.
Thank you for your reply.
Other projects run on my real device and they work correctly. Only this project is not running.
I think I might need to change something on my project.
Hi @Shakhnoza
Signal 9 is a unix (i.e MacOS) error that means little more than “a process errored and was terminated by the operating system”, in this case MacOS. Unfortunately it tells you little more than that there is something amiss with your code - you’ll have to look elsewhere for clues as to where the issue lies. Hopefully you’ve solved it in the past few days since you posted. Have you managed to run the code successfully in the simulator, emulating the exact model and iOS version of your phone? It could be that your app uses a feature not supported on your particular phone/iOS combination. I think it’s highly unlikely that it’s something requiring an Apple Developer paid subscription, since things that require a paid subscription (e.g. persistence of data to iCloud) raise an error at design time pointing out that they need a subscription before they can be implemented within your project.
Fingers crossed you manage to debug the issue.
Cheers