App is crashing in release mode only - ios

I have searched previous questions but they did not work. I got these crash details from device logs:
Incident Identifier: 3D66D-F1B54CC2449
CrashReporter Key: 4c95be7dfa542494f103b1ef
Hardware Model: iPhone7,1
Process: Some [303]
Path: /private/var/containers/Bundle/Application/D80AD481-A88D-4FB2-BF84-B76084B7133D/sample.app/sample
Identifier: com.mytest.test
Version: 1.0 (1.0)
Code Type: ARM-64 (Native)
Parent Process: launchd [1]
Date/Time: 2016-05-27 12:26:25.25 -0700
Launch Time: 2016-05-27 12:26:25.25 -0700
OS Version: iOS 9.3 (13E233)
Report Version: 105
Exception Type: EXC_BREAKPOINT (SIGTRAP)
Exception Codes: 0x0000000000000001, 0x00000001200c9088
Triggered by Thread: 0
Filtered syslog:
None found
<
Dyld Error Message:
Dyld Message: Library not loaded: #rpath/MailApi.framework/MailApi
Referenced from: /var/containers/Bundle/Application/D80AD481-A88D-4FB2-BF84-B76084B7133D/sample.app/sample
Reason: no suitable image found. Did find:
/private/var/containers/Bundle/Application/D80AD481-A88D-4FB2-BF84-B76084B7133D/sample.app/Frameworks/MailApi.framework/MailApi: mmap() errno=1 validating first page of '/private/var/containers/Bundle/Application/D80AD481-A88D-4FB2-BF84-B76084B7133D/sample.app/Frameworks/MailApi.framework/MailApi'
Dyld Version: 390.7
<
Binary Images:
0x1000e8000 - 0x10032ffff sample arm64 <13340a6f4b8531ae9b451386d72bdfc6> /var/containers/Bundle/Application/D80AD481-A88D-4FB2-BF84-B76084B7133D/sample.app/sample
0x1200c8000 - 0x1200f7fff dyld arm64 /usr/lib/dyld

i think it will help for you, got to project build phases -> Link binary with libraries -> change all library frame works status required to optional

Related

xcode simulator crash with some dyld error

I can run my app on device but when I run it on simulator, I got an error, how can I run it on a simulator?
xcode version: 12.1
simulator version: 14.1
I can't lunch the simulator now
Process: SpringBoard [8490]
Path: /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Library/Developer/CoreSimulator/Profiles/Runtimes/iOS.simruntime/Contents/Resources/RuntimeRoot/System/Library/CoreServices/SpringBoard.app/SpringBoard
Identifier: SpringBoard
Version: 1.0 (50)
Code Type: X86-64 (Native)
Parent Process: launchd_sim [8020]
Responsible: SimulatorTrampoline [784]
User ID: 501
Date/Time: 2020-11-04 18:33:21.811 +0800
OS Version: Mac OS X 10.15.7 (19H2)
Report Version: 12
Anonymous UUID: 4B907FF2-14B6-5989-E5EB-360FD491CCA0
Time Awake Since Boot: 5400 seconds
System Integrity Protection: enabled
Crashed Thread: 0
Exception Type: EXC_CRASH (SIGABRT)
Exception Codes: 0x0000000000000000, 0x0000000000000000
Exception Note: EXC_CORPSE_NOTIFY
Termination Reason: DYLD, [0x5] Code Signature
Application Specific Information:
dyld: launch, loading dependent libraries
DYLD_SHARED_CACHE_DIR=/Users/apple/Library/Developer/CoreSimulator/Caches/dyld/19H2/com.apple.CoreSimulator.SimRuntime.iOS-14-1.18A8394
DYLD_ROOT_PATH=/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Library/Developer/CoreSimulator/Profiles/Runtimes/iOS.simruntime/Contents/Resources/RuntimeRoot
DYLD_FALLBACK_FRAMEWORK_PATH=/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Library/Developer/CoreSimulator/Profiles/Runtimes/iOS.simruntime/Contents/Resources/RuntimeRoot/System/Library/Frameworks
DYLD_FALLBACK_LIBRARY_PATH=/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Library/Developer/CoreSimulator/Profiles/Runtimes/iOS.simruntime/Contents/Resources/RuntimeRoot/usr/lib
Dyld Error Message:
Library not loaded: /System/Library/PrivateFrameworks/MediaPlatform.framework/MediaPlatform
Referenced from: /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Library/Developer/CoreSimulator/Profiles/Runtimes/iOS.simruntime/Contents/Resources/RuntimeRoot/System/Library/PrivateFrameworks/MediaLibraryCore.framework/MediaLibraryCore
Reason: no suitable image found. Did find:
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Library/Developer/CoreSimulator/Profiles/Runtimes/iOS.simruntime/Contents/Resources/RuntimeRoot/System/Library/PrivateFrameworks/MediaPlatform.framework/MediaPlatform: code signature invalid for '/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Library/Developer/CoreSimulator/Profiles/Runtimes/iOS.simruntime/Contents/Resources/RuntimeRoot/System/Library/PrivateFrameworks/MediaPlatform.framework/MediaPlatform'
Binary Images:
0x10286f000 - 0x102875fff com.apple.springboard (1.0 - 50) <5E08B57A-06BC-3482-9CD7-3E821C3DBD85> /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Library/Developer/CoreSimulator/Profiles/Runtimes/iOS.simruntime/Contents/Resources/RuntimeRoot/System/Library/CoreServices/SpringBoard.app/SpringBoard

