App Store upload fails

  • 1 February 2022
  • 2 replies
  • 506 views

Badge +4

Hey everyone!

 

We just switched from Unity’s native IAP to RevenueCat for all kind of IAP/subscription operations. We completely deleted Unity IAP from the project and installed RevenueCat as stated in the document. Although everything looks perfectly fine, we get this error while trying to upload the archived bundle to App Store Connect: 

ERROR ITMS-90206: "Invalid Bundle. The bundle at 'APPNAME.app/Frameworks/UnityFramework.framework' contains disallowed file 'Frameworks'."

This issue has started to occur right after the Revenue Cat integration. 

 

Additional Info:

  • Unity 2020.3.25f1
  • xCode 12.5.1
  • Cocoapods 1.11.2 (latest)
  • EDM4U 1.2.169 (latest)

Thanks in advance!


2 replies

Badge +4

Starting from 2020x, Unity introduced a new standard for Unity's iOS builds wherein plugins and files are contained within UnityFramework.framework (which is where I see RevenueCat’s generated code and other files). As a workaround, one may follow the steps below:

  1. Build project to Xcode from Unity like you normally would

  2. In the project view, select the target that is your project (usually called "Unity-IPhone" from what I've seen)

  3. Click Build Phases

  4. Click that small plus sign that’s really easy to miss at the top of the build phases section of Xcode

  5. Choose New Run Script Phase

  6. Expand the newly added Run Script

  7. Paste this script in there: 

cd "${CONFIGURATION_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/Frameworks/UnityFramework.framework/"
if [[ -d "Frameworks" ]]; then
rm -fr Frameworks
fi

But this additional step prevents us to use our CI/CD pipeline, that’s why an immediate fix is required.

 

References:

https://developer.apple.com/forums/thread/654980

https://support.wikitude.com/support/discussions/topics/5000096581

Userlevel 6
Badge +8

Hey @melih-veloxia! 👋

It looks like this is being discussed in GitHub, so we’ll keep discussion centralized there.

Reply