The building code requires the alarms be hard-wired, have back-up power, and that all the horns sound if one sensor detects fire. It does NOT require they be all on one circuit, or even that they be 'smoke alarms' at all.
So, first off, you can install a proper central-panel fire alarm system, rather than the usual 'smokes.' That's one alternative.
The inspector has a point; manufacturers' instructions give an amp load, and limit the quantity of detectors on any one circuit. However, that yellow 'communication' wire is quite capable of being used to tie together alarms on different circuits. (I'd double check with the manufacturer to make sure; I think some also want you to have an 'interconnection module')