zoukankan      html  css  js  c++  java
  • 在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 添加依赖的方式为

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

  • 相关阅读:
    图论————最短路,最小生成树。
    复习KMP
    P3930 SAC E#1
    P3818 小A和uim之大逃离 II
    洛谷P3928 SAC E#1
    洛谷-P3927 SAC E#1
    求逆欧拉函数(arc)
    《公式证明:欧拉函数》
    求一个极大数的欧拉函数 phi(i)
    仙人掌(cactus)
  • 原文地址:https://www.cnblogs.com/breezemist/p/3484110.html
Copyright © 2011-2022 走看看