是否有一种方法可以使用“我的Mac(专为iPad设计)”在M1机器上为iPad编译的应用程序的缓存?
我正在使用设备运行我的应用程序:“我的Mac(为iPad设计)”。
我正在尝试调试一个问题,即iPad似乎无法检测到我何时授予收到推送通知的权限。此问题仅在物理iPad上可再现,而不是在模拟器上。
我能够通过使用“我的Mac(为iPad设计)”的选项运行应用程序来重现该问题。但是,我找不到重置应用程序缓存并将其完全从M1删除的方法。每当我重新运行(清洁Xcode和派生数据目录后)时,我不会再次提示通知,并且似乎是第一次得到我回复的答案,即它已接受了推送通知,并且用户仍然签名在。
是否有一种方法可以以某种方式重置缓存,将应用程序从M1(或其他内容)删除并在我需要时新鲜运行应用程序?
提前致谢。
编辑:仅凭您的信息,我没有实际的iPad。我正在使用附件图片中显示的新功能进行测试,该功能使M1模拟物理iPad(可以使用相机和麦克风),并获取推送通知。
编辑2:添加更多信息。 XCode 13.3 MacOS 12.2
I am running my app with device: "My Mac (Designed for iPad)".
I am trying to debug a problem where the iPad does not seem to detect when I grant permission to receive push notifications. This issue is only reproduceable on a physical iPad, not on a simulator.
I was able to reproduce the issue by running the app with the option "My Mac (Designed for iPad)". However, I cannot find the way to reset the cache of the app and completely delete it from my M1. Whenever I re-run (after cleaning Xcode and derived data directory), I do not get prompted for the notifications again and it seems to be getting the answers I replied the first time, i.e. it has push notifications accepted and the user is still signed in.
Is there a way to somehow reset the cache, delete the app from the M1 (or something else) and run the app fresh whenever I want?
Thanks in advance.
Edit: Just for your information, I do not have an actual iPad. I am testing with the new feature shown in the attached picture which makes the M1 simulate a physical iPad (which can use the camera and microphone), and get push notifications.
Edit 2: Adding more info.
XCode 13.3
MacOS 12.2
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
要清除缓存,请删除此文件夹:
〜/library/containser/{cfbundlename}
删除应用程序,在启动应用程序时右键单击应用程序图标,请选择“ options-”发现者。删除突出显示的
.app
文件。To clear the cache, delete this folder:
~/Library/Containers/{CFBundleName}
To delete the app, right-click on the app icon when the app is launched, select Options->Show in Finder. Delete the highlighted
.app
file.