简体   繁体   English

XCode WorkSpace文件

[英]XCode WorkSpace Files

I have to base projects that share several static libraries. 我必须基于共享多个静态库的项目。 The base projects don't reference each other. 基础项目互不引用。 The base projects have files that have the same file name, but are not the same file. 基础项目的文件具有相同的文件名,但文件不同。 Will this cause issues? 这会引起问题吗? I ask because when I command click on a function, it takes me to a function in the other project. 我问是因为当我命令单击一个函数时,它将带我到另一个项目中的一个函数。

Can two projects, in the same workspace, have files with the same name as long as they don't reference each other? 只要两个项目彼此不引用,它们在同一工作空间中是否可以具有相同名称的文件?

I broke the base projects into their own workspaces. 我将基础项目分解为自己的工作区。 The workspaces contain the same static libraries. 工作区包含相同的静态库。 This fixed the issue where I'd command click a method and xcode would take me to the wrong file (correct file name/method name but wrong project). 这解决了我命令单击方法的问题,而xcode会将我带到错误的文件(正确的文件名/方法名,但错误的项目)。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

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