我正在遵循这里的指示。
但是我运行的任何命令都会失败,如下所示:
Error: Current platform "darwin 23" does not match expected platform "darwin 22"
Error: If you upgraded your OS, please follow the migration instructions: https://trac.macports.org/wiki/Migration
OS platform mismatch
while executing
"mportinit ui_options global_options global_variations"
Error: /opt/local/bin/port: Failed to initialize MacPorts, OS platform mismatch
因此我查看了迁移说明,我升级了 XCode,并尝试第三步,即:
sudo port migrate
我收到与上述相同的错误。
我该如何解决这个问题?我想彻底删除 Macports,因为我不知道它在哪里安装的,做了哪些更改等。