swift2xcode7-beta2

Xcode 7 beta 2 not compiling code


I'm running Xcode 7 beta 2 and my code won't compile, it won't break on breakpoints when running and it won't throw errors even if I add broken code to it.

When I run my application in the simulator my old version of my app runs in the simulator even if I delete it from the simulators home screen.

This same code base runs perfectly on my macbook pro.

Things I've tried so far:

running on my iMac: (Xcode 7 beta 2)

enter image description here

exact code running on my MacBook Pro (Xcode 7 beta 2)

enter image description here

Has anyone experienced this before? Any solutions?


Solution

  • This is buggy behavior coming from a beta release of Xcode. The obvious things to try are as follows:

    1. Try cleaning and building your project.
    2. Try restarting Xcode and repeating the previous point.
    3. Reboot your computer.
    4. If all else fails reinstall Xcode.

    This unfortunately didn't work for me, but here's what did... and it's silly. It may be an edge case but try going to your storyboard and just mess around with some buttons or labels, add a new Image View or delete one... then try building and running. That caused my code to compile.