Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Crash In SwiftAppTrackingTransparencyPlugin.register When Manual Launching Debug Build #53

Open
samdeane opened this issue May 23, 2024 · 6 comments

Comments

@samdeane
Copy link

Launching via VSCode/XCode onto a hardware device works fine.
However, if I the launch the same binary manually on the device, it crashes on startup.

Looking at the crashlog, it seems to be dying in SwiftAppTrackingTransparencyPlugin.register(with:).

#0	(null) in swift_getObjectType ()
#1	(null) in static SwiftAppTrackingTransparencyPlugin.register(with:) ()
#2	(null) in @objc static SwiftAppTrackingTransparencyPlugin.register(with:) ()
#3	(null) in +[AppTrackingTransparencyPlugin registerWithRegistrar:] ()
#4	(null) in +[GeneratedPluginRegistrant registerWithRegistry:] ()
#5	(null) in AppDelegate.application(_:didFinishLaunchingWithOptions:) ()
#6	(null) in @objc AppDelegate.application(_:didFinishLaunchingWithOptions:) ()
#7	(null) in -[UIApplication _handleDelegateCallbacksWithOptions:isSuspended:restoreState:] ()
#8	(null) in -[UIApplication _callInitializationDelegatesWithActions:forCanvas:payload:fromOriginatingProcess:] ()
#9	(null) in -[UIApplication _runWithMainScene:transitionContext:completion:] ()
#10	(null) in -[_UISceneLifecycleMultiplexer completeApplicationLaunchWithFBSScene:transitionContext:] ()
#11	(null) in _UIScenePerformActionsWithLifecycleActionMask ()
#12	(null) in __101-[_UISceneLifecycleMultiplexer _evalTransitionToSettings:fromSettings:forceExit:withTransitionStore:]_block_invoke ()
#13	(null) in -[_UISceneLifecycleMultiplexer _performBlock:withApplicationOfDeactivationReasons:fromReasons:] ()
#14	(null) in -[_UISceneLifecycleMultiplexer _evalTransitionToSettings:fromSettings:forceExit:withTransitionStore:] ()
#15	(null) in -[_UISceneLifecycleMultiplexer uiScene:transitionedFromState:withTransitionContext:] ()
#16	(null) in __186-[_UIWindowSceneFBSSceneTransitionContextDrivenLifecycleSettingsDiffAction _performActionsForUIScene:withUpdatedFBSScene:settingsDiff:fromSettings:transitionContext:lifecycleActionType:]_block_invoke ()
#17	(null) in +[BSAnimationSettings(UIKit) tryAnimatingWithSettings:fromCurrentState:actions:completion:] ()
#18	(null) in _UISceneSettingsDiffActionPerformChangesWithTransitionContextAndCompletion ()
#19	(null) in -[_UIWindowSceneFBSSceneTransitionContextDrivenLifecycleSettingsDiffAction _performActionsForUIScene:withUpdatedFBSScene:settingsDiff:fromSettings:transitionContext:lifecycleActionType:] ()
#20	(null) in __64-[UIScene scene:didUpdateWithDiff:transitionContext:completion:]_block_invoke.226 ()
#21	(null) in -[UIScene _emitSceneSettingsUpdateResponseForCompletion:afterSceneUpdateWork:] ()
#22	(null) in -[UIScene scene:didUpdateWithDiff:transitionContext:completion:] ()
#23	(null) in -[UIApplication workspace:didCreateScene:withTransitionContext:completion:] ()
#24	(null) in -[UIApplicationSceneClientAgent scene:didInitializeWithEvent:completion:] ()
#25	(null) in -[FBSScene _callOutQueue_didCreateWithTransitionContext:completion:] ()
#26	(null) in __92-[FBSWorkspaceScenesClient createSceneWithIdentity:parameters:transitionContext:completion:]_block_invoke.108 ()
#27	(null) in -[FBSWorkspace _calloutQueue_executeCalloutFromSource:withBlock:] ()
#28	(null) in __92-[FBSWorkspaceScenesClient createSceneWithIdentity:parameters:transitionContext:completion:]_block_invoke ()
#29	(null) in _dispatch_client_callout ()
#30	(null) in _dispatch_block_invoke_direct ()
#31	(null) in __FBSSERIALQUEUE_IS_CALLING_OUT_TO_A_BLOCK__ ()
#32	(null) in -[FBSMainRunLoopSerialQueue _targetQueue_performNextIfPossible] ()
#33	(null) in -[FBSMainRunLoopSerialQueue _performNextFromRunLoopSource] ()
#34	(null) in __CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE0_PERFORM_FUNCTION__ ()
#35	(null) in __CFRunLoopDoSource0 ()
#36	(null) in __CFRunLoopDoSources0 ()
#37	(null) in __CFRunLoopRun ()
#38	(null) in CFRunLoopRunSpecific ()
#39	(null) in GSEventRunModal ()
#40	(null) in -[UIApplication _run] ()
#41	(null) in UIApplicationMain ()
#42	(null) in main ()
#43	(null) in start ()
@samdeane
Copy link
Author

Full crash log attached

CLUB Local-2024-05-23-115330.crash.zip

@snakeshift
Copy link

same

@dmorillas
Copy link

Having the same issue. Anyone found a solution for this?

@Rho1and0
Copy link

I have the same problem, do you have a solution or the reason why this happens?

@Apliarte
Copy link

I have the same problem

@dmorillas
Copy link

Finally found the issue and the solution!
It's not a problem of this plugin but of Apple. Apparently from version iOS 14 Apple does not allow to launch debug apps from the home screen. That is why they work from editors, but not manually from the device.

The solution is to create a release build.
If you don't want to create a release and upload it to TestFlight, here one explains how to do it from XCode: https://stackoverflow.com/questions/64669114/ios-14-not-letting-flutter-apps-still-in-dev-to-launch-from-the-home-screen-co

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants