Error in iOS 6 whith new sharing types

In iOS 6, it crashes because some constants do not exist before iOS 7