The pledge made in a Friday tweet rebuffs Apple's attempt to shield its products from taxes being imposed on goods made in China as part of Trump administration's trade war with the world's most populous country.
Apple recently sent a letter to the Trump administration warning that the U.S. economy and its ability to compete will hurt if its products are hit with the tariffs.
The Cupertino, California, company has been assembling its Mac Pros in Austin, Texas since 2013, but a report surfaced last month that Apple plans to shift production to a factory near Shanghai.
Apple is reportedly moving Mac Pro production because it is having trouble finding enough skilled labor to assemble the computer in Texas.
Apple didn't immediately respond to a request for comment Friday, but has previously said the Mac Pro will continue to be designed and engineered in California. The company hasn't said where the computer will be assembled in the future though. Trump demanded in his tweet that they continue to be made in the U.S if Apple doesn't want to be exposed to a 25% tariff on electronics made in China.
Investors appeared unfazed by Trump's sparring with one of the world's biggest and most powerful companies. Apple's stock edged up $1.22 to $208.24 in Friday's midday trading.
The reaction probably would have been different had Trump made it clear that the tariffs will be applied to Apple's top-selling product, the iPhone, which has long been assembled in China. Mac computers, on the other hand, now represent a relatively small part of Apple's business, unlike the company's early years when it was its marquee product.