This is from Anthony Zee's Einstein Gravity in a Nutshell on page 600, where he explains how to derive the connection form $\omega$ in Cartan's vielbein formalism.
The example in the lower part is $\Bbb S^2$, given by $\mathrm{d}s^2=\mathrm{d}\theta^2+\sin^2 \theta\,\mathrm{d}\phi^2$, and $e^1 = \mathrm{d}\theta$ and $e^2 = \sin\theta\, \mathrm{d}\phi$.
I don't understand how $\omega^{12}$ can be $cos\theta\, \mathrm{d}\phi$. Since $e^1=\mathrm{d}\theta$, we must have:
$$ \mathrm{d} e^1 = 0 =-{\omega^1}_\alpha e^\alpha = -{\omega^1}_1 e^1 - {\omega^1}_2 e^2 $$
This can only be true if ${\omega^1}_1 = {\omega^1}_2 = 0$.
But Zee's result (from $\omega$'s antisymmetry) is ${\omega^1}_2 = -\cos\theta\,\mathrm{d}\phi$.

Not quite, $\omega _{ij}$ is an antisymmetric matrix of 1-forms. S0 $\omega_{ii}=0$ always, but $\omega_{12}=f e^2$ with $f$ some function to be determined solves your equation.
Also the correct equation has a wedge product, \begin{equation} de^i+ \omega^i_{\ k} \wedge e^k=0 \end{equation}