How can I add -fobjc-arc for a lot files one time

感情迁移 提交于 2019-12-23 21:41:00

问题


I want to add xmppframework to my project, how can I add -fobjc-arc to all xmpp files one time?


回答1:


This isn't perfect, but is usually good enough:

  1. Select the project at the top left of the project window.
  2. Select the target.
  3. Open the build phases pane.
  4. Select "Compile Sources"
  5. Type in "xmpp" into the filter area
  6. Select the files you want.
  7. Hit Enter and then type -fobjc_arc in the dialog.



回答2:


Simple, in your compiler sources select the first item that requires the flag, scroll down and click the last item while holding the shift key. Then all you have to do is double click any one of the highlighted cells and add the flag and when you hit enter it will be applied to all highlighted files.




回答3:


You can't do that as far as I know. You have to do that one file at a time. You might want to look into your name.xcodeproj directory, perhaps you can edit the project.pbxproj file, though I wouldn't do that



来源:https://stackoverflow.com/questions/13088005/how-can-i-add-fobjc-arc-for-a-lot-files-one-time

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