Unity 3.5.x ios player build fails

Getting a strange error during AOT cross-compiling (building for iPhone from Unity 3.5.7 (also happens on 3.5.4):

Error building Player: NullReferenceException: Object reference not set to an instance of an object

Error in file: line: -1

Any clues from the gurus as to what could cause the unknown file and line#?

Are you using some 3rd party .NET libraries?

Yes. Sage and Playmaker

Try removing them one by one and see if it fixes problem. I probably would start with the sage.

P.S. do you have managed code stripping set to on?