The tech giant Apple will withhold its support from the Republican National Convention in July because of its discomfort with comments by Donald J. Trump, two people briefed on the company’s decision said on Saturday.

Apple is the latest in a string of companies dropping out as sponsors of the Republican convention. Few have attributed their decisions directly to Mr. Trump, the party’s presumptive presidential nominee, but some have privately expressed worries about having their products associated with the candidate and his ideas.

Officials at Apple declined to comment Saturday. But the company’s move, first reported by Politico, was relayed to Republican officials and was described by two people briefed on the decision, who asked for anonymity because they were not authorized to discuss it publicly.

Apple’s chief executive, Tim Cook, has been a frequent target of Mr. Trump’s because of the company’s use of Chinese manufacturing and its fight with the United States government over the encryption of data on its smartphones. One of those briefed on Apple’s decision said the company objected not only to beliefs Mr. Trump has expressed on trade with China and data encryption, but also to his comments about Muslims and immigrants.