【问题标题】:Can't access classes from framework imported in XCode playground无法从 XCode 游乐场中导入的框架访问类
【发布时间】:2016-06-20 12:29:44
【问题描述】:

我可以成功地将一个框架导入我的 Playground,但其中的类无法访问。

如果我将关键字public 添加到事件(和/或其初始化程序),错误变为:

'Event' is unavailable: cannot find Swift declaration for this class

发生了什么事?

谢谢

【问题讨论】:

标签: xcode swift swift-playground


【解决方案1】:

确保为适当的架构构建框架。 就我而言,我为“iPhone 5”(32 位)构建了 if 并为更高版本的模型(64 位)构建了它。

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 2021-04-03
    • 1970-01-01
    • 2015-12-19
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多