Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Invalid Directory Name - Your app contains a directory name that is already reserved

Just submitted my app for review and was then emailed this error message:

Invalid Directory Name - Your app contains a directory name that is already reserved: 'Frameworks'. You must rename this directory.

Anyone have experience with this?

edit for a little more info: The only thing I have changed recently which may have caused this is to use Cocoapods. I'm opening and compiling from the xcworkspace. I do notice that a library called 'QuickDialogs' which I use had a Group called 'Frameworks' which I renamed.

like image 230
nazbot Avatar asked Sep 23 '13 05:09

nazbot


People also ask

What does the directory name isn't valid mean?

What does it mean when Microsoft Word says the directory name is not valid? This means the file has either been renamed, moved, or deleted. Microsoft Word will display this message when it is unable to locate the file you're trying to open.


2 Answers

Try following steps:

  1. find and open ${YOUR_PROJECT_ROOT}/Pods/Pods-resources.sh
  2. search ${FRAMEWORKS_FOLDER_PATH} and replace with ${UNLOCALIZED_RESOURCES_FOLDER_PATH}
  3. clean your project and delete derived Data(organizer-projects)
  4. achive your application again

I met this problem when I add extra frameworks by cocoapods. App store's response told me that there was a directory named Frameworks, which is reserved. This folder is created at Copy Pods Resources step in Build Phases,

like image 72
sky Avatar answered Mar 03 '23 13:03

sky


I have found that using ShareKit with Cocoapods was adding a Frameworks to my binary. That's why I substituted:

pod "ShareKit"

with:

pod "ShareKit/Facebook"
pod "ShareKit/Twitter"
pod "ShareKit/GooglePlus"

as I only use these services.

In order to see the folder created go to your binary and see the contents of the archive generated in the Applications folder.

Hope that helps!

like image 39
Kasas Avatar answered Mar 03 '23 13:03

Kasas