• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
(Solved) NSRangeException on iPod but not on iPad or iPhone Simulator
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

(Solved) NSRangeException on iPod but not on iPad or iPhone Simulator


  • Subject: (Solved) NSRangeException on iPod but not on iPad or iPhone Simulator
  • From: Philip McIntosh <email@hidden>
  • Date: Wed, 07 Dec 2011 18:20:47 -0700


However when I load in on an armv6 iPod it works mostly perfectly except when I try to divide by zero (or try to operate on numbers that do not have legal decimal point formatting) it crashes.

Try turning off thumb when deploying to armv6 (add -mno-thumb to your Other C Flags in project settings). There is a compiler bug where thumb generation where it may generate invalid code in places.

Well son of a gun Dave that did it. Should that turned off on all projects no matter what? I guess I still have a lot of research to do (starting with figuring out what the heck thumb generation is) to make sure it is compiling correctly for armv6 (but I do need it run on both armv6 and armv7, and iOS 4.2.1 - 5), but that one change has eliminated the crashes. BTW, the iPod is running 4.2.1. Thanks a lot.

 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

  • Prev by Date: Re: Clang LLVM 1.0 Error
  • Next by Date: Doesn't Xcode 4.2 support instancetype?
  • Previous by thread: Re: Clang LLVM 1.0 Error
  • Next by thread: Doesn't Xcode 4.2 support instancetype?
  • Index(es):
    • Date
    • Thread