-
-
Notifications
You must be signed in to change notification settings - Fork 197
Support xcconfig file from plugin #883
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
Comments
Support xcconfig file from plugin - close #883
It turns out that now the CocoaPods xcconfig overrides the default one and the build fails. |
I've moved the nativescript xcconfig to the project level, and Cocoapods uses the target xcconfig so everything should work now - NativeScript/ios-jsc#322 |
At the moment there is an issue, that only one plugin with xcconfig is supported. This is because at a given level (target or project), only the last assignment of Xcode flags is preserved. The This conflicts occur also not only between plugins with xcconfig files, but also with CocoaPods (which uses xcconfig files) and now with the iOS runtime also. A possible solution is that we merge the build setting flags from all plugins in a single variable assignment. For example:
This is what CocoaPods is doing: https://guides.cocoapods.org/syntax/podspec.html#pod_target_xcconfig. |
After some more discussion with @fealebenpae we have a new proposal: Instead of a xcconfig file, each plugin could have a {
"OTHER_LDFLAGS": "-framework CoreGraphics"
} This would make processing the file easier. On prepare we should modify the application
The extra variable is in order to make removing plugins safely possible. @Fatme I would appreciate hearing your thoughts on this. |
Isn't it better if we say that the only way to support this is via Cocoapods? If you have a plugin that requires compiler flag changes wrap it in a pod and give it to us. |
Does CocoaPods support binary-only pods? That is to say, if you only have a static library from a vendor, say TelerikUI, can you wrap that in a pod? |
Issue 1:
Issue 2: |
The
.xcconfig
file should be inplatforms/ios
folder of the plugin and will be included into native project's xcconfig file.The text was updated successfully, but these errors were encountered: