Thank you for your reply, I tried the above code and it still doesn't work, I am having the same issue, I am getting the error below and widget is not loading.
The widget is only showing this below:
Topic:
Developer Tools & Services
SubTopic:
Xcode
Tags: