-
Notifications
You must be signed in to change notification settings - Fork 72
Description
Hello there!
I have noticed that when we enable to add StoreKit framework from Adjust settings, it adds the StoreKit framework into Unity Main Target which causes it to also add In App Purchase entitlement into the xcode project. But In App Purchases don't work on Enterprise builds and our enterprise profile does not have IAP entitlement therefore cannot make a build.
I assume StoreKit is needed for SKAdNetwork.registerAppForAdNetworkAttribution()
, not really for IAPs.
So instead of adding StoreKit to main target, can't we add it to UnityFramework instead? That way we link the framework where Adjust is being built anyway. Also it will not add the entitlement as well. I tested this with Unity 2022.3.53f1
I changed this line;
xcodeProject.AddFrameworkToProject(xcodeTarget, "StoreKit.framework", true);
with this;
xcodeProject.AddFrameworkToProject(xcodeProject.GetUnityFrameworkTargetGuid(), "StoreKit.framework", true);
Had no issues so far.