在框架标题中找不到swift文件 [英] Can't find the swift file in framework header
问题描述
我正在尝试创建asimple框架以进行迅速的测试.
I'm trying to create asimple framework for testing with swift.
I had post the question in objective-c with "create the framework" before. It was resolved.
但是我正在尝试快速创建框架.
But I'm trying to create framework with swift.
我遇到了问题.我无法将MyUtility文件导入头文件中.
I encounter the problem. I can't import the MyUtility file in header file.
如下所示:
有人知道如何在我的自定义框架中导入文件吗?
Have anyone know how to import the file in my custom framework?
非常感谢您.
==============编辑===========
============== edit ===========
@Jerome L
for @Jerome L
推荐答案
要在目标C中导入Swift,您需要使用以下语法:
In order to import Swift in objective C, you need to use the following syntax:
#import <ProductName/ProductModuleName-Swift.h>
所以我想在您的情况下,ti应该是这样的:
So I guess in your case ti would be something like:
#import <MyFramewordSwift/MyUtility-Swift.h>
您可以在此处
这篇关于在框架标题中找不到swift文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!