Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

nil localizedTitle in SKProduct

I'm implementing an in-app store and am successfully getting SKProducts from the app store. The price information and description in the SKProducts are fine, but all my localizedTitles are nil. In iTunes Connect, the reference name is set, and I added an English language and set the Display Name and Description. Any idea why localizedTitles is coming back as nil?

like image 698
leftspin Avatar asked Jun 21 '12 08:06

leftspin


2 Answers

Same issue here, check https://devforums.apple.com/message/681255 - you are not alone. It's something at the Apple side.

like image 79
Andrey Krylov Avatar answered Oct 14 '22 21:10

Andrey Krylov


Roll back your version number in Xcode.

For example, in my situation, I had MARKETING_VERSION=1.23 in Xcode. I had submitted this on App Store Connect as version 1.23. Apple then rejected version 1.23 in review. After this rejection, SKProductsRequest continued to serve a list of SKProducts, but each product's .localizedTitle and .localizedDescription were set to nil.

In Xcode, I changed my version number (i.e. MARKETING_VERSION) back to 1.22. After this, the .localizedTitle and .localizedDescription were served correctly again.

Temporarily changing the version number is a workaround for testing and development prior to resubmitting your app for review.

This is surely a bug on Apple's side. I have submitted a bug report here, but it seems like I can't get a public link to the report.

like image 36
jameshfisher Avatar answered Oct 14 '22 21:10

jameshfisher