Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/git/20.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Cocos2d iphone 在运行iOS 8.4的设备上崩溃_Cocos2d Iphone_Crash Reports_Ios8.4 - Fatal编程技术网

Cocos2d iphone 在运行iOS 8.4的设备上崩溃

Cocos2d iphone 在运行iOS 8.4的设备上崩溃,cocos2d-iphone,crash-reports,ios8.4,Cocos2d Iphone,Crash Reports,Ios8.4,有人能帮忙吗 我提交了我的应用程序的第2版,但它被拒绝了,因为它在许多运行8.4的设备上崩溃了 {"bundleID":"properties.axxxxxxx.xxxxxxxxx”,”app_name”:”My App”,”share_with_app_devs":false,"name”:”My App”,”app_version":"2.0","is_first_party":false,"os_version":"iPhone OS 8.4 (12H143)","bug_type

有人能帮忙吗

我提交了我的应用程序的第2版,但它被拒绝了,因为它在许多运行8.4的设备上崩溃了

{"bundleID":"properties.axxxxxxx.xxxxxxxxx”,”app_name”:”My    App”,”share_with_app_devs":false,"name”:”My App”,”app_version":"2.0","is_first_party":false,"os_version":"iPhone OS 8.4  (12H143)","bug_type":"109","slice_uuid":"c94c9011-955b-3d2c-b949- 5797aefef990","build_version":"2.2","adam_id":0}
Incident Identifier: A3B5332C-0A28-4E48-BFEE-F1FB95495715
CrashReporter Key:   09b24a3f5088bdc521191691c1969f4d0b4b4f7a
Hardware Model:      iPhone5,3
Process:             My App [1147]
Path:                 /private/var/mobile/Containers/Bundle/Application/6E6E3FFA-11CD-4DA0-995D-D46C8E2C9624/My App.app/My App
Identifier:          properties.axxxxxxx.xxxxxxxx
Version:             2.2 (2.0)
Code Type:           ARM (Native)
Parent Process:      launchd.development [1]

Date/Time:           2015-09-20 01:23:11.929 -0700
Launch Time:         2015-09-20 01:23:11.557 -0700
OS Version:          iOS 8.4 (12H143)
UDID:                b01ae3fde269ba2ac345c6dae55c505ad34d45ae
Report Version:      105

Exception Type:  EXC_CRASH (SIGABRT)
Exception Codes: 0x0000000000000000, 0x0000000000000000
Triggered by Thread:  0

Filtered syslog:
2015-09-20 01:23:11.684 Alien Rabbits[1147]: <Error> assertion failed: 12H143: libxpc.dylib + 51915 [88A50DD0-8E7B-3CD6-AC30-BA113A415E4F]: 0x7d
2015-09-20 01:23:11.885 Alien Rabbits[1147]: <Error> +[NSMutableArray newMutableArrayUsingWeakReferencesWithCapacity:]: unrecognized selector sent to class 0x31e2aaf4
2015-09-20 01:23:11.888 Alien Rabbits[1147]: <Error> *** Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '+[NSMutableArray newMutableArrayUsingWeakReferencesWithCapacity:]: unrecognized selector sent to class 0x31e2aaf4'
*** First throw call stack:
(0x22a86fef 0x314a2c8b 0x22a8c325 0x22a8a327 0x229b9e78 0x610f5 0xb0507 0x91771 0x9116b 0xa3599 0x2b023 0x2616f243 0x26365ad9 0x26368199 0x26372e19 0x2636693b 0x2973eec9 0x22a4cfd5 0x22a4c299 0x22a4add3 0x22997201 0x22997013 0x26168e17 0x26163a09 0x2aecb 0x31a54aaf)

Last Exception Backtrace:
(0x22a86fea 0x314a2c86 0x22a8c320 0x22a8a322 0x229b9e74 0x610f0 0xb0502 0x9176c 0x91166 0xa3594 0x2b01e 0x2616f23e 0x26365ad4 0x26368194 0x26372e14 0x26366936 0x2973eec4 0x22a4cfd0 0x22a4c294 0x22a4adce 0x229971fc 0x2299700e 0x26168e12 0x26163a04 0x2aec6 0x31a54aaa)

Thread 0 name:  Dispatch queue: com.apple.main-thread
Thread 0 Crashed:
0   libsystem_kernel.dylib          0x31b1edf0 0x31b0a000 + 85488
1   libsystem_pthread.dylib         0x31b9dcc2 0x31b9a000 + 15554
在使用8.4的iPhone 6和运行8.0的各种设备上运行该应用程序时,我不会遇到任何问题

我发现复制崩溃的唯一方法是使用profile工具在8.0上运行设备iPhone 4s,然后我得到:

2015-09-27 17:54:47.434 My App[9161:1516779] +[NSMutableArray newMutableArrayUsingWeakReferencesWithCapacity:]: unrecognized selector sent to class 0x393e5960
2015-09-27 17:54:47.444 My APP[9161:1516779] *** Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '+[NSMutableArray newMutableArrayUsingWeakReferencesWithCapacity:]: unrecognized selector sent to class 0x393e5960'
***第一次抛出调用堆栈: (0x2b20a5f7 0x38a7cc77 0x2b20f9d9 0x2b20d999 0x2b13eb88 0xc4501 0x11383b 0xf4a71 0xf4463 0x1068a9 0x8e523 0x2e719469 0x2e90e515 0x2e910a49 0x2e91b2f9 0x2e90f2eb 0x319800c9 0x2b1d0ffd 0x2b1d02c1 0x2B11B 0x2B1BB31 0x2b11b943 0x2e713127 0x2e70df21 0x8e3cb 39018AAF) libc++abi.dylib: 以NSException类型的未捕获异常终止

如果未使用配置文件工具,应用程序将在该设备上运行。当它加载配置文件工具时,当手机断开连接时,它会崩溃

应用程序在完成从以下位置启动之前崩溃:

-(BOOL) application: (UIApplication*) application didFinishLaunchingWithOptions: (NSDictionary*) launchOptions
这是初始化OpenAL的调用:

  [OALSimpleAudio sharedInstance];
在触发崩溃的cocos2d CCAppDelegate.m文件中

如果我调用这个函数,崩溃会在大约一秒钟后发生,profile工具会给出

2015-09-27 18:38:52.634 My App[9188:1523335] -[EAGLContext ensureCurrentContext]: unrecognized selector sent to instance 0x167918e0
2015-09-27 18:38:52.667 My App[9188:1523335] *** Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '-[EAGLContext ensureCurrentContext]: unrecognized selector sent to instance 0x167918e0'
*** First throw call stack:
(0x2b20a5f7 0x38a7cc77 0x2b20fabd 0x2b20d999 0x2b13eb88 0x199c65 0x191f6d 0x19a063 0x19487f 0x10b4ad 0x10aa33 0x10a9fd 0x10aa75 0x1226f1 0x12341b 0x123225 0x1224e5 0x121b63 0x122a1d 0x7d5c9 0xf4ffd 0xa34b9 0xd799f 0x2e6ac19f 0x2e0d7f65 0x2e0d3951 0x2e0d37d9 0x2e0d31c7 0x2e0d2fd1 0x2e91011d 0x2e910eb5 0x2e91b2f9 0x2e90f2eb 0x319800c9 0x2b1d0ffd 0x2b1d02c1 0x2b1cea5f 0x2b11bb31 0x2b11b943 0x2e713127 0x2e70df21 0x7d3fb 0x39018aaf)
libc++abi.dylib:
terminating with uncaught exception of type NSException
我正在使用:

xcode 6.2

编译到8.0

cocos2d 3.2.1

到目前为止花了几个小时试图解决这个问题

谢谢

2015-09-27 18:38:52.634 My App[9188:1523335] -[EAGLContext ensureCurrentContext]: unrecognized selector sent to instance 0x167918e0
2015-09-27 18:38:52.667 My App[9188:1523335] *** Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '-[EAGLContext ensureCurrentContext]: unrecognized selector sent to instance 0x167918e0'
*** First throw call stack:
(0x2b20a5f7 0x38a7cc77 0x2b20fabd 0x2b20d999 0x2b13eb88 0x199c65 0x191f6d 0x19a063 0x19487f 0x10b4ad 0x10aa33 0x10a9fd 0x10aa75 0x1226f1 0x12341b 0x123225 0x1224e5 0x121b63 0x122a1d 0x7d5c9 0xf4ffd 0xa34b9 0xd799f 0x2e6ac19f 0x2e0d7f65 0x2e0d3951 0x2e0d37d9 0x2e0d31c7 0x2e0d2fd1 0x2e91011d 0x2e910eb5 0x2e91b2f9 0x2e90f2eb 0x319800c9 0x2b1d0ffd 0x2b1d02c1 0x2b1cea5f 0x2b11bb31 0x2b11b943 0x2e713127 0x2e70df21 0x7d3fb 0x39018aaf)
libc++abi.dylib:
terminating with uncaught exception of type NSException