Apple had argued the court order would give courts unlimited authority to force companies to work as their agents.
It said: “From the beginning, we objected to the FBI’s demand that Apple build a backdoor into the iPhone because we believed it was wrong and would set a dangerous precedent. This case should never have been brought.”
It pledged to “continue to increase the security of our products”.