Related
Build completes successfully, but then crashes when trying to launch the app on the simulator. I think it's related to an architecture mismatch with libraries. Any help is appreciated.
Xcode 14.2
Flutter 3.72
Cocoapods 1.11.3
Ruby 3.0.0
building to iOS simulator (15.0) iphone 13
xcode debugger logs
Warning: Error creating LLDB target at path '/Users/USER/Library/Developer/Xcode/DerivedData/Runner-blrksncxtnfbrcdtafhrxochtofc/Build/Products/Debug-stage-iphonesimulator/Runner.app'- using an empty LLDB target which can cause slow memory reads from remote devices: the specified architecture 'arm64-*-*' is not compatible with 'x86_64-apple-ios11.0.0-simulator' in '/Users/USER/Library/Developer/Xcode/DerivedData/Runner-blrksncxtnfbrcdtafhrxochtofc/Build/Products/Debug-stage-iphonesimulator/Runner.app/Runner'
dyld[34074]: Symbol not found: _$s13SwiftProtobuf19_ProtoNameProvidingP17_protobuf_nameMapAA01_dH0VvgZTq
Referenced from: /Users/USER/Library/Developer/CoreSimulator/Devices/660D1541-1FAA-4D12-B0F2-D844189798B1/data/Containers/Bundle/Application/8B6A01F0-F54C-4FBB-81CC-EB4E53E205C2/Runner.app/Frameworks/iProov.framework/iProov
Expected in: /Users/USER/Library/Developer/CoreSimulator/Devices/660D1541-1FAA-4D12-B0F2-D844189798B1/data/Containers/Bundle/Application/8B6A01F0-F54C-4FBB-81CC-EB4E53E205C2/Runner.app/Frameworks/SwiftProtobuf.framework/SwiftProtobuf
Message from debugger: Terminated due to signal 6
Xcode Error Report
-------------------------------------
Translated Report (Full Report Below)
-------------------------------------
Incident Identifier: 864A78AD-6A4A-4777-948E-6325DAAA0350
CrashReporter Key: 945CE127-E12B-BACF-2502-41B2EF0813E5
Hardware Model: MacBookPro18,3
Process: Runner [34095]
Path: /Users/USER/Library/Developer/CoreSimulator/Devices/660D1541-1FAA-4D12-B0F2-D844189798B1/data/Containers/Bundle/Application/8B6A01F0-F54C-4FBB-81CC-EB4E53E205C2/Runner.app/Runner
Identifier: app.bundle.id
Version: 2.8.0.stage (4073)
Code Type: X86-64 (Native)
Role: Foreground
Parent Process: launchd_sim [14790]
Coalition: com.apple.CoreSimulator.SimDevice.660D1541-1FAA-4D12-B0F2-D844189798B1 [4037]
Responsible Process: SimulatorTrampoline [2872]
Date/Time: 2023-02-14 11:12:19.0612 -0800
Launch Time: 2023-02-14 11:12:18.7841 -0800
OS Version: macOS 13.2.1 (22D68)
Release Type: User
Report Version: 104
Exception Type: EXC_CRASH (SIGABRT)
Exception Codes: 0x0000000000000000, 0x0000000000000000
Termination Reason: DYLD 4 Symbol missing
Symbol not found: _$s13SwiftProtobuf19_ProtoNameProvidingP17_protobuf_nameMapAA01_dH0VvgZTq
Referenced from: /Users/USER/Library/Developer/CoreSimulator/Devices/660D1541-1FAA-4D12-B0F2-D844189798B1/data/Containers/Bundle/Application/8B6A01F0-F54C-4FBB-81CC-EB4E53E205C2/Runner.app/Frameworks/iProov.framework/iProov
Expected in: /Users/USER/Library/Developer/CoreSimulator/Devices/660D1541-1FAA-4D12-B0F2-D844189798B1/data/Containers/Bundle/Application/8B6A01F0-F54C-4FBB-81CC-EB4E53E205C2/Runner.app/Frameworks/SwiftProtobuf.framework/SwiftProtobuf
(terminated at launch; ignore backtrace)
Triggered by Thread: 0
Kernel Triage:
VM - pmap_enter retried due to resource shortage
VM - pmap_enter retried due to resource shortage
VM - pmap_enter retried due to resource shortage
VM - pmap_enter retried due to resource shortage
VM - pmap_enter retried due to resource shortage
Thread 0 Crashed:
0 ??? 0x102de29a8 ???
1 <translation info unavailable> 0x102e9a294 ???
2 dyld 0x2030e1d07 abort_with_payload_wrapper_internal + 82
3 dyld 0x2030e1d39 abort_with_payload + 9
4 dyld_sim 0x10b423060 abort_with_payload + 26
5 dyld_sim 0x10b3e308b dyld4::halt(char const*) + 375
6 dyld_sim 0x10b3dfb15 dyld4::prepare(dyld4::APIs&, dyld3::MachOAnalyzer const*) + 2807
7 dyld_sim 0x10b3dfd3f _dyld_sim_prepare + 379
8 dyld 0x203066ff1 dyld4::prepareSim(dyld4::RuntimeState&, char const*) + 1551
9 dyld 0x2030655be dyld4::prepare(dyld4::APIs&, dyld3::MachOAnalyzer const*) + 244
10 dyld 0x203065281 start + 2289
Thread 1:: com.apple.rosetta.exceptionserver
0 ??? 0x7ff7ffdf9614 ???
1 ??? 0x7ff7ffe11a50 ???
Thread 0 crashed with X86 Thread State (64-bit):
rax: 0x0000000000000006 rbx: 0x0000000000000214 rcx: 0x0000000000000004 rdx: 0x0000000309cb6490
rdi: 0x000000201050836d rsi: 0x000000011050841c rbp: 0x0000000000000000 rsp: 0x0000000309cb6090
r8: 0x0000000309cb6090 r9: 0x0000000000000000 r10: 0x0000000000000214 r11: 0x0000000000000000
r12: 0x0000000000000214 r13: 0x0000000309cb6490 r14: 0x0000000000000004 r15: 0x0000000000000006
rip: <unavailable> rfl: 0x0000000000000283
tmp0: 0xffffffffffffffff tmp1: 0x0000000102de297c tmp2: 0x00000002030e1d07
Binary Images:
0x0 - 0xffffffffffffffff ??? (*) <00000000-0000-0000-0000-000000000000> ???
0x20305f000 - 0x2030f6fff dyld (*) <bba77709-6cad-3592-ab03-09d0f7b8610e> /usr/lib/dyld
0x10b3de000 - 0x10b42afff dyld_sim (*) <d494c297-dc73-394b-901e-1b5930e801df> /Library/Developer/CoreSimulator/Profiles/Runtimes/iOS 15.0.simruntime/Contents/Resources/RuntimeRoot/usr/lib/dyld_sim
Error Formulating Crash Report:
dyld_process_snapshot_get_shared_cache failed
EOF
-----------
Full Report
-----------
{"app_name":"Runner","timestamp":"2023-02-14 11:12:25.00 -0800","app_version":"2.8.0.stage","slice_uuid":"234062e7-b199-36f8-a7df-3d41c21912a3","build_version":"4073","platform":7,"bundleID":"app.bundle.id","share_with_app_devs":0,"is_first_party":0,"bug_type":"309","os_version":"macOS 13.2.1 (22D68)","roots_installed":0,"name":"Runner","incident_id":"864A78AD-6A4A-4777-948E-6325DAAA0350"}
{
"uptime" : 3500,
"procRole" : "Foreground",
"version" : 2,
"userID" : 501,
"deployVersion" : 210,
"modelCode" : "MacBookPro18,3",
"coalitionID" : 4037,
"osVersion" : {
"train" : "macOS 13.2.1",
"build" : "22D68",
"releaseType" : "User"
},
"captureTime" : "2023-02-14 11:12:19.0612 -0800",
"incident" : "864A78AD-6A4A-4777-948E-6325DAAA0350",
"pid" : 34095,
"translated" : true,
"cpuType" : "X86-64",
"roots_installed" : 0,
"bug_type" : "309",
"procLaunch" : "2023-02-14 11:12:18.7841 -0800",
"procStartAbsTime" : 84348918859,
"procExitAbsTime" : 84355563049,
"procName" : "Runner",
"procPath" : "\/Users\/USER\/Library\/Developer\/CoreSimulator\/Devices\/660D1541-1FAA-4D12-B0F2-D844189798B1\/data\/Containers\/Bundle\/Application\/8B6A01F0-F54C-4FBB-81CC-EB4E53E205C2\/Runner.app\/Runner",
"bundleInfo" : {"CFBundleShortVersionString":"2.8.0.stage","CFBundleVersion":"4073","CFBundleIdentifier":"app.bundle.id.stage"},
"storeInfo" : {"deviceIdentifierForVendor":"87919FDD-3820-562F-87D4-1E193A62C135","thirdParty":true},
"parentProc" : "launchd_sim",
"parentPid" : 14790,
"coalitionName" : "com.apple.CoreSimulator.SimDevice.660D1541-1FAA-4D12-B0F2-D844189798B1",
"crashReporterKey" : "945CE127-E12B-BACF-2502-41B2EF0813E5",
"responsiblePid" : 2872,
"responsibleProc" : "SimulatorTrampoline",
"wakeTime" : 2610,
"sleepWakeUUID" : "B8E41F3D-8006-4918-8520-CE0C4F6516A8",
"sip" : "enabled",
"exception" : {"codes":"0x0000000000000000, 0x0000000000000000","rawCodes":[0,0],"type":"EXC_CRASH","signal":"SIGABRT"},
"termination" : {"code":4,"flags":518,"namespace":"DYLD","indicator":"Symbol missing","details":["(terminated at launch; ignore backtrace)"],"reasons":["Symbol not found: _$s13SwiftProtobuf19_ProtoNameProvidingP17_protobuf_nameMapAA01_dH0VvgZTq","Referenced from: \/Users\/USER\/Library\/Developer\/CoreSimulator\/Devices\/660D1541-1FAA-4D12-B0F2-D844189798B1\/data\/Containers\/Bundle\/Application\/8B6A01F0-F54C-4FBB-81CC-EB4E53E205C2\/Runner.app\/Frameworks\/iProov.framework\/iProov","Expected in: \/Users\/USER\/Library\/Developer\/CoreSimulator\/Devices\/660D1541-1FAA-4D12-B0F2-D844189798B1\/data\/Containers\/Bundle\/Application\/8B6A01F0-F54C-4FBB-81CC-EB4E53E205C2\/Runner.app\/Frameworks\/SwiftProtobuf.framework\/SwiftProtobuf"]},
"ktriageinfo" : "VM - pmap_enter retried due to resource shortage\nVM - pmap_enter retried due to resource shortage\nVM - pmap_enter retried due to resource shortage\nVM - pmap_enter retried due to resource shortage\nVM - pmap_enter retried due to resource shortage\n",
"extMods" : {"caller":{"thread_create":0,"thread_set_state":0,"task_for_pid":0},"system":{"thread_create":0,"thread_set_state":2,"task_for_pid":4},"targeted":{"thread_create":0,"thread_set_state":0,"task_for_pid":0},"warnings":0},
"faultingThread" : 0,
"threads" : [{"triggered":true,"id":141045,"threadState":{"flavor":"x86_THREAD_STATE","rbp":{"value":0},"r12":{"value":532},"rosetta":{"tmp2":{"value":8641191175},"tmp1":{"value":4343081340},"tmp0":{"value":18446744073709551615}},"rbx":{"value":532},"r8":{"value":13049225360},"r15":{"value":6},"r10":{"value":532},"rdx":{"value":13049226384},"rdi":{"value":137712665453},"r9":{"value":0},"r13":{"value":13049226384},"rflags":{"value":643},"rax":{"value":6},"rsp":{"value":13049225360},"r11":{"value":0},"rcx":{"value":4},"r14":{"value":4},"rsi":{"sourceLine":355,"value":4568679452,"sourceFile":"status.cc","symbol":"absl::lts_20211102::PermissionDeniedError(absl::lts_20211102::string_view)","symbolLocation":0}},"frames":[{"imageOffset":4343081384,"imageIndex":0},{"imageOffset":4343833236,"region":"<translation info unavailable>","imageIndex":0},{"imageOffset":535815,"symbol":"abort_with_payload_wrapper_internal","symbolLocation":82,"imageIndex":1},{"imageOffset":535865,"symbol":"abort_with_payload","symbolLocation":9,"imageIndex":1},{"imageOffset":282720,"symbol":"abort_with_payload","symbolLocation":26,"imageIndex":2},{"imageOffset":20619,"symbol":"dyld4::halt(char const*)","symbolLocation":375,"imageIndex":2},{"imageOffset":6933,"symbol":"dyld4::prepare(dyld4::APIs&, dyld3::MachOAnalyzer const*)","symbolLocation":2807,"imageIndex":2},{"imageOffset":7487,"symbol":"_dyld_sim_prepare","symbolLocation":379,"imageIndex":2},{"imageOffset":32753,"symbol":"dyld4::prepareSim(dyld4::RuntimeState&, char const*)","symbolLocation":1551,"imageIndex":1},{"imageOffset":26046,"symbol":"dyld4::prepare(dyld4::APIs&, dyld3::MachOAnalyzer const*)","symbolLocation":244,"imageIndex":1},{"imageOffset":25217,"symbol":"start","symbolLocation":2289,"imageIndex":1}]},{"id":141046,"name":"com.apple.rosetta.exceptionserver","frames":[{"imageOffset":140703126492692,"imageIndex":0},{"imageOffset":140703126592080,"imageIndex":0}]}],
"usedImages" : [
{
"size" : 0,
"source" : "A",
"base" : 0,
"uuid" : "00000000-0000-0000-0000-000000000000"
},
{
"source" : "P",
"arch" : "x86_64",
"base" : 8640655360,
"size" : 622592,
"uuid" : "bba77709-6cad-3592-ab03-09d0f7b8610e",
"path" : "\/usr\/lib\/dyld",
"name" : "dyld"
},
{
"source" : "P",
"arch" : "x86_64",
"base" : 4483571712,
"size" : 315392,
"uuid" : "d494c297-dc73-394b-901e-1b5930e801df",
"path" : "\/Library\/Developer\/CoreSimulator\/Profiles\/Runtimes\/iOS 15.0.simruntime\/Contents\/Resources\/RuntimeRoot\/usr\/lib\/dyld_sim",
"name" : "dyld_sim"
}
],
"vmSummary" : "ReadOnly portion of Libraries: Total=1.0G resident=0K(0%) swapped_out_or_unallocated=1.0G(100%)\nWritable regions: Total=156.3M written=0K(0%) resident=0K(0%) swapped_out=0K(0%) unallocated=156.3M(100%)\n\n VIRTUAL REGION \nREGION TYPE SIZE COUNT (non-coalesced) \n=========== ======= ======= \nRosetta Arena 4096K 2 \nRosetta Generic 972K 240 \nRosetta IndirectBranch 32K 1 \nRosetta JIT 128.0M 1 \nRosetta Return Stack 20K 2 \nRosetta Thread Context 20K 2 \nStack 8176K 1 \nStack Guard 56.0M 1 \nVM_ALLOCATE 52K 2 \nVM_ALLOCATE (reserved) 20K 2 reserved VM address space (unallocated)\n__DATA 38.8M 796 \n__DATA_CONST 50.7M 569 \n__DATA_DIRTY 100K 12 \n__FONT_DATA 4K 1 \n__LINKEDIT 427.0M 643 \n__TEXT 636.5M 640 \n__UNICODE 588K 1 \ndyld private memory 32.0G 4 \nmapped file 604K 7 \n=========== ======= ======= \nTOTAL 33.3G 2927 \nTOTAL, minus reserved VM space 33.3G 2927 \n",
"legacyInfo" : {
"threadTriggered" : {
}
},
"trialInfo" : {
"rollouts" : [
{
"rolloutId" : "5f72dc58705eff005a46b3a9",
"factorPackIds" : {
},
"deploymentId" : 240000015
},
{
"rolloutId" : "60f8ddccefea4203d95cbeef",
"factorPackIds" : {
},
"deploymentId" : 240000022
}
],
"experiments" : [
]
},
"reportNotes" : [
"dyld_process_snapshot_get_shared_cache failed"
]
}
Model: MacBookPro18,3, BootROM 8419.80.7, proc 10:8:2 processors, 32 GB, SMC
Graphics: Apple M1 Pro, Apple M1 Pro, Built-In
Display: Color LCD, 3024 x 1964 Retina, Main, MirrorOff, Online
Memory Module: LPDDR5, Hynix
AirPort: spairport_wireless_card_type_wifi (0x14E4, 0x4387), wl0: Nov 30 2022 02:17:16 version 20.10.965.13.8.7.131 FWID 01-1251c18d
Bluetooth: Version (null), 0 services, 0 devices, 0 incoming serial ports
Network Service: Wi-Fi, AirPort, en0
USB Device: USB31Bus
USB Device: USB31Bus
USB Device: USB31Bus
Thunderbolt Bus: MacBook Pro, Apple Inc.
Thunderbolt Bus: MacBook Pro, Apple Inc.
Thunderbolt Bus: MacBook Pro, Apple Inc.
Podfile
deployment_target = '11.0'
# Uncomment this line to define a global platform for your project
platform :ios, deployment_target
# CocoaPods analytics sends network stats synchronously affecting flutter build latency.
ENV['COCOAPODS_DISABLE_STATS'] = 'true'
project 'Runner', {
'Debug' => :debug,
'Profile' => :release,
'Release' => :release,
}
def flutter_root
generated_xcode_build_settings_path = File.expand_path(File.join('..', 'Flutter', 'Generated.xcconfig'), __FILE__)
unless File.exist?(generated_xcode_build_settings_path)
raise "#{generated_xcode_build_settings_path} must exist. If you're running pod install manually, make sure flutter pub get is executed first"
end
File.foreach(generated_xcode_build_settings_path) do |line|
matches = line.match(/FLUTTER_ROOT\=(.*)/)
return matches[1].strip if matches
end
raise "FLUTTER_ROOT not found in #{generated_xcode_build_settings_path}. Try deleting Generated.xcconfig, then run flutter pub get"
end
require File.expand_path(File.join('packages', 'flutter_tools', 'bin', 'podhelper'), flutter_root)
# add pods for desired Firebase products
# https://firebase.google.com/docs/ios/setup#available-pods
flutter_ios_podfile_setup
target 'Runner' do
use_frameworks!
use_modular_headers!
flutter_install_all_ios_pods File.dirname(File.realpath(__FILE__))
end
# JUMIO CHANGES
post_install do |installer|
installer.pods_project.targets.each do |target|
flutter_additional_ios_build_settings(target) # CHANGED FOR JUMIO
if ['iProov', 'Socket.IO-Client-Swift', 'Starscream', 'DatadogSDK'].include? target.name
target.build_configurations.each do |config|
config.build_settings['BUILD_LIBRARY_FOR_DISTRIBUTION'] = 'YES'
end
end
installer.pods_project.build_configurations.each do |config|
config.build_settings["EXCLUDED_ARCHS[sdk=iphonesimulator*]"] = "arm64"
end
end
# installer.pods_project.targets.each do |target|
# target.build_configurations.each do |config|
# if config.build_settings['IPHONEOS_DEPLOYMENT_TARGET'].to_f < 9.0
# config.build_settings['IPHONEOS_DEPLOYMENT_TARGET'] = '9.0'
# end
# end
# end
# code below is from this thread: https://stackoverflow.com/questions/73711671/flutter-ios-build-error-select-a-development-team-in-the-signing-capabiliti
installer.pods_project.targets.each do |target|
flutter_additional_ios_build_settings(target)
target.build_configurations.each do |config|
if target.respond_to?(:product_type) and target.product_type == "com.apple.product-type.bundle"
target.build_configurations.each do |config|
config.build_settings['CODE_SIGNING_ALLOWED'] = 'NO'
end
end
end
end
end
When I am trying to open xcode then it gives me an error
For your kind information I am working on Flutter
Xcode error screenshot:-
enter image description here
Xcode full error:-
Translated Report (Full Report Below)
-------------------------------------
Process: Xcode [987]
Path: /Applications/Xcode.app/Contents/MacOS/Xcode
Identifier: com.apple.dt.Xcode
Version: 13.4.1 (20504)
Build Info: IDEFrameworks-20504000000000000~2 (13F100)
App Item ID: 497799835
App External ID: 849405240
Code Type: ARM-64 (Native)
Parent Process: launchd [1]
User ID: 501
Date/Time: 2022-07-05 20:18:29.6652 +0600
OS Version: macOS 12.4 (21F79)
Report Version: 12
Anonymous UUID: BFC37DE6-5667-DA64-D362-1D0670B53487
Time Awake Since Boot: 420 seconds
System Integrity Protection: enabled
Crashed Thread: 0 Dispatch queue: com.apple.main-thread
Exception Type: EXC_CRASH (SIGABRT)
Exception Codes: 0x0000000000000000, 0x0000000000000000
Exception Note: EXC_CORPSE_NOTIFY
Application Specific Information:
abort() called
Thread 0 Crashed:: Dispatch queue: com.apple.main-thread
0 libsystem_kernel.dylib 0x1b01c2d98 __pthread_kill + 8
1 libsystem_pthread.dylib 0x1b01f7ee0 pthread_kill + 288
2 libsystem_c.dylib 0x1b0132340 abort + 168
3 Xcode 0x1042ff4c4 main.cold.1 + 40
4 Xcode 0x1042febd0 main + 356
5 dyld 0x1045ed08c start + 520
Thread 0 crashed with ARM Thread State (64-bit):
x0: 0x0000000000000000 x1: 0x0000000000000000 x2: 0x0000000000000000 x3: 0x0000000000000000
x4: 0x000000004b010001 x5: 0x0000000000000001 x6: 0x0000000000000000 x7: 0x0000000000000000
x8: 0x13f54261f51d14cd x9: 0x13f54260f17b114d x10: 0x007ffffffffffff8 x11: 0x00000003f2f7001a
x12: 0x000000000000000a x13: 0x0000000000000000 x14: 0x00000001afecc000 x15: 0x000000026ad98000
x16: 0x0000000000000148 x17: 0x000000020a283680 x18: 0x0000000000000000 x19: 0x0000000000000006
x20: 0x0000000104660580 x21: 0x0000000000000103 x22: 0x0000000104660660 x23: 0x0000000144806260
x24: 0x0000000000000000 x25: 0x0000000000000000 x26: 0x0000000000000000 x27: 0x0000000000000000
x28: 0x0000000000000000 fp: 0x000000016bb03940 lr: 0x00000001b01f7ee0
sp: 0x000000016bb03920 pc: 0x00000001b01c2d98 cpsr: 0x40001000
far: 0x0000000142f28050 esr: 0x56000080 Address size fault
Binary Images:
0x1b01b9000 - 0x1b01f0fff libsystem_kernel.dylib (*) <03f48dc5-caa7-3678-af61-1a3c7fa8b06e> /usr/lib/system/libsystem_kernel.dylib
0x1b01f1000 - 0x1b01fdfff libsystem_pthread.dylib (*) <42166a2c-89a9-3c38-a215-f028544cea23> /usr/lib/system/libsystem_pthread.dylib
0x1b00b8000 - 0x1b0139fff libsystem_c.dylib (*) <86746b94-88e3-342d-b2b2-54303404e492> /usr/lib/system/libsystem_c.dylib
0x1042fc000 - 0x1042fffff com.apple.dt.Xcode (13.4.1) <209ad0d0-251b-3efc-a3ea-fd175763be79> /Applications/Xcode.app/Contents/MacOS/Xcode
0x1045e8000 - 0x104647fff dyld (*) <d9c2a46e-8dc4-3950-9d6a-f799e8ccb683> /usr/lib/dyld
External Modification Summary:
Calls made by other processes targeting this process:
task_for_pid: 0
thread_create: 0
thread_set_state: 0
Calls made by this process:
task_for_pid: 0
thread_create: 0
thread_set_state: 0
Calls made by all processes on this machine:
task_for_pid: 0
thread_create: 0
thread_set_state: 0
VM Region Summary:
ReadOnly portion of Libraries: Total=817.4M resident=0K(0%) swapped_out_or_unallocated=817.4M(100%)
Writable regions: Total=163.1M written=0K(0%) resident=0K(0%) swapped_out=0K(0%) unallocated=163.1M(100%)
VIRTUAL REGION
REGION TYPE SIZE COUNT (non-coalesced)
=========== ======= =======
Kernel Alloc Once 32K 1
MALLOC 35.1M 13
MALLOC guard page 96K 5
MALLOC_MEDIUM (reserved) 120.0M 1 reserved VM address space (unallocated)
STACK GUARD 56.0M 1
Stack 8176K 1
__AUTH 1863K 147
__AUTH_CONST 10.2M 292
__DATA 8604K 279
__DATA_CONST 10.2M 296
__DATA_DIRTY 806K 111
__FONT_DATA 4K 1
__LINKEDIT 577.3M 3
__OBJC_CONST 1357K 114
__OBJC_RO 83.0M 1
__OBJC_RW 3152K 1
__TEXT 240.1M 309
__UNICODE 592K 1
dyld private memory 1024K 1
shared memory 16K 1
=========== ======= =======
TOTAL 1.1G 1579
TOTAL, minus reserved VM space 1.0G 1579
-----------
Full Report
-----------
{"app_name":"Xcode","timestamp":"2022-07-05 20:18:31.00 +0600","app_version":"13.4.1","slice_uuid":"209ad0d0-251b-3efc-a3ea-fd175763be79","adam_id":"497799835","build_version":"20504","platform":1,"bundleID":"com.apple.dt.Xcode","share_with_app_devs":1,"is_first_party":0,"bug_type":"309","os_version":"macOS 12.4 (21F79)","incident_id":"9321D790-BA4A-4748-9B50-681A237C3F19","name":"Xcode"}
{
"uptime" : 420,
"procLaunch" : "2022-07-05 20:18:24.3525 +0600",
"procRole" : "Background",
"version" : 2,
"userID" : 501,
"deployVersion" : 210,
"modelCode" : "MacBookAir10,1",
"procStartAbsTime" : 10082599645,
"coalitionID" : 995,
"osVersion" : {
"train" : "macOS 12.4",
"build" : "21F79",
"releaseType" : "User"
},
"captureTime" : "2022-07-05 20:18:29.6652 +0600",
"incident" : "9321D790-BA4A-4748-9B50-681A237C3F19",
"bug_type" : "309",
"pid" : 987,
"procExitAbsTime" : 10210035128,
"translated" : false,
"cpuType" : "ARM-64",
"procName" : "Xcode",
"procPath" : "\/Applications\/Xcode.app\/Contents\/MacOS\/Xcode",
"bundleInfo" : {"CFBundleShortVersionString":"13.4.1","CFBundleVersion":"20504","CFBundleIdentifier":"com.apple.dt.Xcode"},
"buildInfo" : {"ProjectName":"IDEFrameworks","SourceVersion":"20504000000000000","ProductBuildVersion":"13F100","BuildVersion":"2"},
"storeInfo" : {"storeCohortMetadata":"10|date=1656723600000&sf=143441&pgtp=Software&pgid=497799835&prpg=Search_osx&ctxt=Search&issrch=1&lngid=1","itemID":"497799835","deviceIdentifierForVendor":"6C4FDE9F-1F16-5026-ADB9-A87FF85DC63E","thirdParty":true,"softwareVersionExternalIdentifier":"849405240"},
"parentProc" : "launchd",
"parentPid" : 1,
"coalitionName" : "com.apple.dt.Xcode",
"crashReporterKey" : "BFC37DE6-5667-DA64-D362-1D0670B53487",
"sip" : "enabled",
"isCorpse" : 1,
"exception" : {"codes":"0x0000000000000000, 0x0000000000000000","rawCodes":[0,0],"type":"EXC_CRASH","signal":"SIGABRT"},
"asi" : {"libsystem_c.dylib":["abort() called"]},
"extMods" : {"caller":{"thread_create":0,"thread_set_state":0,"task_for_pid":0},"system":{"thread_create":0,"thread_set_state":0,"task_for_pid":0},"targeted":{"thread_create":0,"thread_set_state":0,"task_for_pid":0},"warnings":0},
"faultingThread" : 0,
"threads" : [{"triggered":true,"id":11247,"threadState":{"x":[{"value":0},{"value":0},{"value":0},{"value":0},{"value":1258356737},{"value":1},{"value":0},{"value":0},{"value":1438128644506326221},{"value":1438128640150409549},{"value":36028797018963960},{"value":16961175578},{"value":10},{"value":0},{"value":7246495744},{"value":10382573568},{"value":328},{"value":8760342144},{"value":0},{"value":6},{"value":4368762240,"symbolLocation":0,"symbol":"_main_thread"},{"value":259},{"value":4368762464,"symbolLocation":224,"symbol":"_main_thread"},{"value":5444231776},{"value":0},{"value":0},{"value":0},{"value":0},{"value":0}],"flavor":"ARM_THREAD_STATE64","lr":{"value":7249821408},"cpsr":{"value":1073745920},"fp":{"value":6101678400},"sp":{"value":6101678368},"esr":{"value":1442840704,"description":" Address size fault"},"pc":{"value":7249603992,"matchesCrashFrame":1},"far":{"value":5418156112}},"queue":"com.apple.main-thread","frames":[{"imageOffset":40344,"symbol":"__pthread_kill","symbolLocation":8,"imageIndex":0},{"imageOffset":28384,"symbol":"pthread_kill","symbolLocation":288,"imageIndex":1},{"imageOffset":500544,"symbol":"abort","symbolLocation":168,"imageIndex":2},{"imageOffset":13508,"symbol":"main.cold.1","symbolLocation":40,"imageIndex":3},{"imageOffset":11216,"symbol":"main","symbolLocation":356,"imageIndex":3},{"imageOffset":20620,"symbol":"start","symbolLocation":520,"imageIndex":4}]}],
"usedImages" : [
{
"source" : "P",
"arch" : "arm64e",
"base" : 7249563648,
"size" : 229376,
"uuid" : "03f48dc5-caa7-3678-af61-1a3c7fa8b06e",
"path" : "\/usr\/lib\/system\/libsystem_kernel.dylib",
"name" : "libsystem_kernel.dylib"
},
{
"source" : "P",
"arch" : "arm64e",
"base" : 7249793024,
"size" : 53248,
"uuid" : "42166a2c-89a9-3c38-a215-f028544cea23",
"path" : "\/usr\/lib\/system\/libsystem_pthread.dylib",
"name" : "libsystem_pthread.dylib"
},
{
"source" : "P",
"arch" : "arm64e",
"base" : 7248510976,
"size" : 532480,
"uuid" : "86746b94-88e3-342d-b2b2-54303404e492",
"path" : "\/usr\/lib\/system\/libsystem_c.dylib",
"name" : "libsystem_c.dylib"
},
{
"source" : "P",
"arch" : "arm64",
"base" : 4365205504,
"CFBundleShortVersionString" : "13.4.1",
"CFBundleIdentifier" : "com.apple.dt.Xcode",
"size" : 16384,
"uuid" : "209ad0d0-251b-3efc-a3ea-fd175763be79",
"path" : "\/Applications\/Xcode.app\/Contents\/MacOS\/Xcode",
"name" : "Xcode",
"CFBundleVersion" : "20504"
},
{
"source" : "P",
"arch" : "arm64e",
"base" : 4368269312,
"size" : 393216,
"uuid" : "d9c2a46e-8dc4-3950-9d6a-f799e8ccb683",
"path" : "\/usr\/lib\/dyld",
"name" : "dyld"
}
],
"sharedCache" : {
"base" : 7246495744,
"size" : 3136077824,
"uuid" : "513553bb-5ca5-3b9e-a613-b0603ffe3038"
},
"vmSummary" : "ReadOnly portion of Libraries: Total=817.4M resident=0K(0%) swapped_out_or_unallocated=817.4M(100%)\nWritable regions: Total=163.1M written=0K(0%) resident=0K(0%) swapped_out=0K(0%) unallocated=163.1M(100%)\n\n VIRTUAL REGION \nREGION TYPE SIZE COUNT (non-coalesced) \n=========== ======= ======= \nKernel Alloc Once 32K 1 \nMALLOC 35.1M 13 \nMALLOC guard page 96K 5 \nMALLOC_MEDIUM (reserved) 120.0M 1 reserved VM address space (unallocated)\nSTACK GUARD 56.0M 1 \nStack 8176K 1 \n__AUTH 1863K 147 \n__AUTH_CONST 10.2M 292 \n__DATA 8604K 279 \n__DATA_CONST 10.2M 296 \n__DATA_DIRTY 806K 111 \n__FONT_DATA 4K 1 \n__LINKEDIT 577.3M 3 \n__OBJC_CONST 1357K 114 \n__OBJC_RO 83.0M 1 \n__OBJC_RW 3152K 1 \n__TEXT 240.1M 309 \n__UNICODE 592K 1 \ndyld private memory 1024K 1 \nshared memory 16K 1 \n=========== ======= ======= \nTOTAL 1.1G 1579 \nTOTAL, minus reserved VM space 1.0G 1579 \n",
"legacyInfo" : {
"threadTriggered" : {
"queue" : "com.apple.main-thread"
}
},
"trialInfo" : {
"rollouts" : [
{
"rolloutId" : "5ffde50ce2aacd000d47a95f",
"factorPackIds" : {
},
"deploymentId" : 240000167
},
{
"rolloutId" : "61301e3a61217b3110231469",
"factorPackIds" : {
"SIRI_FIND_MY_CONFIGURATION_FILES" : "6216ae152a40e71046e16225"
},
"deploymentId" : 240000016
}
],
"experiments" : [
]
}
}
Model: MacBookAir10,1, BootROM 7459.121.3, proc 8:4:4 processors, 8 GB, SMC
Graphics: Apple M1, Apple M1, Built-In
Display: Color LCD, 2560 x 1600 Retina, Main, MirrorOff, Online
Memory Module: LPDDR4
AirPort: Wi-Fi, wl0: Mar 23 2022 19:57:59 version 18.60.27.0.7.8.129 FWID 01-570be953
Bluetooth: Version (null), 0 services, 0 devices, 0 incoming serial ports
Network Service: Wi-Fi, AirPort, en0
USB Device: USB31Bus
USB Device: USB31Bus
Thunderbolt Bus: MacBook Air, Apple Inc.
Thunderbolt Bus: MacBook Air, Apple Inc.
Question mark and not opening ios simulator screenshot:-
enter image description here
All working perfectly. When I was installed xcode command line tools through system update and then I was installed homebrew and install cocoapods through brew. Then my problem starts.
I am begineer in this field. Thats why please look at it with an apologetic look.
Question mark appears when the app is not found
In your case Question mark is showing on Simulator which means Xcode is unable to fetch your IOS Simulator
Solution: Remove Caches from your Xcode and remove all older created IOS simulator and try creating new one with updated at IOS 15.5
Application Crash 1/4 times while downloading
Crash log here. i didn't understand how to fix it.
Incident Identifier: 36BCCA72-9FBF-448A-BCA7-AACB0195B311
Hardware Model: iPhone12,3
Process: iBIBLE [16728]
Path: /private/var/containers/Bundle/Application/E384D4A1-AD75-4693-94D5-335B158C3452/iBIBLE.app/iBIBLE
Identifier: com.revelationmedia-iBible
Version: 23 (1.0)
AppStoreTools: 13C90b
AppVariant: 1:iPhone12,3:14
Beta: YES
Code Type: ARM-64 (Native)
Role: Foreground
Parent Process: launchd [1]
Coalition: com.revelationmedia-iBible [2371]
Date/Time: 2022-01-28 08:44:59.9791 -0800
Launch Time: 2022-01-28 08:44:46.7851 -0800
OS Version: iPhone OS 14.8 (18H17)
Release Type: User
Baseband Version: 2.06.00
Report Version: 104
Exception Type: EXC_BAD_ACCESS (SIGSEGV)
Exception Subtype: KERN_INVALID_ADDRESS at 0x8000000000000040 -> 0x0000000000000040 (possible pointer authentication failure)
VM Region Info: 0x40 is not in any region. Bytes before following region: 4336795584
REGION TYPE START - END [ VSIZE] PRT/MAX SHRMOD REGION DETAIL
UNUSED SPACE AT START
--->
__TEXT 1027e4000-1027f0000 [ 48K] r-x/r-x SM=COW ...LE.app/iBIBLE
#objc private func updateProgress() {
delegate?.downloadTask(self, didWriteData: totalBytesWritten.values.reduce(0, +),
totalBytesExpectedToWrite: totalBytesExpectedToWrite.values.reduce(0, +))
}
func downloadTask(_ task: ChapterDownloadTask, didWriteData totalBytesWritten: Int64, totalBytesExpectedToWrite: Int64){
let value = self.downloading.value
guard totalBytesWritten > 0 && totalBytesExpectedToWrite > 0,
let chapter = task.chapter,
let index = value
.firstIndex(where: {$0.chapter.systemName == chapter.systemName}) else {
return
}
value[index].totalBytesExpectedToWrite = totalBytesExpectedToWrite
value[index].totalBytesWritten = totalBytesWritten
self.downloading.accept(value)
}
I have received the following error from one of our clients with an exact place where the crash happen.
Error report:
Symbolize build number: 89778
2Incident Identifier: 8B5F5ADE-295C-4596-8B34-37280A38511A
3Hardware Model: iPhone13,2
4Process: Glip [73149]
5Path: /private/var/containers/Bundle/Application/D2CA9563-630A-470F-BC84-A9E6546D5B71/SomeApp.app
6Identifier: SomeApp
7Version: 89778 (21.2.35)
8AppStoreTools: 12E506
9AppVariant: 1:iPhone13,2:14
10Code Type: ARM-64 (Native)
11Role: unknown
12Parent Process: launchd [1]
13Coalition: com.glip.mobile [7033]
14
15
16Date/Time: 2021-07-06 18:29:00.1537 -0700
17Launch Time: 2021-07-06 18:28:56.2301 -0700
18OS Version: iPhone OS 14.6 (18F72)
19Release Type: User
20Baseband Version: 1.71.01
21Report Version: 104
22
23Exception Type: EXC_CRASH (SIGSEGV)
24Exception Codes: 0x0000000000000000, 0x0000000000000000
25Exception Note: EXC_CORPSE_NOTIFY
26Termination Signal: Segmentation fault: 11
27Termination Reason: Namespace SIGNAL, Code 0xb
28Terminating Process: Glip [73149]
29Triggered by Thread: 0
30
31Thread 0 name:
32Thread 0 Crashed:
330 CoreFoundation 0x000000018ed62ea4 __CFStringChangeSizeMultiple + 148 (CFString.c:1032)
341 CoreFoundation 0x000000018ed5d874 __CFStringAppendBytes + 708 (CFString.c:1149)
352 CoreFoundation 0x000000018ed4d800 __CFStringAppendFormatCore + 9220 (CFString.c:8375)
363 CoreFoundation 0x000000018ed619fc _CFStringAppendFormatAndArgumentsAux2 + 68 (CFString.c:7556)
374 CoreFoundation 0x000000018ec8af58 -[__NSCFString appendFormat:] + 120 (CFObject.m:462)
385 Pendo 0x0000000114173794 -[NSString(IIOStringUtils) pnd_toHexString:length:] + 116
396 Pendo 0x00000001141733cc -[NSString(IIOStringUtils) pnd_SHA256] + 112
The code responsible for the crash is the following:
//my stack trace is get called from this method (don't think its matter in that case)
- (nonnull NSString *)pnd_SHA1 {
unsigned int outputLength = CC_SHA1_DIGEST_LENGTH;
unsigned char output[outputLength];
CC_SHA1(self.UTF8String, [self pnd_UTF8Length], output);
return [NSString pnd_toHexString:output length:outputLength];
}
- (NSString *)pnd_SHA256 {
unsigned int outputLength = CC_SHA256_DIGEST_LENGTH;
unsigned char output[outputLength];
CC_SHA256(self.UTF8String, [self pnd_UTF8Length], output);
return [self pnd_toHexString:output length:outputLength];
}
- (NSString*)pnd_toHexString:(unsigned char*) data length:(unsigned int)length {
NSMutableString* hash = [NSMutableString stringWithCapacity:length * 2];
for (unsigned int i = 0; i < length; i++) {
[hash appendFormat:#"%02x", data[i]];
data[i] = 0;
}
return [hash copy];
}
From quick look I immediately blamed the following line:
[hash appendFormat:#"%02x", data[i]];
So I reproduced the crash by:[hash appendFormat:nil];
And the local report I got: (which is similar BUT not exact)
Process: MyApp [45754]
Path: /Users/USER/Library/Developer/CoreSimulator/Devices/EAEA42C2-3B8F-48EF-B1D3-BEA68FE046A0/data/Containers/Bundle/Application/DE83DA67-70A9-4ECF-92B9-526137C6E4B3/MyApp
Identifier: PendoDevelopmentApp
Version: 1.0 (1)
Code Type: X86-64 (Native)
Parent Process: launchd_sim [24742]
Responsible: SimulatorTrampoline [957]
User ID: 502
Date/Time: 2021-07-21 14:42:56.804 +0300
OS Version: Mac OS X 10.15.7 (19H1217)
Report Version: 12
Bridge OS Version: 5.4 (18P4663)
Anonymous UUID: 74B25560-EFCE-769F-F0B4-E4DD4C6B09A4
Sleep/Wake UUID: F52FC80E-F86E-4813-B352-D0A7B5FF87B2
Time Awake Since Boot: 120000 seconds
Time Since Wake: 6700 seconds
System Integrity Protection: enabled
Crashed Thread: 0 Dispatch queue: com.apple.main-thread
Exception Type: EXC_BAD_ACCESS (SIGSEGV)
Exception Codes: KERN_INVALID_ADDRESS at 0x0000000000000000
Exception Note: EXC_CORPSE_NOTIFY
Termination Signal: Segmentation fault: 11
Termination Reason: Namespace SIGNAL, Code 0xb
Terminating Process: exc handler [45754]
VM Regions Near 0:
-->
__TEXT 000000010f038000-000000010f0bc000 [ 528K] r-x/r-x SM=COW /Users/USER/Library/Developer/CoreSimulator/Devices/EAEA42C2-3B8F-48EF-B1D3-BEA68FE046A0/data/Containers/Bundle/Application/DE83DA67-70A9-4ECF-92B9-526137C6E4B3/MyApp
Application Specific Information:
CoreSimulator 732.18.6 - Device: iPhone 11 Pro Max (EAEA42C2-3B8F-48EF-B1D3-BEA68FE046A0) - Runtime: iOS 13.0 (17A577) - DeviceType: iPhone 11 Pro Max
Thread 0 Crashed:: Dispatch queue: com.apple.main-thread
0 com.apple.CoreFoundation 0x00007fff23b1df08 __CFStringAppendFormatCore + 536
1 com.apple.CoreFoundation 0x00007fff23b395cc _CFStringAppendFormatAndArgumentsAux2 + 60
2 com.apple.CoreFoundation 0x00007fff23accba8 -[__NSCFString appendFormat:] + 184
3 io.pendo.PendoSDKFramework 0x000000010f35061d -[NSString(IIOStringUtils) pnd_toHexString:length:] + 109 (NSString+IIOStringUtils.m:111)
4 io.pendo.PendoSDKFramework 0x000000010f35010f -[NSString(IIOStringUtils) pnd_SHA256] + 175 (NSString+IIOStringUtils.m:57)
and fixed the code as follows:
+ (NSString*)pnd_toHexString:(unsigned char*)data length:(unsigned int)length {
if (data == nil || data == NULL) {
IIOCriticalLog(#"hash diget is nil");
return nil;
}
NSMutableString* hash = [NSMutableString stringWithCapacity:length * 2];
for (unsigned int i = 0; i < length; i++) {
NSString *str = [NSString stringWithFormat:#"%02x",data[i]];
if (str == nil) {
IIOCriticalLog(#"hash diget was corrupted");
return nil;
}
[hash appendString:str];
data[i] = 0;
}
return [hash copy];
}
The problem that I am still not 100% sure how it could happen for only this specific client as for how the appendString could get a nil.
Maybe somebody had a similar issue.
My application update has been rejected. Into the rejection message, they wrote "Application crashes at launch". I then tried my application but couldn't make it crash. So I used TestFlight and noticed that when I was launched my app from TestFlight or AppStore, it was crashing at launch. But if I launch my app normally, it does work without any crashes. The thing is this bug occurred since iOS 10 update. Now my application on store also crashes when launched from AppStore while it was working fine 2 weeks go.
Apple sent me a crash log:
Incident Identifier: 001969F1-F275-4AC3-AFE1-E0426957B702
CrashReporter Key: 5ad9695e945a7d5eb5d61fd18d1c3989ccd155b4
Hardware Model: xxx
Process: MyApp [400]
Path: /private/var/containers/Bundle/Application/644423A4-EFE7-41B1-99D9-47B46338A6E2/MyApp.app/MyApp
Identifier: com.MyApp.com
Version: 20160527 (2.7.9)
Code Type: ARM-64 (Native)
Role: Foreground
Parent Process: launchd [1]
Coalition: com.MyApp.com [451]
Date/Time: 2016-09-22 11:19:22.6893 -0700
Launch Time: 2016-09-22 11:19:22.4164 -0700
OS Version: iPhone OS 10.0.1 (14A403)
Report Version: 104
Exception Type: EXC_BREAKPOINT (SIGTRAP)
Exception Codes: 0x0000000000000001, 0x000000010008a864
Termination Signal: Trace/BPT trap: 5
Termination Reason: Namespace SIGNAL, Code 0x5
Terminating Process: exc handler [0]
Triggered by Thread: 0
Filtered syslog:
None found
Thread 0 name: Dispatch queue: com.apple.main-thread
Thread 0 Crashed:
0 MyApp 0x1000efd3c specialized AppDelegate.application(UIApplication, didFinishLaunchingWithOptions : [NSObject : AnyObject]?) -> Bool (AppDelegate.swift:218)
1 MyApp 0x1000ed310 #objc AppDelegate.application(UIApplication, didFinishLaunchingWithOptions : [NSObject : AnyObject]?) -> Bool (AppDelegate.swift)
2 UIKit 0x19888c42c <redacted> + 400
3 UIKit 0x198a9cb70 <redacted> + 3524
4 UIKit 0x198aa28e0 <redacted> + 1656
5 UIKit 0x198ab7080 <redacted> + 48
6 UIKit 0x198a9f8c4 <redacted> + 168
7 FrontBoardServices 0x1945798bc <redacted> + 36
8 FrontBoardServices 0x194579728 <redacted> + 176
9 FrontBoardServices 0x194579ad0 <redacted> + 56
10 CoreFoundation 0x192986278 __CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE0_PERFORM_FUNCTION__ + 24
11 CoreFoundation 0x192985bc0 __CFRunLoopDoSources0 + 524
12 CoreFoundation 0x1929837c0 __CFRunLoopRun + 804
13 CoreFoundation 0x1928b2048 CFRunLoopRunSpecific + 444
14 UIKit 0x1988855dc <redacted> + 608
15 UIKit 0x198880360 UIApplicationMain + 208
16 MyApp 0x1000ee818 main (AppDelegate.swift:58)
17 libdispatch.dylib 0x1918945b8 (Missing)
There is 4 others threads but this one is the one crashing so I did not copy the rest. I did some research and even though I did notice my crash log wasn't fully translated (for some strange reason since I have all dsyms but whatever), I did manage to understand that I was crashing on line 217 (tell me if I'm wrong). I know that SIGTRAP are most of time NSExceptions being thrown. The line itself is:
let api = MyAppAPI.instance
The instance is a singleton. My guess is that something into the instance creation is failing. Here is the code:
static var instance: MyAppAPI = {
return Singleton.instance
}()
class MyAppAPI: Manager {
struct Singleton {
static var configuration: NSURLSessionConfiguration = {
var configuration = NSURLSessionConfiguration.defaultSessionConfiguration()
let version = NSBundle.mainBundle().objectForInfoDictionaryKey("CFBundleShortVersionString") as? String ?? ""
configuration.HTTPAdditionalHeaders = [
"Accept": "application/vnd.MyApp.api+json, application/json;q=0.9",
"User-Agent": "MyApp iOS/\(version)",
"X-API-Version": "1.0.1"
]
return configuration
}()
static var instance = MyAppAPI(configuration: configuration)
static var baseURL : NSURL! = nil
}
I'm so desperate about this error, I did try a few things that did not work out. Am I looking into the right place ? Is there anyone with a solution ? Any kind of help would be greatly appreciated. I'm willing to gift anyone that can find me the solution or help me find the solution !
I found the solution of my problem.
As expected it was coming from func application(application: UIApplication, didFinishLaunchingWithOptions launchOptions: [NSObject: AnyObject]?) -> Bool
Inside the function I had let userInfo = launchOpts[UIApplicationLaunchOptionsRemoteNotificationKey] as! NSDictionary.
I changed it to let userInfo = launchOpts[UIApplicationLaunchOptionsRemoteNotificationKey] as? NSDictionary and then checked if userInfo != nil to make all the code running userInfointo the bracket.
If it helps anyone or if anyone is struggling with this issue, check all yours ! and swap these to ? if needed (on didFinishLaunchingWithOptions) since launching from TestFlight/AppStore seems to have different options than from installed application (just a guess, not pro enough to claim it).