Xcode: Update the project products group with new product name

佐手、 提交于 2019-12-13 01:27:14

问题


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".

Now, how can I update Xcode to show the new product name?

(Note: when I change the name back with the -mac suffix, the library is built and shown as available in the products folder.)


回答1:


Much easier than I expected...

  1. Right click the project file in finder, and show package contents.
  2. Open the project.pbxproj file in some text editor.
  3. Replaced all occurrences of -mac.a with .a.
  4. Everything is now in order.


来源:https://stackoverflow.com/questions/19583662/xcode-update-the-project-products-group-with-new-product-name

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