iOS Fix: file is universal (2 slices) but does not contain a(n) armv7s slice: /path/to/file for architecture armv7s

This common error plagued be when trying to run my weatherApp on an iOS device.  It turns out that a build setting needs to be changed.

In xcode, select your project file.

select the ‘Build Settings’ tab

change the view from ‘Basic’ to ‘All’

search for ‘Build Active Architecture Only’

Screen-Shot-2013-03-25-at-7.44.40-AM

set this value to YES.

One Response to “iOS Fix: file is universal (2 slices) but does not contain a(n) armv7s slice: /path/to/file for architecture armv7s”

  1. Rishab says:

    Thanks… That worked for me.

Leave a Reply

Your email address will not be published. Required fields are marked *