Cocoanetics/DTCoreText — Issue #106: crash when using framework build
Author: TomSwift
Created: 2012-01-12 20:21:51+00:00
State: open

My non-ARC app is using the .framework build and sets the -all_load, -fobjc-arc, and -ObjC linker flags as prescribed.

Most everything seems to work just fine, except for an instance where the app crashes when setting the attributed string to the DTAttributedTextContentView. I've had no problem with this until I passed an attributed string, created from a HTML fragment, which has

and
tags in it.

The debugger shows the crash somewhere inside CGRectCenter.

This only happens on the device, not in the simulator. And, if I switch the app to use the .a static library it works fine on the device.

Any ideas for me to try? I prefer the .framework but can use the .a static libs if necessary. Is the appropriate approach in this case to build two .a libs, one for the device and one for the simulator and link them both?