You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When using the Promissum/Alamofire subspec you'll get the following warning:
ld: warning: linking against a dylib which is not safe for use in application extensions: /Users/[yada-yada]-iphonesimulator/Alamofire/Alamofire.framework/Alamofire
❌ Move the pod_target_xcconfig into the subspec declarations and override, but this results in an error when running pod install: [!] Can't merge pod_target_xcconfig for pod targets: ["Alamofire", "Core", "UIKit"]. Singular build setting APPLICATION_EXTENSION_API_ONLY has different values.
✅ Put the pod_target_xcconfig in it's own subspec, this works as expected, but requires the user to do something.
✅ While testing this I noticed that if the app/extension target the pod is for requires APPLICATION_EXTENSION_API_ONLY then this will be applied to the Pods also. So I think that we can just remove the pod_target_xcconfig line from the podspec.
mac-cain13
added a commit
to mac-cain13/Promissum
that referenced
this issue
May 31, 2019
Avoid declaring `APPLICATION_EXTENSION_API_ONLY` when this is not the case (ie when using with Alamofire). CocoaPods will apply `APPLICATION_EXTENSION_API_ONLY` automatically if the target requires it.
When using the
Promissum/Alamofire
subspec you'll get the following warning:This is because Alamofire declares NOT to be safe for use in application extensions, while Promissum declares it is:
Promissum/Promissum.podspec
Line 20 in 9343949
The text was updated successfully, but these errors were encountered: