On my Unity project, I took several builds before without a problem. However, in this build, I integrated Facebook SDK and then this error (image1) started appearing when I try to upload it after archiving it on the Xcode workspace.
I also tried to upload it with Transporter, but Transporter also threw errors (image2).
When I build the project for IOS unity creates some files and there I found a UnityFramework folder, I think this folder is the mentioned folder in the error. However, there are only 2 files in this folder and none is named "Frameworks"(image3).
Here are the build options of the project at Xcode workspace (image4):
With the Android build of the app, everything is okay. This issue appears only with the IOS build.
4
Answers
Try to set the Always Embed Swift Standard Libraries. to No
Yes, but Set the Always Embed Swift Standard Libraries in UnityFrameWork Build Settings, not in main app’s Build Settings. That worked for me.
Changing the "Always Embed Swift Standard Libraries" value to "No" in the UnityFramework’s build settings solved this issue for me.
Targets > UnityFramework > Build Settings > Always Embed Swift Standard Libraries > No
Here’s a visual representation of what you should do to resolve the
"contains disallowed file 'Frameworks'" errors
in XCode projects exported from UnityOr
If you don’t want to configure this manually every time you build you can add this script in your project to do it automatically for you on each build:
Then you can Archive & Validate your build without any errors. Hope my answer helped.