Saturday, September 22, 2012

Error with iOS 6 and Core Plot

Well, I think I have the BQS all ready to got for iOS 5 with the new annotations and fixes.  So I figured I would try and get it updated as well for iOS 6.  So I copied the folder and ran the copy in Xcode 4.5.  I had to fix some things that had been depreciated but finally I got it to work in the simulator just fine.  Then I ran it on my iPad and got an error!

ld: file is universal (2 slices) but does not contain a(n) armv7s slice: /Users/douglasjmerritt/Desktop/Xcode 4.5/BlueQuadCalc copy/libCorePlot-CocoaTouch.a for architecture armv7s
clang: error: linker command failed with exit code 1 (use -v to see invocation)

This error did not allow me to run on my iPad.  So I did a bit of searching and found that I have to change the Build Active Architecture Only to YES.  After that, it all worked fine.  This setting is in the build setting.  Hope this helps someone!


  1. Definitely helped, thanks!

  2. Whoooo! You saved me what could have been a very long night!
    Thanks :)

  3. so if you remove the architecture, does that mean the app will not function on the iphone 5 ?

  4. so if you remove the architecture, what does it mean ? will the app not function now on the armv7 or iphone 5 ?

  5. bendigi, I am not 100% sure. I have changed the targets Build Active Architecture Only to YES, I did not change the actual Projects Build Active Architecture Only, it is still on NO. However, under Architectures, I have standard (armv7, armv7s) and under Valid Architectures I have armv7 and armv7s for both project and target. I have not run it on an iPhone 5 (still saving up money!) But it does run in the iPhone 5 simulator nicely. If anyone else has more advice, please post it!