Paludis
Paludis

Reputation: 734

UITextField causes crash in iOS 5, works fine in iOS 4

I have a really weird problem where if I click on a UITextField, any UITextField in my app will crash with this error:

0_CreateCachePathEmbedded(__CFString const*, unsigned char)

0x0246ac4f <+0375> mov (%esi),%esi

Thread 5 WebThread: Program received signal: "EXC_BAD_ACCESS"

enter image description here

I tried adding a UITextField in interface builder not linked to anything, still get the same crash. Everything works fine in iOS4.3 simulator.

What on earth could be going on??

Upvotes: 2

Views: 1288

Answers (3)

Rebecca Duhard
Rebecca Duhard

Reputation: 916

This also happened for me and changing the product name fixed it. I had a ∂ character in my Product Name for my debug/dev version of the application which seemed to work fine on iOS 4.3 but not on iOS 5. It is an impossible correlation to figure out that tapping on a random UITextField (not all caused this for example if I changed the UITextField to secure it did not crash) would cause a crash because the Product Name contained a non-standard character.

I hope this helps someone else having this issue as I spent days trying to debug this.

Upvotes: 1

Yaron Shani
Yaron Shani

Reputation: 184

in my case it was the product name in the target settings which caused this strange error.

Upvotes: 0

Paludis
Paludis

Reputation: 734

Still not sure what the problem was but I was able to fix it by just copying all code across to a new project.

Upvotes: 0

Related Questions