React Native, runs fine while react-native run-ios, crashing when deployed via testflight

So I'm a bit stuck here, my app runs fine whilst running locally via metro bundler react-native run-ios...
However when its deployed via testflight and I enter a particular screen I get a crash and the following crash report:
{"app_name":"myApp","app_cohort":"2|date=1540402200000&sf=143444&tid=bb84ca05a7be8e2da05f0db328a2ba46d76ab3285e3658175938c5ca87d6cd0f&ttype=i","app_version":"1.0","timestamp":"2018-10-24 18:37:52.73 +0100","slice_uuid":"2c0e8da0-b543-3014-808a-e0e35880f848","adam_id":1440030197,"build_version":"15","bundleID":"org.deliver.my.stuff.myApp","share_with_app_devs":true,"is_first_party":false,"bug_type":"109","os_version":"iPhone OS 11.3.1 (15E302)","incident_id":"68871235-3982-4B92-954B-E7205263E4E1","is_beta":true,"name":"myApp"}
Incident Identifier: 68871235-3982-4B92-954B-E7205263E4E1
Beta Identifier: D6077464-5670-4488-A863-51B4947CDF37
Hardware Model: iPhone9,3
Process: myApp [832]
Path: /private/var/containers/Bundle/Application/AB5305E3-6C91-48FE-89C7-CB5F6706A6DC/myApp.app/myApp
Identifier: org.deliver.my.stuff.myApp
Version: 15 (1.0)
Beta: YES
Code Type: ARM-64 (Native)
Role: Foreground
Parent Process: launchd [1]
Coalition: org.deliver.my.stuff.myApp [783]
Date/Time: 2018-10-24 18:37:52.6426 +0100
Launch Time: 2018-10-24 18:37:49.7676 +0100
OS Version: iPhone OS 11.3.1 (15E302)
Baseband Version: 2.03.12
Report Version: 104
Exception Type: EXC_CRASH (SIGABRT)
Exception Codes: 0x0000000000000000, 0x0000000000000000
Exception Note: EXC_CORPSE_NOTIFY
Triggered by Thread: 3
Application Specific Information:
abort() called
Filtered syslog:
None found
Last Exception Backtrace:
(0x1841ded8c 0x1833985ec 0x1004fef20 0x1004fc9e0 0x1841e6580 0x1840c5748 0x1840ca56c 0x10051296c 0x100556de0 0x100556b40 0x183ad0b24 0x183ad0ae4 0x183adaa38 0x183adb380 0x183adbd4c 0x183ae411c 0x183e03e70 0x183e03b08)
myApp is just a name I've replaced the actual name of the app with - like I said it runs fine but I'm not quite sure how to decode this crash report?
I thought the backtrace should show the exception but it doesn't appear to?

