There are a few things that could cause your macarons to crack. One possibility is that you didn't let the shells rest long enough before baking. This can cause the cookies to spread too much and crack. Another possibility is that you baked the cookies at too high of a temperature. Make sure to follow the recipe closely and check your oven temperature to ensure it is accurate.