- Home /
UnityIOS universal app: Archiving failed
My application fails in Xcode5's archiving process:
ld: file is universal (2 slices) but does not contain a(n) armv7s slice: /Users/Syntinel/SoftwareDevelopment/UnityDeveloper/Builds/Knocky/Libraries/libiPhone-lib.a file '/Users/Syntinel/SoftwareDevelopment/UnityDeveloper/Builds/Knocky/Libraries/libiPhone-lib.a' for architecture armv7s clang: error: linker command failed with exit code 1 (use -v to see invocation)
any ideas?
Are you using any iOS plugins? If yes, make sure they're up to date.
Yes I'm using IOS plugins, and saw a post about just that. They are all up to date.
Presumably, at least one of them is missing the armv7s slice. I'd run each of them through otool to see what architectures they contain. Alternatively, you can disable the armv7s slice in your own Xcode project.
Setting Build Active architectures only = yes seems to have done the trick... but I'm not 100% on what that changes in terms of distribution.
Your game will not be optimised for the A6 and A6X CPUs (iPhone 5, 5C, iPod 4). It will run, though.