4

So, this is strange. Trying to build my fairly large project with the new Xcode Beta Build System and it fails with 0 errors. The old build system works fine.

The status bar at the top of the IDE displays the following:

Planning build... Scanning build tasks...

It has got further than this before, but now seems to be failing really quickly. No idea how I can debug this. Any ideas?

magneticrob
  • 101
  • 1
  • 1
  • 7

2 Answers2

2

I would recommend you to try these steps:

  1. Quit Xcode
  2. Delete folder ~/Library/Developer/Xcode/DerivedData
  3. Reopen Xcode and try again

Hope it helps

EDIT: Quiting and reopening of Xcode after deletion of derived data is essential, because Xcode can hold derived data in it's cache. So deletion of derived data when Xcode is running does not help very often.

Vojta
  • 810
  • 10
  • 16
  • Thanks for the reply, it was the "unable to build node" error though due to files having the same name (an issue with a pod) – magneticrob Jun 12 '17 at 10:03
  • 1
    @magneticrob didn’t this show in the report navigator > build node? (command+9) – Jano Jun 16 '17 at 07:12
0

Remove 'Derived Data' before running the build.

To remove, go to

File > Work Space Settings > Go to the directory path > Delete.

Do not forget to clean the project

Cmd + Shift+ k

byJeevan
  • 3,728
  • 3
  • 37
  • 60