add NSParameterAssert for classForBuild