Why does import xcframework in App target allows another dynamic framework to use that xcframework?

The structure looks like this

  • App target adds FBSDK xcframework
  • App target adds another in-house custom dynamic framework target

My question is:

After adding FBSDK xcframework in the app target, I can also use FBSDK classes in my dynamic framework target (which I didn't add the FBSDK framework to.)

As you can see, I only add FBSDKCorekit.xcframework to the app target

But in MyFramework's class, I can use FBSDKCoreKit without adding it as a dependency to MyFramework.framework

Does anyone know why? Based on my understanding, if you didn't add specific framework to specific target, you can't use it.

Terms of Service

Privacy Policy

Cookie Policy