Xcode:使用新产品名称更新项目产品组 [英] Xcode: Update the project products group with new product name
本文介绍了Xcode:使用新产品名称更新项目产品组的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
在Xcode的产品组中,即使在为设备构建之后,我也将红色的"libMyLib-mac.a"库设为红色,因为我已将项目目标中的库的产品名称更改为"libMyLib".一个".
In the products group in Xcode, I have the library "libMyLib-mac.a" in red, even after I build for device because I have changed the product name of the library in the targets of the project to "libMyLib.a".
现在,如何更新Xcode以显示新产品名称?
Now, how can I update Xcode to show the new product name?
(注意:,当我使用-mac后缀改回名称时,该库即已构建并显示为products文件夹中的可用库.)
(Note: when I change the name back with the -mac suffix, the library is built and shown as available in the products folder.)
推荐答案
比我想象的要容易得多...
Much easier than I expected...
- 右键单击finder中的项目文件,然后显示包内容.
- 在某些文本编辑器中打开project.pbxproj文件.
- 将所有出现的
-mac.a
替换为.a
. - 现在一切正常.
- Right click the project file in finder, and show package contents.
- Open the project.pbxproj file in some text editor.
- Replaced all occurrences of
-mac.a
with.a
. - Everything is now in order.
这篇关于Xcode:使用新产品名称更新项目产品组的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文