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

Please consider adding a subspec to avoid the post_install step you suggest using for extensions #638

Open
ihuxley opened this issue Dec 9, 2020 · 1 comment

Comments

@ihuxley
Copy link

ihuxley commented Dec 9, 2020

Description:

the suggestion to use a post_install step in https://github.com/OAuthSwift/OAuthSwift/wiki/Work-with-application-extension is a hack that is easily avoided with a subspec

something like this would do the trick:

s.subspec 'Extension' do |extension|
    extension.dependency 'OAuthSwift', s.version.to_s
    extension.compiler_flags = '$(inherited) -DOAUTH_APP_EXTENSIONS'
end

then to use an extension they just use pod OAuthSwift/Extension

@phimage
Copy link
Member

phimage commented Apr 29, 2021

good suggestion, never tested

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

No branches or pull requests

2 participants