iosxcode5ios-frameworksios-universal-framework

iOS Universal Framework not build i386?


I'm using the fantastic iOS Universal Framework script to build my own framework and its worked great for some time. I'm not sure exactly when, but it seems to have stopped building i386 along the way. Apps consuming the framework produced no longer work with the simulator.

I've got VALID_ARCHS = arm64 armv7 armv7s i386 x86_64 set. And ONLY_ACTIVE_ARCH = NO. The build script isn't throwing any errors or logs. Yet I get a skinny framework in the end without i386 or x86_64 and thus any project dependent on this framework has linker errors when building for the simulator.

Extra info:

Any ideas?


Solution

  • I was having this same problem recently. I had to tweak several build settings to get it to build for i386 and x86_64 again. The one that got it working for me was when I unchecked the "Run script only when installing" checkbox in the Run Script Build Phase.