Capacitor ios error when running in simulator

Hello,

I buid a ionic app (ionic v5) and I added capacitor because push notifications. On android I didn’t have any problem with android stuido and to generate the apk. Now I need publish the app on ios, I created a virtualbox machine with macos big sur. The project open on xcode with the command “npx cap open ios” without problem and I click on the button to run the app on the simulator, the build is successful but the simulator crash with this log:

Process: SpringBoard [957]
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 [774]
Responsible: SimulatorTrampoline [513]
User ID: 501

Date/Time: 2020-11-26 10:04:50.870 -0800
OS Version: macOS 11.0.1 (20B29)
Report Version: 12
Anonymous UUID: 24B8E683-03AF-4EC5-6F82-0EF7DF97BD07

Time Awake Since Boot: 550 seconds

System Integrity Protection: enabled

Crashed Thread: 2 Dispatch queue: com.apple.root.default-qos

Exception Type: EXC_BAD_INSTRUCTION (SIGILL)
Exception Codes: 0x0000000000000001, 0x0000000000000000
Exception Note: EXC_CORPSE_NOTIFY

Termination Signal: Illegal instruction: 4
Termination Reason: Namespace SIGNAL, Code 0x4
Terminating Process: exc handler [957]

Application Specific Information:
CoreSimulator 732.18.0.2 - Device: iPhone 8 (054E1FBF-24AC-4329-A953-0DA1EB4100C0) - Runtime: iOS 14.2 (18B79) - DeviceType: iPhone 8

Thread 0:: Dispatch queue: com.apple.main-thread
0 libsystem_platform.dylib 0x00007fff5e735b98 _platform_memmove$VARIANT$Base + 1592
1 com.apple.CoreMedia 0x00007fff2788140c FigDataByteStreamRead + 117
2 com.apple.MediaToolbox 0x00007fff2b2b797b _createContiguousBufferFromChunks + 460
3 com.apple.MediaToolbox 0x00007fff2b2b77a9 FigPhotoPictureReaderCreateContiguousBlockBufferFromChunks + 23
4 com.apple.MediaToolbox 0x00007fff2b28993d _decodeItem + 3227
5 com.apple.MediaToolbox 0x00007fff2b28b865 _decodeItem + 11203
6 com.apple.MediaToolbox 0x00007fff2b2884f5 _applyDecodeStrategy + 463
7 com.apple.MediaToolbox 0x00007fff2b28723c _decodeImage + 354
8 com.apple.MediaToolbox 0x00007fff2b2842aa _createImageForIndex + 631
9 com.apple.MediaToolbox 0x00007fff2b2975a1 FigPhotoDecompressionContainerCreateImageForIndex + 81
10 com.apple.ImageIO 0x00007fff20d7414f HEIFReadPlugin::copyImageBlockSet(InfoRec*, CGImageProvider*, CGRect, CGSize, __CFDictionary const*) + 2079
11 com.apple.ImageIO 0x00007fff20cb28d3 IIO_Reader::CopyImageBlockSetProc(void*, CGImageProvider*, CGRect, CGSize, __CFDictionary const*) + 123
12 com.apple.ImageIO 0x00007fff20cc1266 IIOImageProviderInfo::copyImageBlockSetWithOptions(CGImageProvider*, CGRect, CGSize, __CFDictionary const*) + 852
13 com.apple.ImageIO 0x00007fff20cbe9dd IIOImageProviderInfo::CopyImageBlockSetWithOptions(void*, CGImageProvider*, CGRect, CGSize, __CFDictionary const*) + 691
14 com.apple.CoreGraphics 0x00007fff27ff2fe9 imageProvider_retain_data + 93
15 com.apple.CoreGraphics 0x00007fff27d62b0b CGDataProviderRetainData + 75
16 com.apple.CoreGraphics 0x00007fff27fddb37 CGAccessSessionCreate + 98
17 com.apple.CoreGraphics 0x00007fff27d9ff26 CGDataProviderCopyData + 160
18 com.apple.SpringBoardFoundation 0x00007fff34f7fb11 -[UIImage(SBFWallpapers) sbf_imageHashData] + 74
19 com.apple.SpringBoardFoundation 0x00007fff34fc6340 -[SBFWallpaperConfigurationManager setWallpaperImage:originalImage:thumbnailData:imageHashData:wallpaperOptions:forVariants:options:wallpaperMode:isMigrating:] + 455
20 com.apple.SpringBoardFoundation 0x00007fff34fc8e92 -[SBFWallpaperConfigurationManager setWallpaperConfigurationFromDefaultWallpaperConfiguration:forVariants:wallpaperMode:name:] + 315
21 com.apple.SpringBoardFoundation 0x00007fff34fc8bf9 -[SBFWallpaperConfigurationManager setWallpaperBundle:appearance:] + 808
22 com.apple.SpringBoardFoundation 0x00007fff34fc8833 -[SBFWallpaperConfigurationManager restoreDefaultWallpaperForAllVariantsAndNotify:] + 240
23 com.apple.SpringBoardFoundation 0x00007fff34fca3f4 -[SBFWallpaperConfigurationManager performMigrationWithFailureHandler:] + 3747
24 com.apple.SpringBoardFramework 0x00007fff5ac5b492 -[SpringBoard applicationDidFinishLaunching:] + 2161
25 com.apple.UIKitCore 0x00007fff246714a0 -[UIApplication _handleDelegateCallbacksWithOptions:isSuspended:restoreState:] + 283
26 com.apple.UIKitCore 0x00007fff2467382c -[UIApplication _callInitializationDelegatesWithActions:forCanvas:payload:fromOriginatingProcess:] + 6028
27 com.apple.UIKitCore 0x00007fff246789fd -[UIApplication _runWithMainScene:transitionContext:completion:] + 1237
28 com.apple.UIKitCore 0x00007fff23ca37f4 -[_UISceneLifecycleMultiplexer completeApplicationLaunchWithFBSScene:transitionContext:] + 179
29 com.apple.UIKitCore 0x00007fff24674dea -[UIApplication _compellApplicationLaunchToCompleteUnconditionally] + 59
30 com.apple.UIKitCore 0x00007fff24675179 -[UIApplication _run] + 898
31 com.apple.UIKitCore 0x00007fff2467a038 UIApplicationMain + 101
32 com.apple.SpringBoardFramework 0x00007fff5ac45db7 SBSystemAppMain + 7504
33 libdyld.dylib 0x00007fff20256409 start + 1

I trying understand the logs and search on google but i dont find anything… Someone can help me?

Thank you!

I found the solution for my problem. Was not problem of ionic plataform but of virtual machine, sorry!

If you use virtual box to run macos disable avx/avx2: https://stackoverflow.com/questions/58156879/ios-simulator-11-1-that-comes-with-xcode-11-1-gm-seed-seems-to-be-unable-to-bo

Thanks!