alexrothenberg / motion-addressbook

MIT License
89 stars 30 forks source link

Crash on an iPhone 5 device #10

Closed arkan closed 11 years ago

arkan commented 11 years ago

Hello,

I just tried to execute my app on an iPhone 5 (iOS 6.0.1) and it crashes due to motion_addressbook.

For instance, calling this method AddressBook.ios6_create will crash the application due to the code on line 31 on this file: https://github.com/alexrothenberg/motion-addressbook/blob/master/motion/address_book.rb#L31

Program received signal EXC_BAD_ACCESS, Could not access memory. Reason: KERN_PROTECTION_FAILURE at address: 0x2fcbafec 0x389560d4 in _retainedComponentString ()

AddressBook.authorization_status returns not_determined

Any idea ?

alexrothenberg commented 11 years ago

Sorry for the delay getting back to you. I just release a version 0.1.3 of this gem that fixes this issue.

Thanks to @rainux for making the necessary changes in pulls #12 & #13.

Please let me know if you still see problems with the latest version.

arkan commented 11 years ago

Yeah, I saw the pull requests, and I was already using the code pushed on Master.

And It works like a charm.

Thanks :-)