Their are 2 main reasons your frosting is lumpy- cold ingredients and unsifted powdered sugar. Make sure your butter and cream cheese are at room temperature before mixing. Try cutting them into smaller pieces to bring them to room temperature quicker and for easier mixing. Lastly, make sure to sift powdered sugar before using to avoid any clumps.