Set APPLICATION_EXTENSION_API_ONLY to Pods when set in the project's .xcconfig #9233
Closed
1 task done
Labels
s7:workaround available
A workaround for the issue is available
Milestone
Report
Since pull request #4321, the
APPLICATION_EXTENSION_API_ONLY
build setting is automatically applied to Pods if it's set in the user target. But this doesn't work ifAPPLICATION_EXTENSION_API_ONLY
is set in an Config file (.xcconfig).This also applies to the
BUILD_LIBRARY_FOR_DISTRIBUTION
Build Setting if #9232 is fixed.What did you do?
APPLICATION_EXTENSION_API_ONLY = YES
to the .xcconfig.pod install
to install any pod.What did you expect to happen?
CocoaPods should set
APPLICATION_EXTENSION_API_ONLY
toYES
in all Pods, like it does if the setting is applied directly to the project.What happened instead?
Pods don't have the
APPLICATION_EXTENSION_API_ONLY
set toYES
, so there's aLinking against a dylib which is not safe for use in application extensions
warning for each Pod.Workaround
Use a
post_install
hook to setAPPLICATION_EXTENSION_API_ONLY
toYES
in all pods.The text was updated successfully, but these errors were encountered: