If I have an opportunity of investment, let's call it investment (A), that costs $I$ in year 0 and gives me $CF_1$ in year 1, I will accept it only if $NPV>0$
$NPV = -I + \dfrac{CF_1}{1+k} > 0$
Now in order to discount the cash flows I have to choose $k$, the discount rate. $k$ will be the interest rate of an alternative investment with the same risk. Of course I don't choose a random investment as the alternative investment, but the best investment at the same risk, that is, the investment with the highest return but with the same risk.
This alternative investment, call it investment (B), is then at the efficient frontier. But how can investment (A) have a higher return then this alternative investment to begin with, given that investment (B) is at the efficient frontier?
Stated otherwise, If I choose investment (A), in year $0$ I will pay $I$, and after waiting one year, I will put $CF_1$ in my pockets.
If I choose investment (A), in year $0$ I will pay $I$, and after waiting one year, I will put $I(1+k)$ in my pockets.
I then choose (A) over (B) if the amount I receive after one year is greater in (A) than in (B), that is, if
$CF_1 > I(1+k)$
which is equivalent to the NPV condition.
But if investment (B) which return $k$ is at the efficient frontier, how can this last equation be satisfied at all? The best that (A) can do is give the same return as (B). So there should be no investments at all with $NPV>0$.
Or do I discount the cash flows with the rate of return of an alternative investment that is not at the efficient frontier? But in so doing I am ignoring an opportunity investment. I could invest the sum $I$ at that investment which is at the efficient frontier, and I would ignore that.