Merge pull request #105 from rickygu/patch-1
Update static library instruction to be more comprehensive.
Showing
1 changed file
with
15 additions
and
5 deletions
@@ -203,20 +203,27 @@ The following instructions are adapted from the excellent "Using Open Source Sta | @@ -203,20 +203,27 @@ The following instructions are adapted from the excellent "Using Open Source Sta | ||
203 | 203 | ||
204 | ### Add the SDWebImage project to your workspace | 204 | ### Add the SDWebImage project to your workspace |
205 | 205 | ||
206 | -Right-click on the project navigator and select "Add Files to "Your Project" and select the SDWebImage | ||
207 | -Xcode project. | 206 | +Make sure your project is in a workspace. If it's not, click File -> Save As Workspace first. |
207 | + | ||
208 | +Right-click on the project navigator and select "Add Files to "Your Project" and select SDWebImage.xcodeproj. | ||
209 | +You may want to include the SDWebImage directory in your workspace repository before adding it to your project. | ||
208 | 210 | ||
209 | ![Add SDWebImage](http://blog.carbonfive.com/wp-content/uploads/2011/04/adding_an_existing_project.png?w=300) | 211 | ![Add SDWebImage](http://blog.carbonfive.com/wp-content/uploads/2011/04/adding_an_existing_project.png?w=300) |
210 | 212 | ||
211 | -You should end up with your project and SDWebimage project at the same lever in the workspace. | 213 | +You should end up with your project and SDWebimage project at the same level in the workspace. |
214 | + | ||
215 | +### Build libSDWebImage.a File | ||
216 | + | ||
217 | +Set your build target to iOS Device, then click Build. Make sure the libSDWebImage.a file inside SDWebImage -> Products is not red. | ||
212 | 218 | ||
213 | ### Add build target dependency | 219 | ### Add build target dependency |
214 | 220 | ||
215 | -Select your project's build target and add the 'libSDWebImage.a' library to the "Link Binary With Libraries" | ||
216 | -build phase. | 221 | +Select your project's build target and add the 'libSDWebImage.a' library to the "Link Binary With Libraries" inside the "Build Phases" tab. |
217 | 222 | ||
218 | ![Add target dependency](http://blog.carbonfive.com/wp-content/uploads/2011/04/linkable_libraries.png?w=214) | 223 | ![Add target dependency](http://blog.carbonfive.com/wp-content/uploads/2011/04/linkable_libraries.png?w=214) |
219 | 224 | ||
225 | +You may also need to add MapKit.framework here too as 'MKAnnotationView_WebCache.h' depends on it. | ||
226 | + | ||
220 | ### Add headers | 227 | ### Add headers |
221 | 228 | ||
222 | Open the "Build Settingsæ tab and locate the "User Header Search Paths" setting. Set this to | 229 | Open the "Build Settingsæ tab and locate the "User Header Search Paths" setting. Set this to |
@@ -226,6 +233,9 @@ Open the "Build Settingsæ tab and locate the "User Header Search Paths" setting | @@ -226,6 +233,9 @@ Open the "Build Settingsæ tab and locate the "User Header Search Paths" setting | ||
226 | 233 | ||
227 | Add the "-ObjC" flag to the "Other Linker Flags" build setting. | 234 | Add the "-ObjC" flag to the "Other Linker Flags" build setting. |
228 | 235 | ||
236 | +### Build Project | ||
237 | +At this point your workspace should build without error. If you are having problem, post to the Issue and the community can help you solve it. | ||
238 | + | ||
229 | ### Fixing indexing | 239 | ### Fixing indexing |
230 | 240 | ||
231 | If you have problem with auto-completion of SDWebImage methods, you may have to copy the header files in | 241 | If you have problem with auto-completion of SDWebImage methods, you may have to copy the header files in |
-
Please register or login to post a comment