My game crashes on iOS when run on real device and installed from TestFlight. It did not use to do this so I am not sure what changed. I get no error message, the game just starts, loads up, and dumps back to iOS main menu screen. I can then restart the game and it will load up, crash back to iOS main menu and so on. Repeat forever if you like.
The xcode device log shows this error:
<Notice>: -[StoreManager provideContent:]: unrecognized selector sent to instance 0x1702349a0
<Notice>: *** Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '-[StoreManager provideContent:]: unrecognized selector sent to instance 0x1702349a0'
*** First throw call stack:
(0x19037efd8 0x18ede0538 0x190385ef4 0x190382f4c 0x19027ed2c 0x10076e244 0x19d44b6e4 0x19025a700 0x19d44b660 0x19d44c158 0x19d44c9bc 0x19d44c384 0x18f2369e0 0x18f2369a0 0x18f23b5e8 0x19032d0c0 0x19032acdc 0x19025ad94 0x191cc4074 0x196513130 0x1000812f8 0x18f26959c)
It is maybe related to some in-app purchase stuff. I cannot quite figure out which, since I get no error message. I do call GetInAppPurchaseLocalPrice() several times after the app has booted up to load up the localized prices. When I run the game locally with broadcast on the same device, it does not crash. But it also never manages to load any of the pricing information in the broadcast scenario, likely because it does not have some right signature on the app itself or something. So this only happens with the actual valid IAP codes set up and the calls made when running the game from TestFlight. Or it could be anything else, just my guess on the information I have..
This kind of stops me from submitting the game to the app store at all now..