I'm running XCode 6.4 and have an app I'm working on. When I run it on simulator with the iPhone/iPad everything works great. If I simulate it on an iphone 4S everything works fine too. As soon as I test it on an iPad Air 2, this error appears on the launch screen.
dyld: Library not loaded: @rpath/AWSAutoScaling.framework/AWSAutoScaling
Referenced from: /private/var/mobile/Containers/Bundle/Application/B2DA513F-CE10-4B88-B39A-D502F2403537/CoolApp.app/CoolApp
Reason: no suitable image found. Did find:
/private/var/mobile/Containers/Bundle/Application/B2DA513F-CE10-4B88-B39A-D502F2403537/Blah Blah.app/Frameworks/AWSAutoScaling.framework/AWSAutoScaling: mach-o, but wrong architecture
I thought XCode would auto-detect my iPad Air 2's architecture and set it accordingly. I haven't touched any of those settings. I'm also using cocoapods for handling libraries/frameworks. Why is this happening on the iPad Air and how can I fix it?