My application includes a singleton class represents general data. The latter contains the following atomic property :
// .h file
@property (atomic, strong) NSMutableDictionary *dataDictionary;
// .m file
@synthesize dataDictionary;
The dictionary is being used simultaneously from different threads (both setter and getter), and worked as normal without any crashes on iOS 6.0 - 8.4.
Recently I have run the application on iOS 9.0 simulator and it crashed (EXC_BAD_ACCESS) in arbitrary code calling the dictionary setObject:forKey:
method.
- Does anyone knows what have changed in iOS 9.0 that can cause those crashes ?
- Any clue how to solve this issue ?