add source code for ios/mac framework