是否有一种方法可以使用“我的Mac(专为iPad设计)”在M1机器上为iPad编译的应用程序的缓存?

发布于 2025-02-07 00:29:08 字数 623 浏览 0 评论 0原文

我正在使用设备运行我的应用程序:“我的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)".

enter image description here

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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

分分钟 2025-02-14 00:29:08

要清除缓存,请删除此文件夹:

〜/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.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文