Apple encourages employees to be themselves so, if you don't feel comfortable in formal wear, it's not a necessity. Your clothing creates an impression of your character, and Apple wants to get a flavour of this. It is best to dress smartly, but don't be afraid to express your personality.