I'm upgrading a project written in Swift 1.2 with part of the code on Objective-C to iOS 9 (Swift 2). I haven't been able to build it in xcode 7 nor 7.1; it starts, but it never completes. I wasn't able to use the xcode tool to convert my project to the latest Swift syntax because it doesn't finish (I've left it there around half an hour).
At the beginning, it presented errors and warnings, and I solved them one by one. Currently, there are no more (visible) errors, but it doens't finish compiling ever.
In the Report navigator, the current build (it's been running for more than 40 minutes now) shows the animated loader icon, and when I click on it, and show "All messages", it looks like this:
[ Checked ] Create product structure
[ Checked ] Run custom shell script 'Check Pods Manifest.lock'
[ Gray ] Compile Swift source files
[ Green ] Compile HomeImageView.swift ...
[ Green ] .......
[ Green ] < several .swift files ... >
[ Green ] .......
[ Gray ] TransactionsViewController.swift
[ Gray ] ... < 3 more .swift files >
Also, if I run "top" from the terminal, these are the lines corresponding to xcode processes:
PID COMMAND %CPU TIME #TH #WQ #PORT MEM PURG CMPRS PGRP PPID STATE BOOSTS
5177 swift 97.4 46:38.18 1/1 0 9 55M 0B 20M 5148 5148 running *0[1]
5148 swift 0.0 00:00.16 1 0 9 428K 0B 3140K 5148 606 sleeping *0[1]
606 Xcode 3.8 10:33.81 24 9 436 551M 33M 95M 606 1 stuck *0[2176]
So, the machine is working a lot... But I can't figure out why is it taking so long, and the 4 files it hasn't compiled are the same ones since I started building the project.
I've tried cleaning the project, closing xcode, restarting my Mac...