@User there is a '
test_stdcells' in the xschem_sky130 repository, go into that circuit and follow the instructions therein.
Basically for every gate you use in the schematic you need to include the corresponding subcircuit netlist. Since doing this by hand is boring there is a code.sym block that invokes a script to do the task.