I have created one custom framework (MyFramework.framework), I am trying to set ASLR (PIE) flag for that framework. But when i use otool it does not show this flag. But PIE flag is shown for any other ipa. Is there way i can set the PIE flag for framework and check if it is applied using otool.
Check ASLR (PIE) flag for framework
i met the same issue with yours, have you resolved it?
No. PIE is only for executables (Position Independent EXECUTABLE).
It won't show up on a framework, only the final binary in .ipa. The linker will ignore the option, it's not valid on a library type.
https://github.com/aosm/ld64/blob/master/src/ld/Options.cpp#L3437-L3440