SAN FRANCISCO — Apple reduced its revenue expectations for the first time in 16 years on Wednesday because of poor iPhone sales in China, an unexpected development that underscored the slowing of China’s economy and raised fears of further turmoil in global markets.

Apple’s surprise announcement was the clearest confirmation yet that the Chinese economy is in serious trouble. Beijing’s effort last spring to clamp down on credit, which sparked a slowdown, and an intensifying trade war with the United States have unnerved consumers and businesspeople alike.

“Apple is a bellwether,” said Mark Zandi, chief economist at Moody’s Analytics. “The iPhone is something that everyone knows and buys, and if people aren’t buying it, then that’s a pretty good sign they’re having a hard time.”

It is not clear whether this is a problem particular to Apple or whether China’s slowing economy will affect other American companies, especially the tech giants and Detroit automakers. Either way, investors are bound to grow nervous, especially after the stock market’s recent gyrations. Tech stocks, which drove much of the bull market of the past few years, have become a drag on it.