4

Whenever I attempt to build I get this error:

<unknown>:0: error: no such file or directory: '/Users/trevorjordy/Library/Developer/Xcode/DerivedData/Duelyst_Database-eiwmunfsyfyouhbystikkuvfadfh/Build/Intermediates/Duelyst Database.build/Debug-iphonesimulator/Duelyst Database.build/DerivedSources/CoreDataGenerated/Model/.NewestCardsEntity+CoreDataClass.swift'
<unknown>:0: error: no such file or directory: '/Users/trevorjordy/Library/Developer/Xcode/DerivedData/Duelyst_Database-eiwmunfsyfyouhbystikkuvfadfh/Build/Intermediates/Duelyst Database.build/Debug-iphonesimulator/Duelyst Database.build/DerivedSources/CoreDataGenerated/Model/.NewestCardsEntity+CoreDataProperties.swift'
<unknown>:0: error: no such file or directory: '/Users/trevorjordy/Library/Developer/Xcode/DerivedData/Duelyst_Database-eiwmunfsyfyouhbystikkuvfadfh/Build/Intermediates/Duelyst Database.build/Debug-iphonesimulator/Duelyst Database.build/DerivedSources/CoreDataGenerated/Model/.SetsEntity+CoreDataClass.swift'
<unknown>:0: error: no such file or directory: '/Users/trevorjordy/Library/Developer/Xcode/DerivedData/Duelyst_Database-eiwmunfsyfyouhbystikkuvfadfh/Build/Intermediates/Duelyst Database.build/Debug-iphonesimulator/Duelyst Database.build/DerivedSources/CoreDataGenerated/Model/.SetsEntity+CoreDataProperties.swift'
Command /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/swiftc failed with exit code 1

This has gotten quite frustrating since I have tried all other solutions to no avail. I can confirm that these files are in my compile sources as well as in the same folder as all other swift files. These files were generated by core data. Even when I deleted any trace of these files, I still manage to get this error. So far I have tried : restarting and cleaning everything, deleting derived data, deleting the files causing the problem completely from my computer and from Xcode so that it would not try to look for it, ensuring that everything is part of compile sources and located in the same place, compiling on simulator as well as real iPhone

Trevor Jordy
  • 598
  • 1
  • 7
  • 27

2 Answers2

2

Figured it out. Just had to swap the drop down in .xcdatamodeld file that appears when you click on an entity and look at the "class" section in the right panel. needs to be set to Manual/None when you generate the classes.

Trevor Jordy
  • 598
  • 1
  • 7
  • 27
0

You have to decide whether you are triggering NSManagedObject subclass generation manually or let Xcode do this for you.

You can finde more detailed information in this answer.

Community
  • 1
  • 1
shallowThought
  • 19,212
  • 9
  • 65
  • 112