TORONTO—An Alphabet Inc. project aimed at creating a “smart city” on Toronto’s waterfront is facing resistance from local officials who are worried about the development’s direction and how Google’s parent company will handle residents’ personal data.

The local friction has raised doubts about Alphabet’s inaugural attempt to use urban design and technology to tackle modern-day issues, such as expensive housing, traffic congestion and environmental sustainability.

The...