Do not understand all that is involved, but it sure seems right for Apple to refuse to provide the government a backdoor. This case is only hard because the villains are so evil. Here is a learned discussion.
There are a lot of interconnected components. Too many it can be argued. This article is an argument for this.
It is very convenient to leverage others code. Additionally, it is convenient to let others host the code that our applications rely upon. This is fine, even great, in school. But in the real world™ there are consequences.
“There are two ways to get enough. One is to continue to accumulate more and more. The other is to desire less.” — GK Chesterton
Microsoft created a bot that learns. Then they showed it the internet as example behavior. It promptly learned to be a “genocidal, foul-mouthed, sex-crazed nazi.” Why wasn’t that the expected result?