God might not know the future if His creation included the ability of humans (or any creature) to have free will. In that case, some outcomes would be unpredictable. To claim that God created the universe is not the same as claiming that God is omniscient. What gets folks into trouble is claiming that God is omnipotent and omniscient, which presents the logical conundrum you suggest.