rico2logout
V2EX  ›  macOS

[求助] Mac 开发问题,关于 com.apple.systemevents 权限

  •  
  •   rico2logout · May 13, 2019 · 4079 views
    This topic created in 2567 days ago, the information mentioned may be changed or developed.

    我写了个 Mac 的 App 做一些 Xcode 自动化的事情,原本很顺利的上架了,后来第二次更新的时候,就因为 com.apple.systemevents 的权限被拒了

    We've determined that one or more temporary entitlement exceptions requested for this app are not appropriate and will not be granted:

    com.apple.systemevents

    We understand this may prevent the app from being approved for the Mac App Store. We encourage you to investigate other ways of implementing the desired functionality.

    我也在网上搜过一些资料,自己不是很确定,Mac App 开发的资料太少了...

    1. 试过通过 AppleScriptObjC 的方式调用,单独获取 Xcode 的权限,以报错“ Application isn ‘ t running ” 无果;
    2. 看到 stackoverflow 上有人说,调用 com.apple.systemevents 是不能上架的(这是真的吗?

    求懂的大佬指教,谢谢

    3 replies    2019-05-16 17:42:17 +08:00
    rico2logout
        1
    rico2logout  
    OP
       May 14, 2019
    我是发错地方了吗...33 个人查看,0 回复
    rico2logout
        3
    rico2logout  
    OP
       May 16, 2019
    @nyanyh 我看了一下 AppleScript 的资料,然后才意识到 System Events 似乎算是个 app ?这是意味着只要 AppleScript 调用了这行:

    tell application "System Events"

    都不能上架了吧?

    看了 Script Editor 里的 Library 只操作 Xcode 内的事情能做的事情太少了...基本上能做的就是一些 build configuration 相关的事情
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   2884 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 41ms · UTC 02:45 · PVG 10:45 · LAX 19:45 · JFK 22:45
    ♥ Do have faith in what you're doing.