[xcode] fix build for .framework