Upon updating to Xcode 6, I can no longer build my app. Xcode is throwing errors and warnings like the following:
Error:
/Applications/Xcode-6.0.1.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/CoreData.framework/Headers/NSManagedObjectContext.h:121:5: Pointer to non-const type 'id' with no explicit ownership
Warning:
/Applications/Xcode-6.0.1.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/Foundation.framework/Headers/NSString.h:206:4: warning: '__strong' only applies to Objective-C object or block pointer types; type here is 'const char *' [-Wignored-attributes]
The error is in CoreData.framework, the warning is in Foundation.framework.
Here's a link to my build log: http://pastebin.com/RCgV8Pj1
I've tried deleting and re-adding my frameworks using both drag and drop from the Frameworks directory, and the add button in Project->Build Phases. Neither fixes the error. I also tried deleting the SharedPrecompiledHeaders directory. I also saw this, but his fix doesn't work for me. I have no "Frameworks" directory in my project. I even went as far as re-installing Xcode 6.
I assume this is an error with a build setting someplace, but I don't know what would have changed or what I should update. Initially after using Xcode 6 I couldn't build in Xcode 5 either, but I reverted my xcodeproj and it works fine in the older version.