Xcode 11 - ios 13 - Cocos not running

Hi! I downloaded xcode 11 beta and i tried to run my game. Cocos library does not compile and gives teh following error. I am using cocos2d-x 3.15.1. Can anyone help?

1 Like

We havenā€™t done any testing with the new Apple software offerings. I plan to once I test a few things I promised to do.

1 Like

great thanks! )

hi, Have you solved this problem. I have the same problem as youļ¼

If you suffer from ā€œArgument value 10880 is outside the valid range [0, 255]ā€ error, then just replace cocos2d/external/bullet/include/bullet/LinearMath/btVector3.h line 42:

#define BT_SHUFFLE(x,y,z,w) ((w)<<6 | (z)<<4 | (y)<<2 | (x))

with new one:

#define BT_SHUFFLE(x, y, z, w) (((w) << 6 | (z) << 4 | (y) << 2 | (x)) & 0xff)
5 Likes

Most probably, we have to wait for Bullet library update. If you dont use it you can just remove it and cocos will run fine. Or try to fix it e.g. using @hexerror solution.

OKļ¼Œthanks! I had another problem; This issue doesnā€™t happen in iOS 11 or iOS 12. I donā€™t believe it happened in earlier iOS 13 betas. The game crashed when I played video, but it looked more like an Appleā€™s bug

2019-08-02 17:01:26.763235+0800 App[14522:138289] [] nw_endpoint_get_type called with null endpoint

2019-08-02 17:01:26.763235+0800 App [14522:138289] [] nw_endpoint_get_type called with null endpoint, dumping backtrace:

[x86_64] libnetcore-1872

0 libnetwork.dylib 0x00007fff500df068 __nw_create_backtrace_string + 120

1 libnetwork.dylib 0x00007fff5004149f nw_endpoint_get_type + 175

2 libboringssl.dylib 0x00007fff4ef09a6a nw_protocol_boringssl_get_subject_name + 178

3 libboringssl.dylib 0x00007fff4ef0c911 nw_protocol_boringssl_connected + 916

4 libnetwork.dylib 0x00007fff4fefcfdf nw_socket_handle_socket_event + 1711

5 libdispatch.dylib 0x000000010db10d58 _dispatch_client_callout + 8

6 libdispatch.dylib 0x000000010db136ca _dispatch_continuation_pop + 552

7 libdispatch.dylib 0x000000010db26a83 _dispatch_source_invoke + 2205

8 libdispatch.dylib 0x000000010db19815 _dispatch_workloop_invoke + 2631

9 libdispatch.dylib 0x000000010db23a4d _dispatch_workloop_worker_thread + 722

10 libsystem_pthread.dylib 0x00007fff511f3611 _pthread_wqthread + 421

11 libsystem_pthread.dylib 0x00007fff511f33fd start_wqthread + 13

You are correct, not relevant to cocos. Which ad network caused the crash? Itā€™s best u inform them. Most probably, all ad networks companies will released their updated ios 13 compatible SDKā€™s close to ios 13 release.

hexerror, thanks!