Combine the sweet potato, onion, oil, lime juice, cumin, chili powder, cayenne pepper, and salt in a bowl and stir to coat. Transfer the sweet potato mixture to a sheet pan and bake for about 30 minutes, or until the potatoes are tender and the onions are beginning to brown, stirring halfway through cooking time.