Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Swift Project not Building

Tags:

xcode

swift

I'm trying to convert one of my projects from purely Objective-C into Swift, but keep running into a problem with Xcode. With any Sprite Kit, Obj-C, or Obj-C/Swift project, everything will index, clean, build, and run successfully. However when the project is just comprised of .swift files, Xcode hangs on indexing and building, and won't do anything else. I've tried disabling indexing, nuking the DerivedData folder, even completely re-installing Xcode 6 along with the associated library files, but nothing seems to work. Any ideas on how to fix this?

like image 410
Matt S Avatar asked Jun 06 '14 15:06

Matt S


1 Answers

I've tracked this down to some particular source code I was using (specifically tuples inside an array) that lock up the indexer.

There doesn't seem to be any workaround except to avoid having that particular source code in the project.

I filed a bug with Apple, Radar number 17241603.

like image 107
Abhi Beckert Avatar answered Jan 04 '23 10:01

Abhi Beckert