iOS EXC_BAD_ACCESS Crash on Nativescript app

We've made an Android and iOS app and send this through some testing. Our tests found no bugs however when sending it to the App store we got denied and returned a crashlog. I however can't find the bug with the information given.
Can anybody help me translate this crashlog? I've already looked at the Apple Documentation Archive but found no usefull help here.
The header of the crashlog is as follows:
{"app_name":"RealityKeeper","timestamp":"2018-09-11 14:18:30.81 -0700","app_version":"1.0","slice_uuid":"261b3ad9-a8bf-3281-a674-cb1501ddcaea","adam_id":1432593416,"build_version":"1.1","bundleID":"org.nativescript.RealityKeeper","share_with_app_devs":false,"is_first_party":false,"bug_type":"109","os_version":"iPhone OS 11.4 (15F79)","incident_id":"CF7FD300-AED5-4D15-9F74-21F668D25C02","name":"RealityKeeper"}
Incident Identifier: CF7FD300-AED5-4D15-9F74-21F668D25C02
CrashReporter Key: ba49afbd7a6c374bc5099303e3a251a30ac3555e
Hardware Model: xxx
Process: RealityKeeper [10712]
Path: /private/var/containers/Bundle/Application/3619F4D9-601D-4A05-8F9C-EB7FE9AED112/RealityKeeper.app/RealityKeeper
Identifier: org.nativescript.RealityKeeper
Version: 1.1 (1.0)
Code Type: ARM-64 (Native)
Role: Foreground
Parent Process: launchd [1]
Coalition: org.nativescript.RealityKeeper [3565]
Date/Time: 2018-09-11 14:18:30.6327 -0700
Launch Time: 2018-09-11 14:18:27.3888 -0700
OS Version: iPhone OS 11.4 (15F79)
Baseband Version: 6.60.00
Report Version: 104
Exception Type: EXC_BAD_ACCESS (SIGSEGV)
Exception Subtype: KERN_INVALID_ADDRESS at 0x00000000deaddead
VM Region Info: 0xdeaddead is not in any region. Bytes before following region: 561914195
REGION TYPE START - END [ VSIZE] PRT/MAX SHRMOD REGION DETAIL
UNUSED SPACE AT START
--->
__TEXT 00000001002c0000-00000001002c4000 [ 16K] r-x/r-x SM=COW ...RealityKeeper
Termination Signal: Segmentation fault: 11
Termination Reason: Namespace SIGNAL, Code 0xb
Terminating Process: exc handler [0]
Triggered by Thread: 0
Filtered syslog:
None found
Thanks for any help you can give!

app crashes on iOS 9

