简体   繁体   中英

how to add files with same name in different folders of xcode project

I want to have two files with the same name in different folders in a xcode project. These files are actually code files and not any resource files. How can I achieve this?

Thanks
Pankaj

Well if there .h/.m files you can't have them in the same project, even if they are in different directories. C does not support namespaces, so every class has to have an unique name.

You can add, but when you load it, the system will pick the first one available. So, really it will not work the way you expect.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM