【发布时间】:2018-12-09 19:31:49
【问题描述】:
我为 OSX 制作了一个简单的 Hello World 应用程序,它使用 C-API 创建一个上下文组、一个上下文、运行一个脚本并调用我自己的函数,一切都很好。
但我不能做的是让我的 app/JSContext 出现在 Safari 的可检查应用程序列表中。 (它只是空的)
我不知道这是否应该是自动的,或者我是否需要在上下文、VM 等中启用某些东西(在文档、标题中找不到任何关于可调试/可检查的引用)
这个项目声称可以做到(基于 wiki 中的屏幕截图),但查看代码我看不到任何特定的配置选项、设置等 https://github.com/kasper/phoenix
这个答案表明 iOS 应用程序需要签名...... macOS 应用程序也需要签名吗? Safari: no Inspectable applications
使用 Xcode 10B61、Safari 11.1.2、OSX 10.13.6
有人用 Safari 调试过 macOS 应用吗?
【问题讨论】:
-
该项目作者的一些跟进; twitter.com/kasper/status/1080507639451340800
-
I was wondering how to get it working myself as well, but it just automatically started working after building with some specific Xcode 9 version. The app is indeed signed with a Developer ID certificate, but it doesn’t seem to be clear whether this is a requirement or not.
标签: macos javascriptcore