Xcode 7.1 crashes always when debugging is executed - iphone

If I set a breakpoint and start the debugging mode, Xcode tried to read the attributes and after that Xcode crashes. The position of the breakpoints in the source code has no influence. I tried following steps:
After XCode crashes:
If simulator is still running make sure to select IOS Simulator->Reset Content And Settings before closing it.
Close Simulator (CMD-Q)
Window --> Organizer --> Delete derived data
If debugging on ANY devices, delete the app from the device and REBOOT the device completely.
Launch XCode
Remove All breakpoints
Product --> (hold down Alt/option key) Clean Build Folder
Product --> Clean
Close XCode again via XCode->Quit XCode (NOTE: Must be a GRACEFUL Exit, so XCode can properly do a complete shutdown/cleanup cycle)
Reboot your Mac
Launch Xcode
If running in simulator, pick a different device to simulate than when it crashed.
Do a test run of your app (with no breakpoints)
If all goes well, start adding a breakpoints (All Exceptions is always a good starting point).
But Xcode still crashes and crashes and ...
I used Xcode 7.1 and Yosemite (I cannot update to El Capitan).

In Xcode Build Settings there is Enable Clang Module Debugging disable it.
Hope,It helps you!

Related

xcode 4.5 app can not run in device No such a file directory error [duplicate]

I'm getting a weird bug on Xcode 4.5. When i tried to run my application on Ipad 2 from xcode with iOS 6, I'm getting this error.
I done the following methods to run the application, but no luck.
Cleaned the project and run
Restarted the device
Restarted xcode
I have a valid certificate in my machine and the application is installing on the device but it's not launching automatically. What could be the issue ?
Thanks in advance
That is really annoying. This error happens in a number of different situations. Sometimes restarting the Xcode, fixes the problem. If not, follow these steps:
Disconnect your device.
Delete the app from your device.
Quit Xcode (Do not just simply close the window, quit it)
Delete derived data folder (~/Library/Developer/Xcode/DerivedData/-gbrvhlvwmpiobxdujegtghggrffp - or something like that)
Now start Xcode once again, connect device and run the project. It should work fine.
from DhilipSiva blog

App stopped running on device - ‘No such file or directory'

Initially I started building an iPhone app (App still in development stage) using Xcode 4.2, it was working fine on both device and simulator.Later, we wanted to add support for iPhone 5 (4 inch display). When I ran it on Xcode 4.5 (including Default-568h.png), it was working fine (on the simulator both 3.5 inch and 4 inch). But when i tried to run it on device, it keeps on giving me the error
"Could not launch appname.app” No such file or directory (/Users/<user>/Library/Developer/Xcode/DerivedData/appname-ffotpypmbvaguyhfvnnejhjotpbp/Build/Products/Debug-iphoneos/appname.app/appname).
I tried the following steps, but no luck :(
Deleted the app from device. Restarted the device.
Quit XCode.Trashed all folders from `DerivedData.Cleaned the project. Restarted
machine.
Set Build for active architectureto YES
Deleted Required device capabilities from -info.plist
Do I have any other options to try, or should I repeat these again and again?
The last time I had a similar issue, a normal clean wasn't enough, as it left some derived data. In Xcode, select the Product menu and hold down the option key to reveal "Clean Build Folder...", or even better, close Xcode and delete /Users/<user>/Library/Developer/Xcode/DerivedData/ entirely.

Xcode is not launching my app for debugging

My iOS project installs fine on the iPhone but the application won't launch automatically for debugging.
I'm using Xcode 4.2 (Build 4C199), the latest version for Snow Leopard (10.6.8).
I've already tried deleting the app from the iPhone, restarting the device, cleaning the project and reinstalled xCode.
Any ideas on how to solve this problem?
In Xcode click on where the project name/Device or simulator version is (On the right of the Stop Button), and select Edit Scheme, on the Run Tab select Build Configuration -> DEBUG, and select a DEBUGGER -> GDB.
In my case, I created a new target and a new scheme by duplicating the existing ones, in order to test my app on devices with on older iOS version.
However, the copied scheme had as executable selected "None":
As soon as I selected the right executable there from the drop-down menu, the app launched.
I was having this problem as well. I removed the option Launch due to a background fetch event in Edit Scheme -> Run Debug -> Options and Xcode started launched the app again.
Hope that helps.
Can you confirm you are signing the app with a development certificate? This issue happens when you sign the app with a distribution certificate.
I've been able to solve this problem by Changing Debugger to LLDB, instead of GDB, on the Run Tab, using Build Configuration -> DEBUG, by selecting Edit Scheme (On the right of the Stop Button).

Cant launch iOS app with Instruments on device

App installs, Instruments launch, but drop down in instruments says select target, and the app never launches. Console says
6/14/11 2:36:22 PM Instruments[1951] XRMobileDeviceException while performing application lookup on device : (null)
Device is iOS 4.3.3, regular build and run works and no warnings from Xcode. Profile just doesnt work. Tried cleaning the build, restarting Mac OS and the device. Still no go!
I had the same problem. I didn't solve it, but an easy workaround is to launch the app yourself and then attach to it from the Attach to Process... command in the Target menu in the Instruments window.
I had the same problem, my solution was to initiate instruments from XCODE.
Xcode 11:
Run the app on simulator
Open Debug Navigation (Command + 7)
Click on cpu
Click on “Profile in Instruments”
Xcode 3.2.5
Launch XCODE
Select Device, or Simulator
Up on top Click RUN > RUN WITH PERFORMANCE TOOL > LEAKS
This allowed me to test without giving me that error.
This is in XCODE 3.2.5 that I did this in .. it might be a little different if you are using 4.x

Xcode always launches all device builds through GDB even though a normal launch is attempted

I have an issue where Xcode always launches my device builds through GDB. Even though I choose "Build & Run" and not "Build & Debug" from the Build menu it launches through GDB. My simulator launches works as they're supposed to - through GDB only when I choose "Build & Debug".
Is this normal behavior? It seems strange to me to not be able to launch normally on device.
I tried creating a new fresh project and that is also always launched through GDB so it seems that the error is in Xcode and not in a single project.
Are there any Xcode caches, preferences and stuff that might help deleting? I haven't tried uninstall and reinstall yet.
I'm running Xcode 3.2.3 and it's a fresh install on a new computer. I have not tried installing Xcode 4.
Yes it is normal behaviour. I saw a reference a long time ago that suggested that in fact that was the only way that a process could be remotely launched.
Why is it an issue?