Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

使用代码为 Xcode 工程添加文件 #71

Open
draveness opened this issue Oct 27, 2017 · 3 comments
Open

使用代码为 Xcode 工程添加文件 #71

draveness opened this issue Oct 27, 2017 · 3 comments

Comments

@happiness9721

This comment has been minimized.

Copy link

@happiness9721 happiness9721 commented Nov 26, 2017

補充一下
如果要加入resources(e.g. *.storyboard, *.xib, *.xcassets)的話,要使用這個

target.add_resources([file_ref])
@gaodarui

This comment has been minimized.

Copy link

@gaodarui gaodarui commented Mar 12, 2018

请问下如果删除文件,执行这两行代码会出现找不到方法的问题可能是什么原因导致?
target.source_build_phase.remove_file_reference(file_ref)
target.headers_build_phase.remove_file_refernece(file_ref)

@huakucha

This comment has been minimized.

Copy link

@huakucha huakucha commented Mar 20, 2018

headers_build_phase在add的时候怎么选择(project、private、public),而.h默认会加到project

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
4 participants
You can’t perform that action at this time.