Unity 2019.3.0b3 to build an iOS framework => UnityFramework.framework
There is an empty folder in UnityFramework.framework named “Frameworks”, and it shows message ERROR ITMS-90206: “Invalid Bundle. The bundle at ‘YOUR.app/Frameworks/UnityFramework.framework’ contains disallowed file ‘Frameworks’.”
After remove the empty folder, it passed the AppStore checking.
Can confirm this is still happening on Unity 2019.3.0f5 (2019.3.0 Release Candidate 5)
It appears to be a specific issue with CocoaPods (Our project uses GoogleVR for Unity, which requires Pods to compile to iOS.)
It is painful to be unable to use Cloud Build for distribution builds at the moment, and we don’t quite have the bandwidth at the moment to cook up a build postprocess script to resolve this automatically (especially if Unity is just going to fix it soon).
We go into the UnityFramework target of the main project in XCode, and delete the Build Phase called [CP] Embed Pods Frameworks.
Even if the solution is simply to update CocoaPods, Unity would have to do so as well on their Cloud Build machines because their IPAs are running into this issue at the upload phase…
Workaround.
Right-click on the archive in organizer → Show in Finder
Right-click on the .xcodearchive file → Show package contents. Go to folder Products/Applications/
Right-click on the .app file → Show package contents. Go to the folder Frameworks/UnityFramework.framework/
Delete folder named Frameworks. (The one inside UnityFramework.framework folder! See my screenshot)
After this the Validation is successful. Apple approved my game just now, so I guess it’s safe =)
EDIT:
Before archiving the build you have to set “Always Embed Swift Standart Libraries” to YES for the Unity-iPhone target
Ok, just updated our project to Unity 2020.1.17f1 from 2019.4.17f1 and we are now facing these error as well.
We get the following error on Unity Cloud Build, when trying to upload to the App Store:
1112: 2021-01-20 15:40:53.158 altool[18362:67827] Error:
1113: [2021-01-20 15:40:52 UTC] <main> DBG-X: parameter ErrorCode = 1102
1114: [2021-01-20 15:40:52 UTC] <main> DBG-X: parameter ErrorMessage = ERROR ITMS-90206: "Invalid Bundle. The bundle at 'gouda.app/Frameworks/UnityFramework.framework' contains disallowed file 'Frameworks'.
1115: [2021-01-20 15:40:52 UTC] <main> ERROR: ERROR ITMS-90206: "Invalid Bundle. The bundle at 'gouda.app/Frameworks/UnityFramework.framework' contains disallowed file 'Frameworks'."
1116: [2021-01-20 15:40:52 UTC] <main> DBG-X: The error code is: 1102
1117: ERROR ITMS-90206: "Invalid Bundle. The bundle at 'gouda.app/Frameworks/UnityFramework.framework' contains disallowed file 'Frameworks'."
1118: "Error Domain=ITunesTransporterErrorDomain Code=-18000 \"ERROR ITMS-90206: \"Invalid Bundle. The bundle at 'gouda.app/Frameworks/UnityFramework.framework' contains disallowed file 'Frameworks'.\"\" UserInfo={NSLocalizedRecoverySuggestion=ERROR ITMS-90206: \"Invalid Bundle. The bundle at 'gouda.app/Frameworks/UnityFramework.framework' contains disallowed file 'Frameworks'.\", NSLocalizedDescription=ERROR ITMS-90206: \"Invalid Bundle. The bundle at 'gouda.app/Frameworks/UnityFramework.framework' contains disallowed file 'Frameworks'.\", NSLocalizedFailureReason=ERROR ITMS-90206: \"Invalid Bundle. The bundle at 'gouda.app/Frameworks/UnityFramework.framework' contains disallowed file 'Frameworks'.\"}"
I have found @Dazo1985 's reply below, but I’m not sure what mainGameGUID stands for.
Hi all!
I tried the workaround and uploaded okay but got rejected - Invalid Swift Support
Not sure what I stuffed up there but I had success with a fresh build by turning the swift embed option to “No” and leaving the folder as is.