I agree that there can be a charity can cause a vicious cycle by damaging local industry. However, it is pointless to talk about charity in isolation without considering other factors such as the harm caused by trade policies of developed nations (to be fair, is in their national interest), "exploitation"[1] of resources by MNC with no meaningful value-addition in host country, as well as a general lack of accountability among African political leaders.
Cutting all aid seems like an easy solution, but it won't spur development of local farms or industries if they are undercut by subsidized goods from abroad. The 'difficult' solution, but more likely to work, would be overhauling leadership culture, and getting a fairer trade system in place (e.g. no farm subsidies) - sadly, I do not see any appetite for either due to self-interest among the actors.
1. scare-quotes because raw resources are extracted and paid for, but the value addition is done abroad. Ghana produces a huge chunk of the world's cocoa, but most of the profits are captured by European chocolateers.