xib 文件显示在错误的目标中
我刚开始在 xcode 项目中使用多个目标,并且遇到了一个我找不到答案的障碍。
我有一个有两个目标的项目。一个目标没有用户界面,第二个目标包含用于管理的用户界面。我遇到的问题是,当我在没有用户界面的情况下构建并运行第一个目标时,第二个目标的用户界面 xib 仍然会编译和显示。
我已确保 xib 文件仅与第二个目标关联。我做错了什么?我希望能够在不显示用户界面的情况下运行第一个目标。任何帮助将不胜感激。
我已阅读苹果的文档,但没有发现任何内容可以帮助回答这个具体问题。
I am new to using multiple targets in a xcode project and have hit a snag that I can't find an answer for.
I have a project with two targets. One target does not have a user interface and the second target contains a user interface for administration. The problem that I am having is when I build and run the first target without the user interface, the user interface xib for the second target is still compiled and shown.
I have made sure that the xib file is only associated with the second target. What am I doing wrong? I would like to be able to run the first target without the user interface showing. Any help would be greatly appreciated.
I have read the documentation at apple but found nothing that helped answer this specific question.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
彼得感谢您的回复。我今天终于想通了。我没有将第二个目标的“产品名称”设置为与原始目标不同的名称。这样做解决了问题。
-约翰
Peter thanks for the reply. I finally figured it out today. I had not set the "Product Name" for the second target to be something different then the original target. Doing that resolved the problem.
-John