-
Notifications
You must be signed in to change notification settings - Fork 13
/
README
222 lines (171 loc) · 7.55 KB
/
README
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
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
LDAP Kit
========
LDAP Kit is a framework which provides an Objective-C interface for the
OpenLDAP client libraries on Max OS X and iOS. LDAP Kit manages the
conversion between C data types and Objective-C classes, manages background
threads for executing LDAP tasks, and manages memory allocated by OpenLDAP
via NSAutoreleasePool objects.
Note: Although this file uses some _markdown_ syntax, I chose to favor
plain text readability over _markdown_ when formatting the text.
The "Quick Start for Xcode 4" instructions were most affected
by this consideration.
Contents
--------
1. Disclaimer
2. Software Requirements
3. Quick Start for Xcode 4
4. Maintainers
5. Community
6. Source Code
Disclaimer
----------
This software is provided by the copyright holders and contributors "as
is" and any express or implied warranties, including, but not limited to,
the implied warranties of merchantability and fitness for a particular
purpose are disclaimed. In no event shall Bindle Binaries be liable for
any direct, indirect, incidental, special, exemplary, or consequential
damages (including, but not limited to, procurement of substitute goods or
services; loss of use, data, or profits; or business interruption) however
caused and on any theory of liability, whether in contract, strict
liability, or tort (including negligence or otherwise) arising in any way
out of the use of this software, even if advised of the possibility of
such damage.
Software Requirements
---------------------
Mac OS X Library
----------------
* Git 1.7
* Mac OS X 10.7
* Xcode 4.3
* Xcode Command Line Tools
iOS Library
-----------
* Git 1.7
* Mac OS X 10.7
* Xcode 4.3
* Xcode Command Line Tools
* iOS SDK 5.1
* iOS Ports 0.6 (https://github.com/bindle/iOSPorts)
* Internet Access (for downloading packages)
Documentation
-------------
* Git 1.7
* Mac OS X 10.7
* Xcode 4.3
* Xcode Command Line Tools
* Appledoc 2.0.5 (https://github.com/tomaz/appledoc)
Quick Start for Xcode 4
-----------------------
Prerequisite Reading
--------------------
* Xcode 4 User Guide: Introduction
* Xcode 4 User Guide: Orientation to Xcode
Example Information
-------------------
For the sake of clarity, this tutorial uses the following information. Be
sure to substitute information appropiate for your project and setup:
Information |
---------------------------|----------------------------------------------
Project Name | Zebra
App Name | Zebra.app
Project File | Zebra.xcodeproj
Project Location | /Users/zookeeper/Documents/Zebra/
LDAP Kit Project File | LdapKit.xcodeproj
LDAP Kit Location | /Users/zookeeper/Documents/LdapKit/
iOS Ports Location (iOS) | /Users/zookeeper/Documents/iOSPorts/
iOS Ports Includes (iOS) | /Users/zookeeper/Documents/iOSPorts/include
Include Paths (iOS) | ../LdapKit ../iOSPorts/include
Include Paths (Mac OS X) | ../LdapKit
** LDAP Kit expects the iOS Ports project directory to be in the same root **
** directory as the LDAP Kit project directory (for example **
** `/Users/zookeeper/Documents/`). **
Add LDAP Kit Xcode project file
-------------------------------
1. Open Zebra.xcodeproj in Xcode.
2. On the menubar, select "File" -> "Add Files to 'Zebra'..."
A new dialog should appear.
4. In the dialog, locate the LDAP Kit Xcode project (LdapKit.xcodeproj).
5. Click the "Add" button. The Xcode project `LdapKit.xcodeproj` should
appear in the "Project Navigator".
Update Build Phases
-------------------
Open the Project Editor
1. Display the "Project Navigator" in the "Navigator Area" of Xcode's
main window (see "Xcode 4 User Guide").
2. Click on the project icon in the project navigator (the project name
is visible next to the project icon). The project's build settings
should appear in the "Edit Area" of Xcode's window.
3. In "TARGETS" section, select the target which will use the LDAP Kit
library.
Update "Target Dependencies"
1. Select the "Build Phases" tab from the project editor.
2. Expand the "Target Dependencies" section.
3. Click the "+" button under "Target Dependencies". A list of targets
should appear.
4. Locate the LDAP Kit target. The target should have an icon of a stone
building. For a Mac OS X application, you would select `LdapKit`. For
an iOS application, you would select `iLdapKit`.
5. Click the "Add" button.
Update "Link Binary With Libraries"
1. Select the "Build Phases" tab from the project editor.
2. Expand the "Link Binary With Libraries" section.
3. Click the "+" button under "Link Binary With Libraries". A list of
libraries should appear.
4. Locate the LDAP Kit library. The target should have an icon of a stone
building. For a Mac OS X application, you would select `libLdapKit.a`.
For an iOS application, you would select `libiLdapKit.a`.
5. Click the "Add" button.
6. Repeat steps 1-5 with the following libraries:
* libldap.a
* liblber.a
* libcrypto.a
* libssl.a
* libsasl2.a
Update Build Settings
---------------------
1. Select the "Build Settings" tab from the project editor.
2. Search for the setting titled "Always Search User Paths". Change the
value to "Yes". If the editor is displaying setting names instead of
setting titles, search for "ALWAYS_SEARCH_USER_PATHS". If the editor
if displaying setting definitions instead of setting values, change
the definition to "YES".
2. Search for the setting titled "User Header Search Paths". Add the
relative include path to the LDAP Kit project directory. If building
an iOS application, add the relative include path to the iOS Ports
include directory. In this example, the relative include path is
`../LdapKit` since both Zebra and iOS Ports are in the same parent
directory. If the editor is displaying setting names instead of setting
titles, search for "USER_HEADER_SEARCH_PATHS".
The project Zebra should now be ready to compile the required static
libraries and link to them. The source for the iOS Ports packages will
be downloaded the first time the packages are compiled.
Maintainers
-----------
David M. Syzdek,
Bindle Binaries,
Community
---------
Source Code Repository:
https://github.com/bindle/LdapKit/
Documentation:
http://bindle.github.com/LdapKit/
Wiki:
https://github.com/bindle/iOSPorts/wiki
Issue Tracking:
https://github.com/bindle/iOSPorts/issues
Source Code
-----------
The source code for this project is maintained using git (http://git-scm.com).
The following contains information to checkout the source code from the git
repository.
Git URLs:
git://github.com/bindle/LdapKit.git
Downloading Source:
$ git clone git://github.com/bindle/iOSPorts.git
$ git clone git://github.com/bindle/LdapKit.git
Git Branches:
master - Current release of packages.
next - changes staged for next release
pu - proposed updates for next release
xx/yy+ - branch for testing new changes before merging to 'pu' branch