The library does not load when the application starts on the iPad

I am running Xcode 6.4 and have an application that I am working on. When I run it on the simulator with iPhone / iPad, everything works fine. If I model it on iphone 4S, everything works fine. As soon as I test it on the 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 automatically detect my iPad Air 2 architecture and configure it accordingly. I did not touch any of these settings. I also use cocoapods to handle libraries / frameworks. Why is this happening on iPad Air and how can I fix it?

+4
source share
2 answers

Here is the procedure that I follow when associating problems with cocoapod:

  • Clear cmd+shift+k
  • Clear build folder cmd+shift+option+k
  • Delete Xcode Data Folder ~/Library/Developer/Xcode/DerivedData
  • Make cocoapods create containers again by deleting the Pods directory in your project and then doing pod install
+2
source

When such strange situations happen to me and nothing else works, I always turn to the DerivedData folder. Xcode stores data about all the applications that you created, and deleting them can not do any harm (and most often it can solve your problem when everything else does not seem to work). You can find this folder here: ~/Library/Developer/Xcode/DerivedData .

After you have deleted the contents of this folder, run a clean build and cross your fingers ... :-)

+1
source

All Articles