Thursday, March 14, 2019

Add Third-Part Framework to Xcode Project

1. Create a new directory for third-party frameworks, for example, /Volumes/Data/Workspace/Frameworks

2. Copy the *.framework file to the new directory

3. Add the new directory to the Xcode's "Framework Search Paths" setting


4. Add the framework to the project in Xcode by select the project in Project Navigator > General > Linked Frameworks and Libraries then click on the plus sign and browse to the framework.



Note that I used Xcode 9 to test it.


References
https://developer.apple.com/library/archive/documentation/MacOSX/Conceptual/BPFrameworks/Tasks/IncludingFrameworks.html

No comments:

Post a Comment