我终于搞清楚了!
将解决方案留在这里以防其他人应该遇到同样的问题。
显然我有一个较旧版本的expo-cli,即使我尝试使用多次更新它 npm install -g expo-cli 。命令似乎运行良好,但expo-cli仍然是相同的版本。
npm install -g expo-cli
我尝试使用npm卸载,但似乎没有任何效果。 expo-cli仍然可用。我想这可能是因为我在开始使用nvm之前安装了它。
然后我决定手动删除它。我在mac上运行,并且不知道是否有更正确的方法来卸载它。但这似乎有效!我删除了/ usr / bin / expo和/ usr / bin / expo-cli。然后我跑了 npm install -g expo-cli
然后我更新了应用程序的推送证书:
expo build:ios --clear-push-cert
我在我的测试设备上使用testflight安装了应用程序,现在我按预期获得了一个令牌!
我唯一感到好奇的是它要求获得访问照片的权限。
我希望这可以帮助其他人解决同样的问题。
感谢花时间阅读我的问题。