What are the current kernel resource limits on security-scoped bookmarks?

前端 未结 1 1858
遇见更好的自我
遇见更好的自我 2021-02-10 18:15

The docs for -[NSURL startAccessingSecurityScopedResource] state:

You must balance every call to the startAccessingSecurityScopedResource met

1条回答
  •  予麋鹿
    予麋鹿 (楼主)
    2021-02-10 18:41

    Ballpark figure is between 1000 and 2500. I read three recent discussions in the Developer Forums at apple. If you are a registered developer at apple you may find it here:

    • More than thousand: Limitation of startAccessingSecurityScopedResource NSURLs
    • At about 2500: sandbox_consume_fs_extension
    • Exact 1000 with QuickLook: Getting sandbox access to many files

    0 讨论(0)
提交回复
热议问题