I’ve been working on a cocos2d-x v 2.2.6 app, but since moving to XCode 11.5 I have been having some problems. I’m finding those problems hard to solve because I’m not a coding genius.
If I could use a different version of XCode to build my app, then the problems would be gone. I’m wondering if it’s possible to get libc++ versions made for sdkbox-admob_v2.4.3.0, sdkbox-iap_v2.4.3.0,
sdkbox-sdkboxplay_v2.4.3.0.
When I was using version 2.4.3.0 for Admob, IAP and SDKBoxPlay it worked really well. With no problems at all. Is it possible to make libc++ versions for these?
I would be very grateful if libc++ versions can be made for these. It would save me a lot of pain. If it’s possible I would really appreciate it.
It’s not so much a compile error, it’s more a problem of things not working properly anymore. There are a few issues which I think have to do with thread safety.
The first problem I have is with IAP. When I make a purchase from app store, the screen freezes while the purchase process completes but now it never unfreezes. The purchase completes on the Apple app store but my game screen is still frozen, no animation, buttons don’t work etc. This never happened in the past up until XCode 9.4 everything was fine. Then in XCode 11.5 I have this issue. I made another post about this
Another problem I have is that preloading sounds with the SimpleAudioEngine sometimes causes a crash, but not always. It seems that preloading sometimes accesses a bad bit of memory, maybe it hasn’t been allocated properly. This never happened in the past, the SimpleAudioEngine always worked well. That’s why I’m suspicious about whether this is a thread issue.
There is one more problem I’m having but I don’t know if this is to do with threads or not. When I press the home button on my device to leave the app, then I open the app again and it enters the foreground, my splashscreen / launch image comes back. This never happened before I updated to XCode 11.5. It’s annoying because the splashscreen comes back but won’t go away. So I just have a splashscreen visible and not my game. This also causes a crash sometimes. I haven’t got a clue how to solve this problem because I googled for it and found nothing.
So I’m thinking that if my problem is to do with threads can I use this function to help solve the problems