We are considering the development of a new service, We would like to ask for detailed information on the feasibility of the following.
Is it possible to encapsulate only xcframework, such as encapsulating xcframeworkA into xcframeworkB? If the above is possible, will the application incorporating the xcframework in the above state pass the review of apple?
I’m not entirely sure what you’re asking for but, in general, it’s not a good idea to build XCFrameworks that relies on nesting. That’s because only macOS supports nested frameworks. For iOS and all its ‘child’ platforms, frameworks can only be placed at the top-level Frameworks directory. See Placing Content in a Bundle for the details.
Now, it’d be cool if Xcode was able to recognise this and ‘flatten’ out the frameworks, but that’s not something it can do right now.
One option in this space is to create mergeable frameworks. That way you can ship a bunch of non-nested XCFrameworks and each user of your frameworks gets to choose whether they want to merge them or not. For more info on that topic, see the links in An Apple Library Primer.
Share and Enjoy
—
Quinn “The Eskimo!” @ Developer Technical Support @ Apple
let myEmail = "eskimo" + "1" + "@" + "apple.com"