Generally, iPhone error 6 means that updating or restoring process with iTunes fails to succeed. For such an issue, you can try to hard reset your iPhone, update iTunes, set the iPhone into DFU mode, or use a lossless
iPhone system recovery tool before bringing your iPhone to the Apple store.