You can claim the child care credit if you are self-employed and have a self-employment profit.
If your self-employment results in a loss on Schedule C, you are considered as not having earned income and cannot claim the child care credit.