Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

iOS Build an Image Viewer Taking Photos Introduction

Starter Files

Unable to run the starter code. Files are not matching up to what is on the first video. Can these starter files be updated?

@NSManaged public var creationDate: NSDate error -> Invalid redeclaration of 'creationDate' @NSManaged public var imageData: NSData error -> Invalid redeclaration of 'imageData'

Anyone know how to fix this? I appreciate any help. :)

1 Answer

I solved this by changing "Photo" entity's codegen to "manual/none", and then CMD + B to compile first. Then hit run, and the error was gone. FYI: "I got this error for core data models that i've created manually.And it got resolved by changing particular entity's 'Codegen' attribute to 'Manual/None' under Data Model Inspector." from StackOverflow

If this won't work, the last hope is to duplicate the project manually. It ain't gonna take long.