Search code examples
swiftxcode7swift-playgroundosx-elcapitan

Playground Error in El Capitan XCode7.0.1 and XCode7.1Beta


I just updated to El Capitan. Now I get an EXC_BAD_ACCESS error instantly when declaring a variable in a Playground. Any clues?

I have restarted the computer and tried again. No help. Are there any old log files or some other crap that can be purged to solve this?

Vanilla Playground with a string declaration (same happens if the double is declared first) which fails with an EXC_BAD_ACCESS error

Edit: Adding import Foundation

Using Import Foundation


Solution

  • Credit to @longpham. Deleting all versions of XCode and deleting /Library/Developer folder and reinstalling XCode solved the problem. See comments on original question regarding error related to missing devices.