简体   繁体   English

ios应用程序可以在调试模式下完美运行,但在发行时崩溃

[英]ios app runs perfectly in debug mode but crashes in release

My app crashes in certain moments in release build. 我的应用在发行版本中的某些时候崩溃了。 I don't know if it is important but I use mainly c++ with cocos2d-x framework. 我不知道它是否重要,但是我主要将c ++与cocos2d-x框架一起使用。 I tried setting optimization level to none but it won't work too. 我尝试将优化级别设置为无,但是也无法正常工作。 I get this output in console : 我在控制台中得到此输出:

libc++abi.dylib: terminating with uncaught exception of type std::out_of_range: map::at:  key not found

This is part of the crash log: 这是崩溃日志的一部分:

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

Thread 0 Crashed:
0   libsystem_kernel.dylib          0x3870d1f0 0x386fa000 + 78320
1   libsystem_pthread.dylib         0x38777792 0x38774000 + 14226
2   libsystem_c.dylib               0x386bdfd8 0x38675000 + 298968
3   libc++abi.dylib                 0x379eccd2 0x379ec000 + 3282
4   libc++abi.dylib                 0x37a056aa 0x379ec000 + 104106
5   libobjc.A.dylib                 0x3814af86 0x38147000 + 16262
6   libc++abi.dylib                 0x37a031c4 0x379ec000 + 94660
7   libc++abi.dylib                 0x37a02d28 0x379ec000 + 93480
8   libobjc.A.dylib                 0x3814ae12 0x38147000 + 15890
9   CoreFoundation                  0x2d3d2f80 0x2d3cb000 + 32640
10  CoreFoundation                  0x2d3d2cee 0x2d3cb000 + 31982
11  GraphicsServices                0x3230565e 0x322fc000 + 38494
12  UIKit                           0x2fd1e168 0x2fcb0000 + 450920
13  BumpRace iOS                    0x00044b1e 0x4000 + 264990
14  libdyld.dylib                   0x38657ab4 0x38656000 + 6836

Any help would be apprieciated. 任何帮助将不胜感激。

You must use iOS instruments tool. 您必须使用iOS工具。 To debug you memory leaks. 要调试您的内存泄漏。 As possible to conclude from youre ERROR message. 尽可能从您的错误消息中得出结论。

Small useful link . 小有用的链接

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 iOS React Native 应用程序在测试中运行完美但在发布构建中崩溃 - iOS React Native app runs perfectly in testing but crashes in release build iOS-应用在“发行版”中崩溃,但不在“调试”模式下崩溃。 [__NFCString count]:无法识别的选择器已发送到实例xxx - iOS - App crashes in Release but not in Debug mode. [__NFCString count]: unrecognized selector sent to instance xxx React Native 应用程序在发布模式下崩溃,但在调试模式下工作正常 - React Native app crashes in release mode but works fine in debug mode iOS应用程序中调试和发布模式的语言是否不同? - Different language for debug and release mode in iOS app? iOS应用在调试模式下正常运行,但在正常模式下崩溃 - iOS app runs normally in debug mode but crashed in normal mode iOS应用在发布模式下崩溃,在调试模式下工作 - iOS app crashing in release mode, works in debug mode 反应本机应用程序在调试模式下工作,但在 ios 上不工作发布模式 - react native app works on debug mode, but not works release mode on ios iOS应用在调试模式下崩溃,在发布模式下工作 - iOS app crashing in debug mode, working in release mode APP在调试模式下崩溃,但在iOS 8上的发布模式下运行正常 - APP crash in debug mode but work fine in release mode on iOS 8 仅在 iOS 发布模式下反应原生应用程序崩溃 - React native app crashes in iOS release mode only
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM