[GH-ISSUE #638] Please consider adding a subspec to avoid the post_install step you suggest using for extensions #420

Open
opened 2026-03-03 16:48:32 +03:00 by kerem · 1 comment
Owner

Originally created by @ihuxley on GitHub (Dec 9, 2020).
Original GitHub issue: https://github.com/OAuthSwift/OAuthSwift/issues/638

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

Originally created by @ihuxley on GitHub (Dec 9, 2020). Original GitHub issue: https://github.com/OAuthSwift/OAuthSwift/issues/638 ### 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`
Author
Owner

@phimage commented on GitHub (Apr 29, 2021):

good suggestion, never tested

<!-- gh-comment-id:829518614 --> @phimage commented on GitHub (Apr 29, 2021): good suggestion, never tested
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/OAuthSwift#420
No description provided.