我很高兴看到 Objective-C 中的新 @import
指令,但我的印象是它当前无法用于导入自定义框架 ( one source )。但我刚刚在 Xcode 6 中创建了一个自定义 Cocoa 框架 ( are these supported now? ),我可以@import
它就好了。给出了什么?
最佳答案
是的,您可以在 Xcode 6 中使用 @import
。来自 New Features in Xcode 6 Beta :
User-defined modules. Developers are now able to define modules for their own Objective-C code, making it easier than ever for them to share frameworks across all their projects. By combining user-defined modules with Swift’s automatic creation of modules, the two languages work together seamlessly.
关于ios - 我可以使用新的 @import 指令导入自定义框架吗?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/24141953/