【发布时间】:2021-02-26 22:05:31
【问题描述】:
我关注了一篇关于推送通知入门的raywenderlich.com 文章,因为我想在我的应用程序上试用它,并且能够轻松跟进,直到您在终端中运行命令的部分和实际模拟通知。
当我运行命令xcrun simctl push 'device identifier here' site.bundleidentifier.example eventnotification.apn 时,我收到一条错误消息Invalid device: 'device identifier here'。我似乎无法弄清楚这个问题,我直接从 Xcode 获得了标识符。我去了 Window -> Devices & Simulators -> Devices 并获取了我手机的标识符。我似乎无法弄清楚如何解决这个错误,如果有人知道我可以如何解决这个问题,那就太好了,谢谢。
【问题讨论】:
标签: swift xcode push-notification apple-push-notifications apn