Whether Iran’s ruling regime improves its behaviour won’t depend on how many of their citizens can use their phones to hail taxis. Yet US sanctions are preventing American technology companies from offering Iranian-made apps in their online stores — a bad bargain for both US business and policy.

Apple has removed the apps from its App Store out of an abundance of caution. Google followed suit last week, taking down Iranian apps for Android phones. US law prohibits American companies from doing business in Iran, though the government grants exceptions for the national interest. In that spirit, and to support the emergence of a Westernised middle class in Iran, the US government should make clear that the apps are allowed.

An estimated 40 million Iranians own smartphones. About 15 per cent use iPhones, though Apple does not have a physical presence in Iran. Until recently, users could download iPhone apps made by Iranian companies and hosted on App Stores outside Iran; Iranian-made apps for Android phones were available on Google’s Play store.

That changed late last month, when Apple informed about a dozen startups that their apps will no longer be offered. The companies affected by the ban offer such products as a meal-delivery service and a ride-hailing app. Iranians who have already downloaded the apps will still be able to use them, but companies won’t be allowed to update their services or attract new users.

In its suspension notices, Apple said that “under the US sanctions regulations, the App Store cannot host, distribute, or do business with apps or developers connected to certain US embargoed countries.”

That’s technically true. At the same time, the regulations give US technology companies a general license to provide Iranians “services incident to the exchange of personal communications over the internet.” Designed to encourage the use of social networks like Twitter and Facebook — currently blocked by the Iranian government — this provision means Apple and Google are permitted to give Iranians access to US-made mobile apps. But because of the uncertainty about whether and where apps can be hosted, Iranian startups increasingly rely on homegrown, third-party app stores to reach consumers.

Clarity is essential — for the sake of both US companies and Iranian entrepreneurs. The most sensible step is for the government to grant licenses to US companies to continue to host Iranian-made mobile apps in their stores.

The goals of US sanctions policy are to pressure Iran’s government to adhere to limits on its nuclear programme, end its support for terrorism and respect human rights. Restrictions on apps have instead handed Iran’s government a propaganda gift, allowing it to rail against American technology companies for discriminating against Iranian business people and consumers.

The current administration, with reason, does not trust the Iranian regime. Nevertheless, it remains in the US’s interests to support the Iranian people’s aspirations for change, which technology can help bring about. Allowing Iranian entrepreneurs to sell their apps would serve as a reminder that, in the long game for Iran’s future, the US is still on their side.