Xcode6 Creating Fat Static Library iOS Universal Framework

徘徊边缘 提交于 2019-11-29 07:36:01

fatal error: lipo: can't open input file: /Users/pdl/Library/Developer/Xcode/DerivedData/innerIDMobileLicense-blnxjfvoxnqfelftmzojgdwhvazk/Build/Products/Debug-iphonesimulator/innerIDMobileLicense.framework/innerIDMobileLicense (No such file or directory)

This lipo error you got is most likely due to the containing directory does not exists.

The script is created when xcode does not have a framework project.

Lipo basically links two binary build for different architecture together to build a fat one.

So, for starters, which should I use to create a fat static library? Is it Cocoa Touch Framework? Or Cocoa Touch Static Library?

Either one will work. Lipo can link the binary inside the framework and a simple static library

What I did is to create a static library project, and a framework project. Set the static library target to be either device or simulator (using sdk iphoneos or iphonesimulator. Add the Universal Framework script into the framework project to build the static library with the other sdk and put the fat binary to the framework. Also copy needed headers to the framework project. The framework do not need to compile anything.

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