My scenario:
- I’m creating a dynamically linked framework referred to as
A, wrapped into.xcframework - I rely upon different frameworks
BandCwhich are linked statically - Nonetheless, I do not need the shoppers of
Ato study in regards to the existence ofBandC - And due to this, I want to carry out single object pre-link through the linkage of
Ain order thatBandCare completely consumed byAand are to be by no means seen once more.
This job can be comparatively straightforward if as an alternative of static frameworks (.framework), I used static libraries (.a). On this case, I might be capable to simply plop the trail to the .a into the Prelink Libraries setting, set Carry out Single-Object Prelink to YES, disable the embedding – and the aim can be achieved.
Nonetheless, I’m dealing with the linkage in opposition to frameworks, not libs. The issue is that it has sources and bundles within it.
- If I put a path to the
.xcframeworkor.frameworkinto thePrelink LibrariesConstruct Setting, the construct fails:
Command MasterObjectLink failed with a nonzero exit code
cannot map file, errno=22 file '/Customers/*****/B/B.xcframework/ios-arm64/B.framework'
- And if I put a path to the precise executable contained in the framework (
B.xcframework/ios-arm64/B.framework/B), the construct succeeds. Nonetheless, not one of the sources ofB.frameworkare current within the ensuing output.
Is there a method to routinely copy sources throughout Single-Object Prelink?
