Question

I have an OS 4 app that was completely compatible with 3.x up until I added eventkit. Is there a way I can omit this feature if they are on a 3.x device? I have

#if __IPHONE_OS_VERSION_MAX_ALLOWED >= 40000
...code
#endif

around my stuff but it seems to be failing on initial launch and I am thinking due to the linking of the EventKit.framework. The only error i am getting is the super descriptive

Data Formatters temporarily unavailable, will re-try after a 'continue'. (Cannot call into the loader at present, it is locked.)

and if i remove this framework and comment out my eventkit code, it all works fine. Is there no way to prevent the linking of newer frameworks for older OS'?

Was it helpful?

Solution

You should weak-link EventKit. Open your target, find EventKit under Linked Libraries, and change its type from Required to Weak.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top