Hi, thanks for mentioning the .exp file approach.
This works well with the scenario I explained above (dynamic framework depending on static libs).
However, when I tried this with a slightly different project configuration, I faced linker errors.
I replaced the static libs with dynamic libs. So, now I have a dynamic framework with 3 target dependencies, each being a dynamic library.
This project builds and runs fine when tested on the iOS simulator. But according to our other discussion here, when I test this on a real iPhone, it builds fine but fails at runtime with a linker error: 0_abort_with_payload
and Xcode shows the following assembly instructions specifying the error Thread 1: signal SIGABRT -
dyld`:
0x1aa0a15f8 <+0>: mov x16, #0x209
0x1aa0a15fc <+4>: svc #0x80
-> 0x1aa0a1600 <+8>: b.lo 0x1aa0a1620 ; <+40>
0x1aa0a1604 <+12>: pacibsp
0x1aa0a1608 <+16>: stp x29, x30, [sp, #-0x10]!
0x1aa0a160c <+20>: mov x29, sp
0x1aa0a1610 <+24>: bl 0x1aa040064 ; cerror_nocancel
0x1aa0a1614 <+28>: mov sp, x29
0x1aa0a1618 <+32>: ldp x29, x30, [sp], #0x10
0x1aa0a161c <+36>: retab
0x1aa0a1620 <+40>: ret
Please let me know what am I doing wrong here. I noticed that the dynamic libs are not present in the .app bundle located in the product build output directory. I added a Copy Files build phase to copy these libs to the .app bundle but still face the same error.