While Debug configurations work for my project (Objective-C, OSX), Release configuration always hangs at the same place with the same message Timed out waiting to acquire lock file for module 'AVFoundation'
pointing to my .m file which imports AVFoundation
framework.
Seems a rare bug as googling for it doesn't help a lot. Similar problem concerns Swift, thus it's not applicable for my case.
Asked
Active
Viewed 870 times
4
-
Did you ever find a solution for this? The same thing just started happening to me. – oltman Aug 05 '15 at 21:57
-
@oltman I ended up creating new schema with Debug configuration and adjusting parameters to Release configuraiton – peetonn Aug 06 '15 at 01:41
2 Answers
2
It is very likely that your module cache is corrupted. I had this issue and wiped it out and didn't get this error anymore.
Go to the Derived Data folder and delete the folder ModuleCache
.

Wayne Hartman
- 18,369
- 7
- 84
- 116
0
If you have your code in version control, just remove your .xcodeproj and .xcworkspace folders and check them out again. This fixed the issue for me.

Max Clarke
- 1,148
- 2
- 11
- 19