confused about different procedures for creating a fat static library in Xcode 6

Deadly 提交于 2019-12-06 04:26:05

The important distinction is between the library and the framework. The framework is just a specific folder structure that contains your library and headers.

lipo combines libraries. So the instructions have a sample execution that refers to the library inside of a framework you have already built (once for iphoneos, once for the simulator). The only difference between the frameworks is the library, so by using lipo to combine the libraries you get a fat (or fatter) library with all supported frameworks.

That first linked answer tells you how to create both a framework and an app. Only worry about the framework part. Build the framework twice with different targets (an iOS device and a simulator). Make sure that you 'Build Active Architecture Only' is set to 'No'. You'll probably want to build for release rather than debug, but it depends on your specific needs.

skywinder

You are too close to correct answer. the only thing that you need to do - is

  1. Rename "framework-test-01-universal" to "framework-test-01" (original name without suffix) - it's important!

  2. Go into one of the *.frameworks (in Debug-ios folder, for example) and replace the library with your new "framework-test-01" library.

Thats it! ./Debug-ios/framework-test-01.framework - is ready-to-use fat binary! You can import it to your project!

Check me answer here for more details: How to export "fat" Cocoa Touch Framework (for Simulator and Device)?

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!