A fire at a Whitewater apartment building trapped residents and went to four alarms before it was brought under control.