Xcode 6.3.1错误:等待获取模块“X”的锁定文件超时,其中“X”是我的框架 [英] Xcode 6.3.1 error: Timed out waiting to acquire lock file for module 'X' where 'X' is my framework

查看:151
本文介绍了Xcode 6.3.1错误:等待获取模块“X”的锁定文件超时,其中“X”是我的框架的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我的工作区中有以下项目:

I have the following projects in my workspace:


  1. Common

  2. 安全(取决于 Common

  3. 数据(取决于 Common Security ,(和 CoreData ))

  4. Api (取决于 Common , Security Data

  5. MyApp (取决于 Common Security 数据 Api

  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)

除了 MyApp 之外的所有项目都是Cocoa Touch Frameworks,主要是用Swift编写的。

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

自Xcode 6.3.1以来我无法编译,因为我在构建我的'Api'框架时收到以下消息:

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
       ^


推荐答案

对于 Xcode 6.3.1中的其他问题,似乎一种解决方法

我发现编译 Data.framework 具有以下设置的目标解决了问题:

I have found that compiling the Data.framework target with the following settings solves the issue:

SWIFT_WHOLE_MODULE_OPTIMIZATION = YES

虽然编译需要更长的时间(如Xcode 6.3之前的版本),但我在使用lldb时遇到了一些麻烦,特别是在情况下或打印出 NSManagedObject 子类:

Although, the compilation takes longer (as Xcode pre-6.3) and I have some troubles using lldb especially in case or printing out NSManagedObject subclasses:

(lldb) po object
error: Error in auto-import:
failed to get module 'NSManagedObjectID' from AST context

这篇关于Xcode 6.3.1错误:等待获取模块“X”的锁定文件超时,其中“X”是我的框架的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