1

Video 308 on WWDC 2013 says "link your libraries statically" when explaining how to validate purchase receipts, to prevent someone (hacker) from swapping the validation library with another library that validates everything.

In terms of practical steps in Xcode what does this "link your libraries statically" mean?


EDIT


Ok, I know what a static libraries are and how you link them. My doubt here is that their phrase is reversed. Instead of saying "add your code as a static library" or "link to your static library", they said "link statically to your code". This sounded to me as something different. I am just trying to confirm that this is the same thing as simply linking against a static library.

1

1 Answer 1

1

What it means is very easy. It about dragging and dropping the library to your project. Then going to build_phases -> link_binary_with_libraries and adding the library there.

See this example of static linking with StackMob.

enter image description here

Hope this helps!

Sign up to request clarification or add additional context in comments.

2 Comments

Ok, I know what a static libraries are and how you link them. My doubt is that their phrase is reversed. Instead of saying "add your code as a static library" or "link to your static library", they said "link statically to your code". This sounded to me as something different. Are you sure that both terms are the same thing?
I believe so. I think all of those phrases mean the same thing.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.