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

前端 未结 1 1479
失恋的感觉
失恋的感觉 2021-02-10 17:55

The docs for -[NSURL startAccessingSecurityScopedResource] state:

You must balance every call to the startAccessingSecurityScopedResource met

相关标签:
1条回答
  • 2021-02-10 18:47

    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)
提交回复
热议问题