adaptyteam / AdaptySDK-Unity

Unity SDK for growing mobile in-app purchases
https://docs.adapty.io/docs/quickstart
MIT License
50 stars 4 forks source link

validation on upload to store gives "UnityFramework.framework contains disallowed file" #12

Open marvpaul opened 2 months ago

marvpaul commented 2 months ago

Hey there, i just wondered why I got the above mentioned error after adding adapty to my Unity project when trying to upload an iOS build through xCode. I use Unity 2022.3.21f1 and the latest Adapty SDK from Github.

I found this line project.AddBuildProperty(targetGuid, "ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES", "YES"); in the file Assets/AdaptySDK/Plugins/iOS/Editor/AdaptySDKPostProcess.cs

I highly assume this caused the problem. When I set "ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES" to "NO" in xCode Build Settings for the Target UnityFramework again, archive and upload the build, it's works. I think it should be changed in your plugin as this otherwise prevents people from uploading their builds to iTunes Connect.

Thank you and best Marvin

x401om commented 2 months ago

Hi, @marvpaul! Thank you for the issue! Could you please provide your Xcode version so I will try to reproduce this problem on my machine?

marvpaul commented 2 months ago

Hi, @marvpaul! Thank you for the issue! Could you please provide your Xcode version so I will try to reproduce this problem on my machine?

It's 15.0.1

It's this error which is caused by ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES=YES.

https://stackoverflow.com/questions/73902406/unityframework-framework-contains-disallowed-file-frameworks-getting-this-err