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

--use-podfile: In podfile post_install set buildsetting, after gen workspace, buildsetting not working #151

Open
qingni opened this issue Mar 21, 2022 · 0 comments

Comments

@qingni
Copy link

qingni commented Mar 21, 2022

My Pod requires special settings to compile and I set it in the Podfile::

post_install do |installer| installer.pods_project.targets.each do |target| target.build_configurations.each do |config| config.build_settings['BUILD_LIBRARY_FOR_DISTRIBUTION'] = 'YES' config.build_settings['CLANG_WARN_DOCUMENTATION_COMMENTS'] = 'NO' end if target.respond_to?(:product_type) and target.product_type == "com.apple.product-type.bundle" target.build_configurations.each do |config| config.build_settings['CODE_SIGN_IDENTITY[sdk=macosx*]'] = '-' end end end end

pod gen xx.podspec --gen-directory=xx --platforms=ios --use-podfile --clean --auto-open

However, the generated Xcode project use own defalult setting. In Podfile Set BUILD_LIBRARY_FOR_DISTRIBUTION & CLANG_WARN_DOCUMENTATION_COMMENTS &CODE_SIGN_IDENTITY[sdk=macosx*] not working:
image

image

can someone tell me how to solve this problem?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant