-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathREADME
More file actions
60 lines (40 loc) · 3.08 KB
/
README
File metadata and controls
60 lines (40 loc) · 3.08 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
To add the Teracode Project to your library, do the following:
=======================================================================================
1) Add the reference to the proyect: Project Configuration => Targets => Build Phases => Link Binary with Libraries =>
Add (+) => Add other. Search the path of the proyect and select the .xcodeproject file.
(Move to frameworks group)
2) Add the search path to find interfaces: Configuration Project => Build Settings => Search the key
"Header Search Paths". On the nodes, put the relative path of the Teracode project,
like : "../../Arquitectura/iPhone-Architecture". To get the path, you could select the Teracode project, and
on the right window, on details, there is a property with that path.
3) Setup the dependencies: Go to Project Configuration => Build Phases => Target Dependencies => Add (+)
=> Select the added framework.
4) Go again to the Project Configuration => Build Phases => Link Binary with Libraries => Add (+) => Select
the file Teracode.a
5) Use it. To add the imports, you have to add this: "import <Teracode/File.h>"
Para agregar el proyecto como libreria hacer lo siguiente:
=======================================================================================
1) Agregar la referencia al proyecto: Configuracion del proyecto => Targets => Build Phases => Link Binary with
Libraries => Agregar (+) => Add other Buscar el directorio donde se encuentre el proyecto y seleccionar el xcodeproject .
(Moverlo a la parte de frameworks)
2) Agregar el search path para que encuentre las interfaces: Ir a Configuracion del Proyecto => Build Settings
=> Buscar el key "Header Search Paths". En el nodo raiz, poner la direccion relativa al proyecto del framework,
tipo: "../../Arquitectura/iPhone-Architecture/". Para saber el path exacto, pararse sobre el proyecto agregado
(el framework) y en la ventana de la derecha, en el detalle se muestra una property con el path relativo.
3) Configurar las dependencias: Ir a Configuracion del Proyecto => Targets => Build Phases => Target Dependencies => Agregar (+)
=> Seleccionar el framework agregado.
4) Ir de nuevo a Configuracion del Proyecto => Build Phases => Link Binary with Libraries => Agregar (+) => Seleccionar
el archivo Teracode.a
5) Comenzar a utilizarlo. Para hacer los imports, basta con agregar "import <Teracode/File.h>" (Teracode es la carpeta
en la cual se encuentran los .h, si se desea acceder a otro, agregar el path relativo).
Agregar el proyecto como submodulo en GIT
=======================================================================================
1) Abrir una consola, y en el raiz del proyecto destino ejecutar:
git submodule add ssh://USERNAME@gerrit.teracode.com:8082/iPhone-Architecture teracode
2) Luego hay que inicializar el modulo
git submodule init
2.1) Editar el nuevo archivo creado .gitmodules y sacar el USERNAME de la URL generada
2.2) Asegurarse que en .git/config la URL del modulo SI tenga USERNAME
3) Por ultimo hay que bajarse el codigo de modulo con el siguiente comando:
git submodule update
En el submodule, se puede trabajar como cualquier otro proyecto GIT.