swiftxcodesiren

Change the countryCode for Siren Cocoapod


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 ?


Solution

  • 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