美文网首页
Playground 与项目协作

Playground 与项目协作

作者: fordring2008 | 来源:发表于2017-02-05 12:32 被阅读42次

    // Playground 与项目协作

    // 解决问题: 我们需要在 Playground 中使用项目中已经存在的代码(帮助分类)

    //

    /*

    Playground 是可以用在项目中的,通过配置

    步骤

    1, Playground 必须加入到项目给中

    必须使用这个方式  File -> New -> File 然后在里面选择 Playground

    2, 想要使用的代码必须是通过 Cocoa(Touch) Framework 以一个单独的 target 的方式组织的

    3, 编译结果的位置需要保持默认位置,即在 Xcode 设置中的 Locations 里 Derived Data 保持默认值

    4, iOS 应用必须已经针对 iPhone 5s Simulator 这样的 64位模拟器作为目标编译(因为 Playground 其实是运行在 64位模拟器上的)

    在满足这些条件后,就可以通过 import 框架 mudule 名字导入代码

    */

    相关文章

      网友评论

          本文标题:Playground 与项目协作

          本文链接:https://www.haomeiwen.com/subject/omfeittx.html