# Is it possible to verify if an XCFramework was built for distribution?

**URL:** <https://forums.swift.org/t/is-it-possible-to-verify-if-an-xcframework-was-built-for-distribution/67910>\
**Category:** Using Swift\
**Tags:** binary-framework, xcframework\
**Created:** [October 17, 2023, 6:59pm UTC](https://forums.swift.org/t/is-it-possible-to-verify-if-an-xcframework-was-built-for-distribution/67910 "2023-10-17T18:59:56Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![hisaac](https://sea2.discourse-cdn.com/swift/user_avatar/forums.swift.org/hisaac/32/12405_2.png) [@hisaac](https://forums.swift.org/u/hisaac)\
**Post date:** [October 17, 2023, 6:59pm UTC](https://forums.swift.org/t/is-it-possible-to-verify-if-an-xcframework-was-built-for-distribution/67910/1 "2023-10-17T18:59:56Z")

</div>

Is it possible, given just an XCFramework and not having access to the code or build system used to create said XCFramework, to determine if it was built with the `BUILD_LIBRARY_FOR_DISTRIBUTION` flag enabled?

Is the presence of a `.swiftinterface` file enough to confirm, or is there something else I can check for?
