Swift Project Crashing with EXC_BREAKPOINT error [duplicate] - ios

At build and run (in simulator and on my iPhone) im now getting the following from xcode and the app never launches... however if i stop the build in xcode and then open the app it seems fine?
UPDATE: Yes the breakpoint of course was causing the app to pause (i had forgot to remove it before posting)
The issue is with importing and using a custom font. If i remove the imported TTF and where i added its reference in my plist things are fine. At least I now know its the font thats the issue

Try this:
Then run it again...

Related

Errors in Xcode, impossible to launch my application React Native in my iPad

I have these errors on Xcode. I have already tried to replace JWTStringCoderProtocol by JWTStringCoder__Protocol in the concerned file but it didn't change anything. Same when I wanted to comment out the lines containing JWTClaimsSetCoordinatorProtocol.
Do you know where the problem comes from?
errors in Xcode

The file “MyApp” couldn’t be opened because you don’t have permission to view it error (Xcode 11)

I am currently developing an app using Xcode 11 and I am confused by the root of error message I am receiving when I try to build my app to run in the simulator. I have tried for hours to resolve this, using different tutorials I found on Stack Overflow but really haven't had any luck due to the fact most of the time these issues were reported for Xcode 11. The last time I had the software open, it ran totally fine so I'm very confused what changed since I last saved the project. If you can please help give some, that would be greatly appreciated. I have also attached an image of the error.
What I Have Already Tried
Cleaned the build folder
Manually cleaned the Derived Data folder
Raised the permissions of the executable within Finder
Check to make sure that the compiler is set to default in build options
Checked the info.plist and updated the executable file to ${EXECUTABLE_NAME}
Changed my derived data folder to another location
Deleted manually added folders
Restarted Xcode
Restarted my computer
Image of error as it appears on Xcode:
It appears that it's an iOS app, correct? With everything else you mentioned trying, there might be an issue with the simulator, so you could try running in a different simulator or resetting the current one to default settings. I've attached a screenshot and you can find this under the "Hardware" menu in the simulator. Note that it will delete all installed apps in the simulator.
I realized my issue was with a swift file that I made that was corrupted. The file was linked to a view controller and the view controller works fine but the class file was fully corrupted and would even make Xcode crash if I tried to open the file.
Tips for people who have the same issue:
Read through all the errors and find the specific file thats causing the issue. Usually the issue stems from dependency files but if you're lucky like me then its a simple fix

how to solve this the crash when running after updating to swift 3?

I just updated to Xcode 8 (swift 3). Converted code, etc. No errors. A few build warnings...nothing that should be an issue.
When I run, with my IPHone connected, it crashed with a Thread 1: signal SIGABRT . It has hardly anything in the trace back other than
0_abort_with_payload
5 _dyld_start
and the console error is
dyld: could not load inserted library '/Developer/usr/lib/libBacktraceRecording.dylib' because no suitable image found. Did find:
/Developer/usr/lib/libBacktraceRecording.dylib: code signature invalid for '/Developer/usr/lib/libBacktraceRecording.dylib'
I had the same error since upgrading to xcode 8 (swift 3). The fix, for me, was to add an entry in info.plist
To add the permission information for the microphone:
Open info.plist
Add a new key called "Privacy - Microphone Usage Description"
Enter a string that describes why the app need microphone access
Just restart your iPhone device.
It mainly crash because you have to write some privacy thing in info.plist if you are using hardwares like camera, gallery etc. Check console for details and add everything you are using in info.plist of your app.
I had the same problem and finally figured it out. I created a Framework in Swift 3 that I then added to one of my other projects. This project that I added it to uses both Swift and Objective-C but is originally an Objective-C project.
For some reason the Framework made in Swift 3 was causing my app to crash immediately when running on an iPhone with that exact error. I deleted the Framework and now it is running fine.
Again, not sure why this happens because the Framework was working fine with the app before and works fine on simulators. So I guess it has to do with the Framework being created in the latest XCode with Swift 3. Maybe someone else can clear this up.
Hope this helps someone!

Getting an error trying to unwind from a segue [duplicate]

At build and run (in simulator and on my iPhone) im now getting the following from xcode and the app never launches... however if i stop the build in xcode and then open the app it seems fine?
UPDATE: Yes the breakpoint of course was causing the app to pause (i had forgot to remove it before posting)
The issue is with importing and using a custom font. If i remove the imported TTF and where i added its reference in my plist things are fine. At least I now know its the font thats the issue
Try this:
Then run it again...

iOS Simulator failed to install the application - nothing has worked

I been trying to figure out the problem for this and cannot figure it out. Every time I run my Xcode project in the simulator I get an iOS Simulator failed to install the application error. I have tried resetting the content and settings in the simulator and that has not worked. I have tried running other projects in the simulator and they work fine. One thing I did do right before it stopped working was add a font into the plist. I am not sure if that is the problem but here is my current plist (maybe i accidentally deleted something?):
Thanks.
I just figured it out, I was missing the Executable file Thanks!

Resources