Question: I was trying to use mongoose getter to cast all user password before send out. It works perfectly.
However, on method "comparePassword", I need the passwordstring to compare sothen I can authenticate.

Is there a way to bypass the getter under certain conditions in mongoose? Thanks in advance! 

Code Example:

```
function castpassword (pw) {
  return 'keyboard cat';
}

var AccountSchema = new Schema({
  password: { type: String, get: castpassword }
});

AccountSchema.methods.comparePassword = function (candidatePassword, cb) {
    // random hash vs keyborad cat === not authenticated
    crypt.compare(candidatePassword, this.password, function (err, isMatch) {
        if (err) return cb(err);
        cb(null, isMatch);
    });
};
....

Account.findById( someId, function (err, found) {
  console.log(found.password); // 'keyboard cat'
});

```

Answer: 
Unchecking "Upload your app's symbols to receive symbolicated reports from Apple" option fixes the "Symbol tools failed" error when you Archive the app in Organiser window of Xcode.[![enter image description here](https://i.stack.imgur.com/S1I6j.png)](https://i.stack.imgur.com/S1I6j.png)
Could also be that there is a framework unnecessarily added in 'Embed Frameworks' in Xcode Build Phases