简体   繁体   中英

mod-pbxproj, how to add custom framework to XCode Project file

I want to add my own framework Lib.framework to xcode project using mod-pbxproj python script. When I use function:

project.add_file_if_doesnt_exist('/Path/To/My/Lib/Lib.framework', tree='<absolute>', weak=True)

this framework exists in libraries list in XCode editor, but headers search path is not updated, so other files cannot include headers from that framework.

How to properly add custom framework to xcode project using mod-pbxproj script?

我没有仔细阅读文档

project.add_framework_search_paths('/Path/To/My/Lib/', recursive=False)

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM