fix code signing but/error on osx export (#2614)