Why not the south of Spain? Just as much sun and more politically stable.
It's very very far from being a perfect or even good country (for most of us moroccans), but it has an almost bulletproof record w.r.t foreign investment. The usually very slow "makhzen" (state bureaucracy) can suddenly become super super efficient to attract foreign capital. Tanger-MED and the huge automobile industry around it is a very good example of that.