You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
if (![self.inAppLogic isClassInApp:[controller class]]) {
SENTRY_LOG_DEBUG(
@"Won't track view controller that is not part of the app bundle: %@.", controller);
callbackToOrigin();
return;
}
So when adding a UIViewController to the swizzleClassNameExcludes it doesn't work. We should also check the swizzleClassNameExcludes in the SentryUIViewControllerPerformanceTracker.viewControllerLoadView.
The text was updated successfully, but these errors were encountered:
Skip creating transactions for UIViewControllers ignored for swizzling
via the option swizzleClassNameExclude. Due to some edge cases with nib
files, the SDK doesn't swizzle the loadView method of the
UIViewController subclasses, but instead, it swizzles the
UIViewController.loadView method directly. Although the SDK doesn't
swizzle the classes specified in swizzleClassNameExclude, it created
transactions. Now, this is fixed.
FixesGH-4386
Skip creating transactions for UIViewControllers ignored for swizzling
via the option swizzleClassNameExclude. Due to some edge cases with nib
files, the SDK doesn't swizzle the loadView method of the
UIViewController subclasses, but instead, it swizzles the
UIViewController.loadView method directly. Although the SDK doesn't
swizzle the classes specified in swizzleClassNameExclude, it created
transactions. Now, this is fixed.
FixesGH-4386
Description
We swizzle the loadView method of the UIViewControllernot the individual view controllers because of some edge cases with nib files.
sentry-cocoa/Sources/Sentry/SentryUIViewControllerSwizzling.m
Lines 306 to 322 in 8c38fb1
So the
SentryUIViewControllerPerformanceTracker.viewControllerLoadView
checks the inAppLogic, but doesn't check the swizzleClassNameExcludes.sentry-cocoa/Sources/Sentry/SentryUIViewControllerPerformanceTracker.m
Lines 61 to 69 in 8c38fb1
So when adding a UIViewController to the swizzleClassNameExcludes it doesn't work. We should also check the swizzleClassNameExcludes in the SentryUIViewControllerPerformanceTracker.viewControllerLoadView.
The text was updated successfully, but these errors were encountered: