I updated my iphone4s and xcode to the latest yesterday. And I’m trying to debug my app on my phone since my application uses hardware communication.
I’m using a third party library from Redpark(the company provides Dock to RS232 wire.)
While compiling, it gives an error
ld: file is universal (2 slices) but does not contain a(n) armv7s slice:/Users/...../libRscMgrUniv.a for architecture armv7s
clang: error: linker command failed with exit code 1 (use -v to see invocation)
Does anyone know how to solve this except waiting for Redpark to update there library?
You can simply disable the compilation of
armv7sin your Build Settings, by replacing the$VALID_ARCHITECTURES(which evaluates toarmv7 armv7snow) value by the explicit valuearmv7.Thus your application will only build for
armv7and notarmv7s, so will not be fully optimized for the new iPhone5, but it will still run on iPhone 4 and 5 anyway (thearmv7sprocessor of the iPhone 5 can executearmv7applications, it is just not as optimized as witharmv7sprocessor dedicated instructions)