Post

Replies

Boosts

Views

Activity

Reply to Unity iOS project fails Xcode validation with "Invalid Bundle. The bundle at '[app]/Frameworks/UnityFramework.framework' contains disallowed file 'Frameworks'."
I ran into the same issue and here is what I did - please note that this is based heavily on other's research, but it worked for me: Build project to Xcode from Unity like you normally would In the project view, select the target that is your project (usually called "Unity-IPhone" from what I've seen) Click Build Phases Click that small plus sign that’s really easy to miss at the top of the build phases section of Xcode Choose New Run Script Phase Expand the newly added Run Script Paste this script in there: if [[ -d "Frameworks" ]]; then     rm -fr Frameworks fi That fixed my issue for disallowed frameworks. I will say that right after that I ran into a similar issue where my submitted app was being rejected for having invalid swift support: ITMS-90424: Invalid Swift Support - The SwiftSupport folder is empty. Rebuild your app using the current public (GM) version of Xcode and resubmit it. After googling around on that one, it seems like the core issue there is that the build process leaves an empty SwiftSupport directory at its base (well, empty in the sense that it only contains an empty unity folder) and Apple does not like that. What I did to resolve that (again, based on what others found - https://developer.apple.com/forums/thread/125902): Create the application Archive as you normally would - this should leave you at the Organizer window (or go Window > Organizer) Right click on your recently made Archive and Show in Finder Right click on the archive file in Finder and select Show Package Contents Delete the SwiftSupport directory Return to the Organizer window in Xcode and submit your app I'm sure someone better versed in Xcode build processes could add another Run Script in the right place and then the manual deletion wouldn't be needed. Anyway - since everyone else's feedback helped me I wanted to make sure I "paid it forward" to everyone else in case there are others dealing with this. Aaron Anderson
Dec ’20