Chinese President Xi Jinping warned that Africa’s resources should not be used as a tool for geopolitical rivalry, as the United States steps up efforts to secure critical minerals on a continent where Chinese companies have major mining interests.