I’m trying to use a library called “CorePlot” in iOS application , everything was fine before upgrade Xcode to Xcode 4.5.1 to support ios6.
After upgrade this error occurs
file is universal (3 slices) but does not contain a(n) armv7s slice:
Lib/libCorePlot-CocoaTouch.a for architecture armv7s
Now after long search and depending on this link
iOS – Linker error after upgrading to Xcode 4.5, possibly Core Plot related
the solution is to rebuild the library using the new Xcode 4.5GM
But how to do rebuild process ?
I had a similar problem with one of my static libraries. Basically, you will need to have the library recompiled to support armv7s, but in the meantime, you can remove that requirement from the build settings.
In your project settings, look for Architectures and I’m guessing it says, “Standard (armv7, armv7s)” Remove it and replace with “armv7” and your project should compile.