如何从框架导入Swift类?
TestClass
在该Cocoa touch框架中命名的Swift类import FrameWorkTest
应用程序项目编译器找不到TestClass
。如何导入TestClass
以在主应用程序中使用?
它说TestClass
没有定义。我也想在FrameWork中添加扩展名然后使用它。
https://github.com/ArtemKyslicyn/-SwiftImportFrameworkTest
我正在使用此教程http://www.swift-studies.com/blog/2014/6/30/creating-a-pure-swift-framework-for-both-ios-and-mac
我正在使用Xcode 6.0种子
谢谢
这是我发现的一种解决方案:
+
添加目标cocoa touch framework
project
并按add dependency
和add framework
我在这里使用了解决方案:https : //github.com/ArtemKyslicyn/-SwiftImportFrameworkTest在名为AddingFrameWork的项目中
本文收集自互联网,转载请注明来源。
如有侵权,请联系[email protected] 删除。
我来说两句