Target confusion at compile time

雨燕双飞 提交于 2019-12-12 01:33:11

问题


I am working on a project, in xCode 4.5.2 with 2 targets T1 and T2.

When I want to build T1, I get error messages about one file only belonging to T2.

Obviously, even though I think the file belongs to T2, the compiler thinks differently. Where do I need to check? As far as I can see, I have done the necessary for the file to be inside T2 and not inside T1. But I must be forgetting something. Any idea?

Thanks for any useful tip.


回答1:


Check the "target membership" for the file... click on the file in your project and then look at the "File Inspector" along the right side of your Xcode project window:

In this case, I've just looked up the target membership for the UIKit.framework, but in your case you should see which target membership the file in question belongs to.



来源:https://stackoverflow.com/questions/14545655/target-confusion-at-compile-time

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!