krzysztofzablocki / LifetimeTracker

Find retain cycles / memory leaks sooner.
http://merowing.info
MIT License
3.15k stars 153 forks source link

Crash after startup #88

Open LipYoung opened 1 year ago

LipYoung commented 1 year ago

Installing LifetimeTracker 1.8.1 XCode: 14.2 Device: Simulator iPhone 14 Plus

https://github.com/libern/SampleChiken

2023-04-15 15:28:19.741710+0700 SampleChiken[13778:20908148] *** Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: 'Could not find a storyboard named 'CircularDashboard' in bundle NSBundle </Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Library/Developer/CoreSimulator/Profiles/Runtimes/iOS.simruntime/Contents/Resources/RuntimeRoot/System/Library/Frameworks/Foundation.framework> (loaded)'
*** First throw call stack:
(
    0   CoreFoundation                      0x0000000109dd17c8 __exceptionPreprocess + 172
    1   libobjc.A.dylib                     0x00000001051b9144 objc_exception_throw + 56
    2   UIKitCore                           0x0000000113f2cdc0 -[UIStoryboard name] + 0
    3   LifetimeTracker                     0x00000001053a65ac $sSo12UIStoryboardC4name6bundleABSS_So8NSBundleCSgtcfCTO + 64
    4   LifetimeTracker                     0x00000001053ae914 $s15LifetimeTracker31CircularDashboardViewControllerC11makeFromNibAA0aB8Viewable_So06UIViewF0CXcyFZ + 108
    5   LifetimeTracker                     0x00000001053c5efc $s15LifetimeTracker0aB20DashboardIntegrationC5StyleO12makeViewableAA0abG0_So16UIViewControllerCXcyF + 88
    6   LifetimeTracker                     0x00000001053cb340 $s15LifetimeTracker0aB20DashboardIntegrationC08lifetimeB4View33_47AE9926ED6DFB825481C7F7A9FA7690LLAA0aB8Viewable_So16UIViewControllerCXcvgAaF_AHXcyXEfU_ + 92
    7   LifetimeTracker                     0x00000001053c64c8 $s15LifetimeTracker0aB20DashboardIntegrationC08lifetimeB4View33_47AE9926ED6DFB825481C7F7A9FA7690LLAA0aB8Viewable_So16UIViewControllerCXcvg + 208
    8   LifetimeTracker                     0x00000001053cb29c $s15LifetimeTracker0aB20DashboardIntegrationC6window33_47AE9926ED6DFB825481C7F7A9FA7690LLSo8UIWindowCvgAGyXEfU_ + 928
    9   LifetimeTracker                     0x00000001053c6678 $s15LifetimeTracker0aB20DashboardIntegrationC6window33_47AE9926ED6DFB825481C7F7A9FA7690LLSo8UIWindowCvg + 164
    10  LifetimeTracker                     0x00000001053c6d58 $s15LifetimeTracker0aB20DashboardIntegrationC9refreshUI13trackedGroupsySDySSA2AC12EntriesGroupCG_tFyyScMYccfU_ + 68
    11  LifetimeTracker                     0x00000001053a96d8 $sIeg_IeyB_TR + 48
    12  libdispatch.dylib                   0x0000000105f8c594 _dispatch_call_block_and_release + 24
    13  libdispatch.dylib                   0x0000000105f8dd5c _dispatch_client_callout + 16
    14  libdispatch.dylib                   0x0000000105f9e808 _dispatch_main_queue_drain + 1316
    15  libdispatch.dylib                   0x0000000105f9e2d4 _dispatch_main_queue_callback_4CF + 40
    16  CoreFoundation                      0x0000000109d35ca4 __CFRUNLOOP_IS_SERVICING_THE_MAIN_DISPATCH_QUEUE__ + 12
    17  CoreFoundation                      0x0000000109d30360 __CFRunLoopRun + 1956
    18  CoreFoundation                      0x0000000109d2f7a4 CFRunLoopRunSpecific + 584
    19  GraphicsServices                    0x000000010c1fbc98 GSEventRunModal + 160
    20  UIKitCore                           0x0000000113dde37c -[UIApplication _run] + 868
    21  UIKitCore                           0x0000000113de2374 UIApplicationMain + 124
    22  SampleChiken                        0x0000000104de37d8 main + 64
    23  dyld                                0x0000000104fb1fa0 start_sim + 20
    24  ???                                 0x0000000105201e50 0x0 + 4380958288
    25  ???                                 0xd17f000000000000 0x0 + 15095784475969191936
)
libc++abi: terminating with uncaught exception of type NSException
*** Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: 'Could not find a storyboard named 'CircularDashboard' in bundle NSBundle </Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Library/Developer/CoreSimulator/Profiles/Runtimes/iOS.simruntime/Contents/Resources/RuntimeRoot/System/Library/Frameworks/Foundation.framework> (loaded)'
terminating with uncaught exception of type NSException
CoreSimulator 857.14 - Device: iPhone 14 Plus (26CBACFC-2EF8-4ADC-86E7-E5831AF0D9E1) - Runtime: iOS 16.2 (20C52) - DeviceType: iPhone 14 Plus
Wooder commented 1 year ago

Same crash here:

Thread 1: "Could not find a storyboard named 'BarDashboard' in bundle NSBundle </Library/Developer/CoreSimulator/Volumes/iOS_21A328/Library/Developer/CoreSimulator/Profiles/Runtimes/iOS 17.0.simruntime/Contents/Resources/RuntimeRoot/System/Library/Frameworks/Foundation.framework> (loaded)"
liorazi commented 11 months ago

Same here:

*** Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: 'Could not find a storyboard named 'CircularDashboard' in bundle NSBundle

Xcode 15.0.1 Simulator iPhone 15 17.0.1, Cocoapods

LeiZiKang commented 3 months ago

You can try to load it using SPM instead of Pod. The root cause is the path of Blunde. Check this code and modify it to the correct path.

   /// Returns a package manager appropriate `Bundle`.
    static var resolvedBundle: Bundle {
        #if SWIFT_PACKAGE
        return Bundle.module
        #else
        return Bundle(for: LifetimeTracker.self)
        #endif
    }
image