googleads-mobile-unity icon indicating copy to clipboard operation
googleads-mobile-unity copied to clipboard

7.0.1 iOS submission failed: The bundle at ‘App/Frameworks/UnityFramework.framework' contains disallowed file 'Frameworks'. With error code STATE_ERROR.VALIDATION_ERROR.90206

Open zodiac2k opened this issue 3 years ago • 4 comments

Environment:

Unity version: 2020.3.34f1 Google Mobile Ads Unity plugin version: 7.0.1 Platform: iOS Platform OS version: 12.4 Mediation ad networks used, and their versions: none

Building my app with the latest plugin works but when trying to submit my app to the appstore the following error occurs and the app is rejected:

The bundle at ‘App/Frameworks/UnityFramework.framework' contains disallowed file 'Frameworks'. With error code STATE_ERROR.VALIDATION_ERROR.90206

After some researching I found other plugins issues related to problems with the ExternalDepencyMananger V1.2.170 (and onwards). I moved back to ExternalDependencyManager 1.2.169 and I was able to submit my app.

I haven't had time yet to compare the build results but I seems like the new ExternalDependencyManager V1.2.171 (brought with 7.0.1) is responsible for the problem.

Kind regards, Oliver

zodiac2k avatar May 28 '22 13:05 zodiac2k

Thanks for raising awareness, I will look into this further.

NVentimiglia avatar Jun 02 '22 05:06 NVentimiglia

Hi @zodiac2k

Looking at the ExternalDependencyManager changes, I'm suspecting it has to do with the new Swift support options, which 1.2.170 added, and 1.2.171 enabled by default. Can you share the Podfile and Podfile.lock that was made when you used 1.2.171?

a-maurice avatar Jun 02 '22 19:06 a-maurice

Hi @zodiac2k

In the 1.2.171 release notes:

iOS Resolver - Link Framework Statically setting is now default to true. That is, use_frameworks! :linkage => static will be added to Podfile by default instead of use_frameworks!. This can be changed in iOS Resolver settings. This fixes odd behaviors when pods include static libraries, ex. Firebase Analytics.

Can you review this setting and see if it helps?

NVentimiglia avatar Jun 02 '22 19:06 NVentimiglia

There are a number of possible workarounds in this Unity forum thread, in particular the post I directly linked to, which changes the Swift embedding settings for the project programatically. Could you try and see which (if any) help?

jonsimantov avatar Jun 03 '22 17:06 jonsimantov