Balaso-Software / app-tracking-transparency-for-unity

Later this year Apple will require your apps/games to request user's authorization in order to obtain the Identifier for Advertising (IDFA), used to optimize and maximize your Ads revenue
16 stars 1 forks source link

Crash on ios 13 #7

Closed Polarhigh closed 4 years ago

Polarhigh commented 4 years ago

Hi! I have encountered a crash on ios version lower than 14

log

Error loading /var/containers/Bundle/Application/99E72082-3A2D-412F-A90F-0140AE0F7CD6/myapp.app/Frameworks/UnityFramework.framework/UnityFramework: dlopen(/var/containers/Bundle/Application/99E72082-3A2D-412F-A90F-0140AE0F7CD6/myapp.app/Frameworks/UnityFramework.framework/UnityFramework, 0x0109): dependent dylib '/System/Library/Frameworks/AppTrackingTransparency.framework/AppTrackingTransparency' not found for '/private/var/containers/Bundle/Application/99E72082-3A2D-412F-A90F-0140AE0F7CD6/myapp.app/Frameworks/UnityFramework.framework/UnityFramework'

In my project i fixed it in AppTrackingTransparencyPostProcessor.OnPostprocessBuild: project.AddFrameworkToProject(targetId, "AppTrackingTransparency.framework", false); replaced by project.AddFrameworkToProject(targetId, "AppTrackingTransparency.framework", true);

Everything seems to work fine, but is it enough to 100% fix the issue?

manelizzard commented 4 years ago

Hello! Yes, that should be enough. On iOS 13, that framework is not available. Will fix it in the plugin. Thanks! :)

manelizzard commented 4 years ago

Should be fixed on version 2.1