<!--
{
  "documentType" : "article",
  "framework" : "ObjectiveC",
  "identifier" : "/documentation/ObjectiveC/local-variable-storage-duration",
  "metadataVersion" : "0.1.0",
  "role" : "collectionGroup",
  "title" : "Local Variable Storage Duration"
}
-->

# Local Variable Storage Duration

This macro indicates that the values stored in certain local variables should not be aggressively released by the compiler during optimization.

## Topics

### Constants

  <doc://com.apple.documentation/documentation/Foundation/NS_VALID_UNTIL_END_OF_SCOPE>



---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)