Change the countryCode for Siren Cocoapod

1.2k Views Asked by At

Using Siren with Cocoapods :

[Siren Error] Error retrieving App Store data as the JSON results were empty. Is your app available in the US? If not, change the countryCode variable to fix this error.

This is the error I'm getting when I'm using Siren and my app is not available in US.
How to change my country code in Siren ?

1

There are 1 best solutions below

0
On BEST ANSWER

You can set the country code as follows:

let siren = Siren.shared
siren.apiManager = APIManager(countryCode: "RU")

This helps alleviate all the issues you might have. There were also some issues with Apple changing the JSON types, but it should have been fixed already