Open ry-itto opened 1 year ago
Describe the bug Xcode Preview crashes when preview target uses moko-resources Strings.
moko-resources
To Reproduce
Expected behavior Xcode Preview will not be crashed.
@kittinunf Do you have any idea?
I can take a look but it looks like the preview is running on the different folder structure
Describe the bug Xcode Preview crashes when preview target uses
moko-resources
Strings.Crash Log
```log ------------------------------------- Translated Report (Full Report Below) ------------------------------------- Incident Identifier: D35CB8E7-7D16-487F-BADD-45AE9201DD18 CrashReporter Key: 7546AF85-5BCF-954F-8478-B590BCD12A5E Hardware Model: MacBookAir10,1 Process: XCPreviewAgent [90595] Path: /Users/USER/Library/Developer/Xcode/UserData/Previews/Simulator Devices/DF360DED-874A-47E3-AF11-4A7803605D1B/data/Containers/Bundle/Application/D1CF9A62-CE5F-4581-B2F3-C4FC20BD423B/XCPreviewAgent.app/XCPreviewAgent Identifier: com.apple.dt.XCPreviewAgent Version: 14.0 (20.0.50) Code Type: ARM-64 (Native) Role: Foreground Parent Process: launchd_sim [80722] Coalition: com.apple.CoreSimulator.SimDevice.DF360DED-874A-47E3-AF11-4A7803605D1B [47210] Responsible Process: SimulatorTrampoline [1784] Date/Time: 2022-09-22 11:25:31.2887 +0900 Launch Time: 2022-09-22 11:25:30.0179 +0900 OS Version: macOS 12.5.1 (21G83) Release Type: User Report Version: 104 Exception Type: EXC_CRASH (SIGABRT) Exception Codes: 0x0000000000000000, 0x0000000000000000 Exception Note: EXC_CORPSE_NOTIFY Triggered by Thread: 0 Kernel Triage: VM - pmap_enter failed with resource shortage VM - pmap_enter failed with resource shortage Thread 0 Crashed:: Dispatch queue: BSXPCCnx:com.apple.dt.xcode-previews.systemservices (BSCnx:client:com.apple.dt.uv.agent-preview-nonui-service) 0 libsystem_kernel.dylib 0x1ae50fe60 __pthread_kill + 8 1 libsystem_pthread.dylib 0x1ae5623c0 pthread_kill + 256 2 libsystem_c.dylib 0x180129e38 abort + 124 3 AboutFeature_-2AEA03ED2811082D_PackageProduct 0x10ff3ba7c konan::abort() + 12 4 AboutFeature_-2AEA03ED2811082D_PackageProduct 0x10ff49a74 (anonymous namespace)::terminateWithUnhandledException(ObjHeader*)::$_1::operator()() const + 20 5 AboutFeature_-2AEA03ED2811082D_PackageProduct 0x10ff49938 void (anonymous namespace)::$_0::operator()<(anonymous namespace)::terminateWithUnhandledException(ObjHeader*)::$_1>((anonymous namespace)::terminateWithUnhandledException(ObjHeader*)::$_1) + 80 6 AboutFeature_-2AEA03ED2811082D_PackageProduct 0x10ff496f8 (anonymous namespace)::terminateWithUnhandledException(ObjHeader*) + 56 7 AboutFeature_-2AEA03ED2811082D_PackageProduct 0x10ff49688 (anonymous namespace)::processUnhandledException(ObjHeader*) + 100 8 AboutFeature_-2AEA03ED2811082D_PackageProduct 0x10ff4b52c kotlin::ProcessUnhandledException(ObjHeader*) + 60 9 AboutFeature_-2AEA03ED2811082D_PackageProduct 0x10ff4ef50 Kotlin_ObjCExport_trapOnUndeclaredException + 36 10 AboutFeature_-2AEA03ED2811082D_PackageProduct 0x10ff0ea50 objc2kotlin.5325 + 220 11 AboutView.1.preview-thunk.dylib 0x118c10260 closure #1 in closure #1 in closure #1 in closure #1 in AboutView.__preview__body.getter + 324 (AboutView.swift:85) 12 SwiftUI 0x1079d4638 0x106ee0000 + 11486776 13 AboutView.1.preview-thunk.dylib 0x118c0f880 closure #1 in closure #1 in closure #1 in AboutView.__preview__body.getter + 1192 (AboutView.swift:84) 14 AboutView.1.preview-thunk.dylib 0x118c10114 partial apply for closure #1 in closure #1 in closure #1 in AboutView.__preview__body.getter + 20 15 SwiftUI 0x10770e7a4 0x106ee0000 + 8578980 16 AboutView.1.preview-thunk.dylib 0x118c0eee0 closure #1 in closure #1 in AboutView.__preview__body.getter + 608 (AboutView.swift:82) 17 SwiftUI 0x10738e504 0x106ee0000 + 4908292 18 AboutView.1.preview-thunk.dylib 0x118c0e9bc closure #1 in AboutView.__preview__body.getter + 352 (AboutView.swift:81) 19 AboutFeature_-2AEA03ED2811082D_PackageProduct 0x10f771c90 WithViewStore.body.getter + 2776 20 AboutFeature_-2AEA03ED2811082D_PackageProduct 0x10f772cfc protocol witness for View.body.getter in conformance <> WithViewStore + 60 21 SwiftUI 0x1073431c0 0x106ee0000 + 4600256 22 SwiftUI 0x107a3fa6c 0x106ee0000 + 11926124 23 SwiftUI 0x1073430f0 0x106ee0000 + 4600048 24 SwiftUI 0x107a40134 0x106ee0000 + 11927860 25 SwiftUI 0x1071c1254 0x106ee0000 + 3019348 26 AttributeGraph 0x19bc9e6f8 AG::Graph::UpdateStack::update() + 512 27 AttributeGraph 0x19bc9edd4 AG::Graph::update_attribute(AG::data::ptrTo Reproduce
moko-resources
Strings.Expected behavior Xcode Preview will not be crashed.