Monday, June 3, 2024
HomeiOS Developmentios - Error creating NSManagedObject subclass for CoreData?

ios – Error creating NSManagedObject subclass for CoreData?


I’m making an attempt to arrange CoreData in xcode for an iOS app. I’ve adopted achieved the next:

  1. Clicked on challenge’s .xcodedatamodel file
  2. Added an entity known as “Check”
  3. Created two properties for that entity, “String” and “Bool” with anticipated varieties
  4. Gone to editor->add NSManagedObject subclass
  5. This creates “Check+CoreDataClass.swift” and “Check+CoreDataProperties.swift”
  6. Instantly it throws a slew of errors:

A number of instructions produce ‘/Customers/[username]/Library/Developer/Xcode/DerivedData/[appName]-hazcwshuxdzwhsbbtpmbseraaplh/Construct/Intermediates.noindex/Previews/[appName]/Intermediates.noindex/[appName].construct/Debug-iphonesimulator/[appName].construct/Objects-normal/arm64/Check+CoreDataProperties.o’

&

Filename “Check+CoreDataClass.swift” used twice: ‘/Customers/[user]/Desktop/[appName]/Check+CoreDataClass.swift’ and ‘/Customers/[user]/Library/Developer/Xcode/DerivedData/[appName]-hazcwshuxdzwhsbbtpmbseraaplh/Construct/Intermediates.noindex/Previews/[appName]/Intermediates.noindex/[appName].construct/Debug-iphonesimulator/[appName].construct/DerivedSources/CoreDataGenerated/[appName]/Check+CoreDataClass.swift’

There are ~5 different very comparable errors to the primary one. I’ve tried deleting all information in /Customers/<person>/Library/Developer/Xcode/DerivedData/ however xcode simply finally ends up recreating these when the simulator is run, after which the errors are thrown once more. I’ve additionally tried cleansing the construct folder and restarting xcode.

Do not perceive what is going on. Why is CoreData’s derived information creating an similar copy of the “Editor->Add NSManagedObject subclass”-created information in a distinct location? Why does this have the identical title? Why is that this inflicting an issue?



Supply hyperlink

RELATED ARTICLES

LEAVE A REPLY

Please enter your comment!
Please enter your name here

- Advertisment -
Google search engine

Most Popular

Recent Comments