Running iOS project with Xcode 6 enters debug mode - swift

I'm having problems running my iOS project with Xcode 6 beta. I believe it is entering a debug mode or something. I might have done something by pressing a key shortcut, because I didn't have the problem before. Previously the iOS simulator would appear with my app showing.
Whenever I run the project now this screen appears and the iOS simulator doesn't show up at all. I would like the run button to function as before. I have tried the Product->Clean feature, closing Xcode, recreating the project, removing the app from the iOS home screen, deleting the derived data and various features in the Debug menu.
What is happening and how can I revert the change?

Related

Xcode 4.6 builds, runs and finishes instantly (simulator iOS 6.1)

In xcode, I tried to add a tap gesture to my app and when I built it, it started a problem with Xcode. It goes from building, 'running on iPhone 6.1 simulator' to 'finished running on iPhone 6.1 simulator'.
If the simulator is closed, it starts up with a black screen and you cannot click the home button etc. If open, nothing happens, the app doesn't install but the simulator doesn't crash.
I have tried the armv6 architecture 'fix' but that didn't work. I have also cleaned the project and project data. I have reset the simulator multiple times as well.
If I add the old files to my new project, it works up to a point (I copy and paste old files into new) but then the same happens.
Thanks for your help in advance!
NOTE:
New blank projects build and run fine.
EDIT: It still didn't work after undoing my previous actions, and the simulator is responding according to Finder, although the screen stays black
–––––––––––––––––––––––––––––––––––––––––
UPDATE
I had a folder named 'resources' in my application, imported as a reference which, following links from the thread #arthan.v supplied me with fixed the problem. What I did was rename the folder to files and reimport it.
Thank you so much, I spent 2 days trying to fix it before now!
Click the Center Button in View on your right hand side of Xcode.
In your Bottom bar, you'll see error: failed to attach to process ID 0.
Check these error: failed to attach to process ID 0 and Xcode compiles my App, but can't run it in the simulator
This sometimes gets fixed by these steps:
iOS Simulator > Reset Content and Settings ... > Reset
Xcode > Build and Run
I experienced the same issue after I had re-organized some code and renamed the workspace and project. Eventually realized there was an old version of my test app on the simulator's homescreen. I delete that and then everything was building fine again.
You might need to add the device to the provisioning profile. I experienced this on Xcode 6 and a real device.

XCode Locks Up When Launching the iOS Simulator

Lately when I have been deploying any iOS application to the simulator (iPad or iPhone), XCode locks up (Not Responding) and the simulator simply displays a black screen. I have to force quit both.
Steps I have taken so far towards a resolution:
Clean
Reset the Simulator
Deleted the simulator folder
Reinstalled XCode from the App Store
Reinstalled XCode from the developer center
Has anyone else encountered this? Any suggestions for a solution?
Other info:
OSX Lion 10.7.3
XCode 4.3.2
Shibboleet
Thanks in advance for any help.
I had this problem and was able to continue by:
1) Edit the run scheme by clicking on the first part of the App name to the right of the "Stop" button to bring down the scheme list and click "Edit Scheme..."
2) Click on the Run item and change the debugger from LLDB to GDB.
3) Run
I think the problem was that I validated the settings and it offered to automatically change the debugger from GDB and LLDB and I clicked "OK" because the advisor message sounded very self-assured.
Enjoy.
Under Scheme, go to edit scheme, and change launch from wait for App.app to launch to automatically under the Info tab.
EDIT: If you upgraded Xcode, make sure the old separate simulator is uninstalled.
hmmm, weird simulator, instruments issue i had once would work when i command-tabbed back and forth. try deleting derived data?

iOS.app not refreshing GUI

I have a strange app behavior: The App updates the GUI changes only after returning from the background to foreground. When launching, some GUI elements are also missing and appearing not until returning from background state. Any touch on buttons fires not until going to background and reentering foreground.
The problem is with iPhone, iPad and both simulators and with Xcode 5.2.1 up to 5.3. It appeared after deleting the app from the devices and resetting the simulator. Beforehand there was never a problem like this with this app.
When you can't fix it, restore it: With version control i reverted the AppName.xcodeproj directory (Finder shows it like a file) and it fixed the problem.
Then Xcode offered me to "upgrade to latest recommended settings and perform project clean up" which "removes unnecessary build files". I did that and also chose the "create snapshot option". After that i had the same problem again.
The i reverted to that snapshot before the project settings update and it worked again.
Key take-away: "upgrading project to latest recommended settings" can have nasty side effects. Snapshots and version control are great stuff.
Further investigation showed that in Settings.bundle one missing Root.plist file was reason enough to kill my GUI. I had there Root~ipad.plist and Root–iphone.plist and thought the Root.plist is no longer needed. Looks like you need all three if you want separate plists for iPhone and iPad.

App Icon Won't Change In iPhone Simulator

I had an old app icon in xcode that I had just attached to the program to see how it looked in the simulator. I made changes, deleted the images, and replaced them in Xcode. However, they are still the old ones in the simulator. I tried resetting it and everything. Does it keep a cache somewhere?
EDIT: Solved by cleaning project.
Have you tried cleaning?
From the Xcode "Product" menu, choose "Clean" or "Clean Build Folder" if you hold alt/option.
If "Clean" does not work, try this:
Reboot the device
Kill the app before running it from Xcode.
Those works in my case.

Xcode Debugger stops if I quit the iOS simulator after clicking the Home button

I've noticed this weird behaviour, with virtually any (well 5 different) Xcode/iOS project I'm debugging.
From Xcode (4.0.2) Run the project (into iOS simulator)
In the simulator, click the Home button.
Quit the simulator (by Cmd+Q)
==> The Xcode enters the debugger, and the stack trace shows:
mach_msg_trp
UIApplicationMain
main
The weird thing is that if I slightly alter the sequence, as follows:
1. From Xcode (4.0.2) Run the project (into iOS simulator)
2. In the simulator, click the Home button.
3. Click my application icon (the one I'm debugging) on the iOS simulator
4. Quit the simulator (by Cmd+Q)
==> No problem...
Anyone else experience this?
Any idea what this is and what's causing it?
Thanks
It's not weird, just the way how xcode debug works.. When you start for debug it just link the debug session with instance running on the simulator.. So if you press home button, it stops debugging session because at that time there is no app running on ios.