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’
set this value to YES.