Skip to content

This issue was moved to a discussion.

You can continue the conversation there. Go to discussion →

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 工程添加文件 · /bei-xcodeproj-keng-de-zhe-ji-tian #71

Closed
draveness opened this issue Oct 27, 2017 · 5 comments

Comments

@draveness
Copy link
Owner

draveness commented Oct 27, 2017

https://draveness.me/bei-xcodeproj-keng-de-zhe-ji-tian

@happiness9721
Copy link

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

target.add_resources([file_ref])

@decodelove
Copy link

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

@huakucha
Copy link

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

@draveness draveness changed the title 使用代码为 Xcode 工程添加文件 使用代码为 Xcode 工程添加文件 · /bei-xcodeproj-keng-de-zhe-ji-tian Feb 4, 2020
@ArthurChi
Copy link

不知道是不是我的网络有问题,这里的图显示不了

@leejunhui
Copy link

@ArthurChi
不知道是不是我的网络有问题,这里的图显示不了

应该是图床挂了

Repository owner locked and limited conversation to collaborators Mar 21, 2022
@draveness draveness converted this issue into discussion #490 Mar 21, 2022

This issue was moved to a discussion.

You can continue the conversation there. Go to discussion →

Projects
None yet
Development

No branches or pull requests

6 participants