Tag: 模块

Xcode 6.3.1错误:超时等待获取模块“X”的locking文件,其中“X”是我的框架

我在工作区中有以下项目: Common Security (取决于Common ) Data (取决于Common , Security ,(和CoreData )) Api (取决于Common , Security , Data ) MyApp (依赖于Common , Security , Data , Api ) 除MyApp之外的所有项目都是Cocoa Touch Frameworks,主要是用Swift编写的。 由于Xcode 6.3.1我无法编译,因为我在构build我的'Api'框架时收到以下消息: <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 ^

基于iOS Swift的dynamic框架中的Objective C类

情况: 我有一个用Swift编写的iOS dyanmic框架。 我还得到了一堆用Objective C编写的类,我将在Swift类中使用这些类(有些是公共的,有些是私有的)。 不过 ,我希望Objective C类不要暴露在使用框架的项目中 。 我曾经尝试过: 伞头 据我所知,我应该在我的伞头文件(通常是FrameworkName.h使用#import header.h导入,然后确保我希望包含在Swift类中的所有Objective C头文件都标记为“公共”,在“构build阶段” – >“标题”下。 但是,这样做会自动将项目使用框架公开给框架使用的所有私有Objective C类。 模块映射(使用单独的模块) 正因为如此,我研究了使用模块映射,这是logging在这里 。 我已经看过其他用户的post,比如这个和这个 ,以及这个Github的回购 。 我成功地得到了以下工作: //SharedClasses/module.modulemap module SharedClasses { } //SharedClasses/module.private.modulemap module SharedClasses.Private { header "header.h" export * } 问题是,在我的项目(有这个框架导入),这个: import Framework import Framework.SharedClasses 被允许,随后“隐藏的”Objective C类被暴露。 也许这只是模块如何工作? 有没有办法让他们真正的私人? 模块映射(使用框架私有模块) 另外,我已经尝试在我的框架的根目录下创build一个module.private.modulemap文件,内容如下: explicit module Framework.Private { header […]

iOS:无法构build模块<framework-name>

我有另一个团队的图书馆。 我试图在我们的项目中使用库,而这样做得到一个错误无法build立模块“通用库”(框架的名称) 下面是我所做的解决scheme,但没有帮助: 1. Delete Derived data content. Clean and Build. 2. Framework is added in 'Link binary with libraries' of Build phases. 3. While adding framework checkmarked : Target and Copy content to folder. 即使我试过这个stackoverflow链接,但没有得到任何突破! 唯一有效的工作是删除Swift compiler – code generation section Objective-C bridging header path Swift compiler – code generation section Project中的build settings Swift […]

xcode 7.2无法构buildObjective-C模块

我刚刚更新我的Xcode到版本7.2。 现在我尝试使用xcodebuild从命令行构build一个框架 ,但有这个错误 …. /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator9.2.sdk/System/Library/Frameworks/QuartzCore.framework/Headers/CAMediaTiming.h:6:9: note: in file included from /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator9.2.sdk/System/Library/Frameworks/QuartzCore.framework/Headers/CAMediaTiming.h:6: #import <QuartzCore/CABase.h> ^ /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator9.2.sdk/System/Library/Frameworks/QuartzCore.framework/Headers/CABase.h:11:10: error: could not build module 'Darwin' #include <stdbool.h> ^ /Users/atran/Desktop/Repos/DSA_Working_Directory/Libs/Kingfisher/Kingfisher/Kingfisher.h:27:9: note: while building module 'UIKit' imported from /Users/atran/Desktop/Repos/DSA_Working_Directory/Libs/Kingfisher/Kingfisher/Kingfisher.h:27: #import <UIKit/UIKit.h> ^ /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator9.2.sdk/System/Library/Frameworks/UIKit.framework/Headers/UICollectionViewLayout.h:11:9: note: while building module 'QuartzCore' imported from /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator9.2.sdk/System/Library/Frameworks/UIKit.framework/Headers/UICollectionViewLayout.h:11: #import <QuartzCore/CATransform3D.h> ^ /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator9.2.sdk/System/Library/Frameworks/QuartzCore.framework/Headers/CAEAGLLayer.h:7:9: note: while building module 'OpenGLES' imported […]

禁用模块时使用@import

我有个问题 @import Foundation; 我看到: @import vs #import – iOS 7 我将“启用模块”设置为“是” 而我的问题没有解决

AdMob 7.3.1和Swift 2.0 – 找不到模块

我在Swift 2.0中使用Google AdMob框架时遇到问题。 我第一次使用AdMob,所以我不知道问题出在AdMob或Swift 2.0上。 我已经包含了AdMob框架,并将其导入到我的ViewController中: import GoogleMobileAds 我得到的错误是: 没有这样的模块GoogleMobileAds 桥头也不起作用: #import <GoogleMobileAds/GoogleMobileAds.h> 错误: 找不到GoogleMobileAds / GoogleMobileAds.h文件 我应该如何joinAdMob? 我已经testing了AdMob 6.12.2,并通过桥接头将其包括在内,并且工作正常。 其他用户以前的post没有帮助我 – 这个问题没有解决scheme。