title: iOS universal framework with iphoneos and iphonesimulator architectures
body: <p><code>xcodebuild</code> can build a project with sdk set to either <code>iphoneos</code> or <code>iphonesimulator</code> but not both, so in order to generate a framework containing <code>armv7 arm64</code> and <code>i386 x86_64</code> architectures, I have to run <code>xcodebuild</code> twice and then use <code>lipo</code> to combine all the architectures into 1 universal binary. I see commercial framework that does this but it result in an incorrect <code>info.plist</code> file because it has a field, <code>CFBundleSupportedPlatforms</code> and all signs point to it only containing 1 value, e.g., <code>CFBundleSupportedPlatforms = ( "iPhoneSimulator" )</code>. </p>
  
  <p>Seems like <code>lipo</code> shouldn't be used in this manner because it isn't officially supported by <code>xcodebuld</code>. Is there a better way to build a framework to contain all architectures? </p>