• 在Xcode5和Android Studio添加工程间的依赖


    正在编辑中,尚未完成

    先看看ios的target是什么,请先参看http://www.cocoachina.com/bbs/read.php?tid-10884.html做个大概了解

    这里有一篇文章,介绍了如何建立一个依赖于“另外的静态库工程” 的工程 http://blog.carbonfive.com/2011/04/04/using-open-source-static-libraries-in-xcode-4/

    如何在一个xcode5页面中显示多个project呢,有2种方法,

    第一种,建立workspace,添加需要的工程,效果如图

    第二种,直接在建好的工程内,通过add files to "xxxx",添加需要加入的新工程的.xcodeproj文件,效果如图

    这两种添加方法的不同还在寻找中。。。。

    添加了如上图的关系后,不能像android studio的module dependency 一样,在工程中引用依赖工程中的类,上面这2种关系的作用还在寻找中。。

    另外,在ios中,存在一种 target dependency:

    A target and the product it creates can be related to another target. If a target requires the output of another target(output 能是什么?现在只知道静态库可以成为可用的output) in order to build, the first target is said to depend upon the second. If both targets are in the same workspace, Xcode can discover the dependency, in which case it builds the products in the required order. Such a relationship is referred to as an implicit dependency. You can also specify explicit target dependencies in your build settings.

    Android Studio 中,没有workspace这个概念,最大的一级就是project(相当于xcode的workspace?),但是它多了一个module的概念(相当于xcode的project?),在Android Studio 添加依赖的方式为

    添加了依赖后,就可以引用依赖模块中的类了。

  • 相关阅读:
    【计算机网络】复习集(更新中)
    滑雪 (记忆化搜索)
    橱窗布置
    复制书稿 (dp+贪心)
    8786:方格取数 (多线程dp)
    编辑距离
    8782:乘积最大
    合并石子 (区间dp+前缀和)
    6045:开餐馆
    6049:买书 (完全背包)
  • 原文地址:https://www.cnblogs.com/breezemist/p/3484110.html
Copyright © 2020-2023  润新知