It's because [NSMutableArray arrayWithCapacity:]
expects an integer, and not an array, as an argument.
Assuming you want to create a mutable array with the same initial capacity as the array passed-in, then you probably meant:
NSMutableArray *objects = [NSMutableArray arrayWithCapacity:venues.count];
or simply:
NSMutableArray *objects = [NSMutableArray new];
(and forget about the initial capacity, given you are using [objects addObject:]
).