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:
- Select the project at the top left of the project window.
- Select the target.
- Open the build phases pane.
- Select "Compile Sources"
- Type in "xmpp" into the filter area
- Select the files you want.
- 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