My app freezes at first launch - iphone

Every time I run my app on my iPhone through XCode it freezes, it doesn't respond, to make it work I hit stop button and then launch it from my iPhone and it works only I'm having problem with launching it from XCode using build&run, here's what happen in the debugger when the app freezes:
-------
warning: Unable to read symbols for /Library/MobileSubstrate/DynamicLibraries/libstatusbar.dylib (file not found).
unable to read unknown load command 0x25
unable to read unknown load command 0x26
Program received signal: “SIGUSR1”.
-------
Any idea how to sort this out?

Uninstall mobilesubstrate or the plugin causing that, libstatusvar.dylib... Check Cydia.

Related

Lost connection to the debugger on iPhone simulator running Big sur11.4

I have face the issue while running my app on Big sur 11.4.While run the app I got "Build succeeded" message but after app is automatically stops then showing a popup message like
Lost connection to the debugger on “iPhone 12”.
Domain: IDEDebugSessionErrorDomain
Code: 4
Recovery Suggestion: Restore the connection to “iPhone 12” and run “APP_TARGET_NAME” again, or if “APP_TARGET_NAME” is still running, you can attach to it by selecting Debug > Attach to Process > APP_TARGET_NAME.
--
System Information
macOS Version 11.4
Xcode 12.1 (17222)
Please help me how to resolve the issue.
This usually happens with apps with lots of dependencies so they take too long to launch, making the debugger to abort and time out.
A temporary solution would be:
Create (or edit in case you already have) a .lldbinit file in your home directory. vim ~/.lldbinit.
Add this to the end of file: settings set plugin.process.gdb-remote.packet-timeout 300.
Restart Xcode and try again.
I have tried this way and it is working like uncheck debug executable option.
Choose Edit Schema->Info->uncheck Debug executable

Production version iphone application crashes with "putpkt: write failed: Broken pipe"?

My app runs successfully in a simulator, but crashes when run on device with the following error:
putpkt: write failed: Broken pipe
putpkt: write failed: Broken pipe
The program being debugged is not being run.
The program being debugged is not being run."
Are there known issues that can lead to this?
How can I debug this?
Did you try to restart your device? This usually happens if you are at a breakpoint and you push the app to the background on the device by pressing the home button.

Error: unknown error code. This generally means that another instance of this process was already running or is hung in the debugger

My project was running with out any problems. But suddenly it began to show crash with an error "Couldn't register com.yourcompany.iconnector with the bootstrap server. Error: unknown error code.
This generally means that another instance of this process was already running or is hung in the debugger" in debug mode
I tried restarting system, simulator and xcode but still the issue exist. Any one please help
Thanks
I know your specific problem was with the simulator, but sometimes I get the same error when using a real device. It usually occurs when the debugger is attached and I build and run again.
To avoid the debugger hanging - when you set a breakpoint and the debugger pauses execution, make sure you continue execution before building and running again.
To solve the debugger hanging error, just restart the device and build and run again.
See this question and answer thread, it has a lot of info on the matter.
Also, try a 'Reset Content and Settings' for the Simulator.
Whenever you have a problem like unknown error code or "Couldn't register com.yourcompany.iconnector with the bootstrap server.
Restart your system it will be resolved.

warning: Unable to read symbols / warning: No copy of *****

This bug is really confusing me as it only happens on 1 of the test phones I have. When loading a UIWebView in my app it starts to kick these warnings out into the console and never finishes loading the site.
warning: Unable to read symbols for /Users/internet/Library/Developer/Xcode/iOS DeviceSupport/5.0.1 (9A405)/Symbols/System/Library/Extensions/IMGSGX543GLDriver.bundle/IMGSGX543GLDriver (file not found).
warning: No copy of IMGSGX543GLDriver.bundle/IMGSGX543GLDriver found locally, reading from memory on remote device. This may slow down the debug session.
I have looked at a few things like warning: Unable to read symbols but nothing has really helped me with this problem. I have done a clean build command+shift+K, but that doesn't do anything ever.
Anyone help?
The phone is an iPhone 4S on iOS 5.0.1
Maybe this will help:
http://www.cocos2d-iphone.org/forum/topic/21383

unable to read unknown load command 0x80000022

In my app, I use a very large amount of code that I copied from Apple's SpeakHere example, and when I run the app on an iPhone device it spits out this error about a hundred times before loading the XIB:
unable to read unknown load command 0x80000022
It also prints these errors:
warning: Unable to read symbols for ""/Users/eamonford/Desktop/Sleep Blaster touch/build/Debug-iphoneos"/Sleep Blaster touch.app/Sleep Blaster touch" (file not found).
warning: Couldn't raise load state for requested shlib: "Sleep Blaster touch" for breakpoint 1.
However, when I run the app in the Simulator there are no errors at all. Also, I know the errors are coming from some part of the code that I got from SpeakHere, because Apple's own example produces the same errors, and my app didn't produce these errors before I added the SpeakHere code.
Does anyone have some idea of what these errors mean or how I can trace them? Thanks!
Regarding the first warning, this appears to be a known issue in SDK 3.1 (I'm assuming you're using 3.1, I'd never seen this error with other versions). If you try compiling with a 3.0 target, that should resolve it.
I saw this error after upgrading to Snow Leopard, but before upgrading the Developer tools.
If you haven't already, go download and install the new Xcode and SDKs.