I'm trying to create an xcframework for a project that looks roughly like this:
CoolLib
├── include
│ └── A.h
├── lib
│ └── libdep.dylib
├── libA.dylib
└── libA.dylib.dSYM
└── Contents
├── Info.plist
└── Resources
└── DWARF
└── libA.dylib
By running this command:
xcodebuild -create-xcframework -library ./build/libA.dylib -headers ./build/include -debug-symbols /absolute/path/for/some/reason/build/libA.dylib.dSYM -output CoolLib.xcframework
I get a framework that does not include an of the contents of folder lib
. This results in my project failing when I try to launch it (but not build it) because of course dyld
cannot find the dependencies (which are pointed to using @rpath/lib/libdep.dylib
).
Is it possible to create an xcframework that includes such dependencies? Thanks