First of all, there is no need to convert a NSMutableArray
into a NSArray
.
[encoder encodeObject:_myMutableArray forKey:kMutableArrayKey];
The real problem is not in the code you are showing, very probably one of the values in the array doesn't support NSCoding
. Note that everything you want to encode has to implement NSCoding
protocol.