Use more generalized codesign sample code for signing frameworks properly