While fully digital precoding achieves superior performance in massive multiple-input multiple-output (MIMO) systems, it comes with significant drawbacks in terms of computational complexity and power consumption, particularly when operating at millimeter-wave frequencies and beyond. Hybrid analog-digital architectures address this by reducing radio frequency (RF) chains while maintaining performance in sparse multipath environments. However, most hybrid precoder designs assume ideal, infinite-resolution analog phase shifters, which cannot be implemented in actual systems. Another practical constraint is the limited fronthaul capacity between the baseband processor and array, implying that each entry of the digital precoder must be picked from a finite set of quantization labels. This paper proposes novel designs for the limited-resolution analog and digital precoders by exploiting two well-known MIMO symbol detection algorithms, namely sphere decoding (SD) and expectation propagation (EP). The goal is to minimize the Euclidean distance between the optimal fully digital precoder and the hybrid precoder to minimize the degradation caused by the finite resolution of the analog and digital precoders. Taking an alternative optimization approach, we first apply the SD method to find the precoders in each iteration optimally. Then, we apply the lower-complexity EP method which finds a near-optimal solution at a reduced computational cost. The effectiveness of the proposed designs is validated via numerical simulations, where we show that the proposed symbol detection-based precoder designs significantly outperform the nearest point mapping scheme which is commonly used for finding a sub-optimal solution to discrete optimization problems.