I am new to iOS. I have created a ipa file using Xcode 6.4, which is working fine on 8.X. but recently we tried it on iPhone 6 with iOS 9, and the app get crashed after splash screen. does anyone faced this problem?
crash log
Incident Identifier: E4ACE339-8187-48DF-BACC-75B0E5476D58
CrashReporter Key: ac2769bff5db3be2b771695a24c3809680e077a9
Hardware Model: iPhone7,2
Process: <app name> [1851]
Path: <app path>
Identifier: <identifier>
Version: 2 (1.1)
Code Type: ARM (Native)
Parent Process: launchd [1]
Date/Time: 2015-10-07 13:07:06.06 +0530
Launch Time: 2015-10-07 13:07:05.05 +0530
OS Version: iOS 9.0.2 (13A452)
Report Version: 105
Exception Type: EXC_BREAKPOINT (SIGTRAP)
Exception Codes: 0x0000000000000001, 0x00000000e7ffdefe
Triggered by Thread: 0
Filtered syslog:
None found
Dyld Error Message:
Dyld Message: Library not loaded: #executable_path/TestLib.dylib
Referenced from: /var/mobile/Containers/Bundle/Application/C92A5FDC-2C2E-4A64-B20D-4AF90BD3D8C0/<appName>.app/<appName>
Reason: no suitable image found. Did find:
/var/mobile/Containers/Bundle/Application/C92A5FDC-2C2E-4A64-B20D-4AF90BD3D8C0/<appName>.app/TestLib.dylib: mmap() error 22 at address=0x0060F000, size=0x00003000 segment=__DATA in Segment::map() mapping /var/mobile/Containers/Bundle/Application/C92A5FDC-2C2E-4A64-B20D-4AF90BD3D8C0/<appName>.app/TestLib.dylib
/private/var/mobile/Containers/Bundle/Application/C92A5FDC-2C2E-4A64-B20D-4AF90BD3D8C0/<appName>.app/TestLib.dylib: mmap() error 22 at address=0x00637000, size=0x00003000 segment=__DATA in Segment::map() mapping /private/var/mobile/Containers/Bundle/Application/C92A5FDC-2C2E-4A64-B20D-4AF90BD3D8C0/<appName>.app/TestLib.dylib
Dyld Version: 369.12
Binary Images:
0x8c000 - 0x42ffff <appName> armv7 <d171742a44fc36628a38796e5c37c9dc> /var/mobile/Containers/Bundle/Application/C92A5FDC-2C2E-4A64-B20D-4AF90BD3D8C0/<appName>.app/<appName>
0x1fee4000 - 0x1ff0bfff dyld armv7s <208fd9e5719439acb248b91286f1dd33> /usr/lib/dyld
Problem is solved. the above crash nothing to do with iOS 9 or Xcode 7. we were pushing the app through the MDM(Mobile device Management). MDM was doing a wrapping which was caused to this issue. this was identified by MDM support team. and its working now.
Sorry that I hadn't mentioned about MDM in my post(because I didn't thought that MDM can cause such problem)
Thanks for your comments.

Xcode quit unexpectedly Dyld Error message symbol not found _ASI_CopyHostUUID

When I want launch the xcode, this doesn't open and show me this message "Xcode quit unexpectedly" and the report is:
Process: Xcode [2585]
Path: /Applications/Xcode.app/Contents/MacOS/Xcode
Identifier: com.apple.dt.Xcode
Version: 6.3.1 (7703)
Build Info: IDEFrameworks-7703000000000000~4
App Item ID: 497799835
App External ID: 812230896
Code Type: X86-64 (Native)
Parent Process: ??? [1]
Responsible: Xcode [2585]
User ID: 393298473
Date/Time: 2015-05-14 13:36:02.941 -0300
OS Version: Mac OS X 10.10.3 (14D136)
Report Version: 11
Anonymous UUID: F6EF1A43-CD47-CDDB-8754-7B593A5DBE45
Time Awake Since Boot: 8200 seconds
Crashed Thread: 0 Dispatch queue: com.apple.main-thread
Exception Type: EXC_BREAKPOINT (SIGTRAP)
Exception Codes: 0x0000000000000002, 0x0000000000000000
Application Specific Information:
ProductBuildVersion: 6D1002
Dyld Error Message:
Symbol not found: _ASI_CopyHostUUID
Referenced from: /Applications/Xcode.app/Contents/MacOS/../SharedFrameworks/DVTFoundation.framework/Versions/A/DVTFoundation
Expected in: /System/Library/PrivateFrameworks/AppleSystemInfo.framework/Versions/A/AppleSystemInfo
How can I make it open?
When I had a EXC_BREAKPOINT (SIGTRAP) exception I used terminal to navigate to the Expected in: part of the Dyld error message.
For my problem I could remove the file that was being referred to by the Expected in: part of the Dyld error message.
I hope this helps you out.
EDIT:
I do not advise that you remove the system private frameworks. Sorry for the careless wording.
What I meant was that if you go to Expected in: /System/Library/PrivateFrameworks/AppleSystemInfo.framework/Versions/A/AppleSystemInfo you might find what needs to be changed.

Resources