Since the upgrade to Xcode and iOS8, I\'ve been having trouble building a fat static library. There are some pretty good instructions here and here but I think parts of the
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.