In an AI apocalypse AIs won‘t care to fight weak humans but other AI. Much like human armies don‘t fight against ants. Therefore, the threat would be changes to the environment (incl. climate) that are beneficial to AI and detrimental to humans. So get a greenhouse, water and air purifier, …