Andrew Bancroft 3/29/2017

Core Data: Solving Ambiguous Type / Redeclaration of Type

Read Original

This article addresses compiler errors like 'Invalid redeclaration of Product' or 'Product is ambiguous for type lookup' when creating NSManagedObject subclasses in Core Data with Xcode 8. It explains the conflict caused by Xcode 8's default auto code generation for entities. The solution involves manually setting the Codegen property to 'Manual/None' for each entity, choosing 'Current Product Module' for the module, and clearing derived data. This technical guide is relevant to iOS developers working with Core Data, Swift, and Xcode, providing step-by-step instructions to fix build issues and regain control over NSManagedObject subclass implementation.

Core Data: Solving Ambiguous Type / Redeclaration of Type

Comments

No comments yet

Be the first to share your thoughts!

Browser Extension

Get instant access to AllDevBlogs from your browser