Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Xcode 6.3.1 error: Timed out waiting to acquire lock file for module 'X' where 'X' is my framework

I have the following projects in my workspace:

  1. Common
  2. Security (dependent on Common)
  3. Data (dependent on Common, Security, (and CoreData))
  4. Api (dependent on Common, Security, Data)
  5. MyApp (dependent on Common, Security, Data, Api)

All of the projects except MyApp are Cocoa Touch Frameworks, mostly written in Swift.

Since Xcode 6.3.1 I'm unable to compile as I'm getting the following message while building my 'Api' framework:

<unknown>:0: error: timed out waiting to acquire lock file for module 'Data'
~/Developer/myapp/src/Api/Api/SomeClass.swift:4:8: error: cannot load underlying module for 'Data'
import Data
       ^
like image 960
Tom Kraina Avatar asked Apr 23 '15 13:04

Tom Kraina


1 Answers

I ran into this issue in Xcode 6.3.2 and found that my problem went away when I cleaned the build folder.

like image 93
CodeReaper Avatar answered Oct 07 '22 13:10

CodeReaper