Adding files after every generation

I’m fairly new to Apollo so apologies for the dumb question…

After generating files through CLI, in xcode, do I have to do the process of:
right clicking -->“Add files to …” → select *.graphql.swift file
before i am to access the query/mutation/subscription or is there an automated way to do this?