jcesarmobile commented on PR #1430:
URL: https://github.com/apache/cordova-ios/pull/1430#issuecomment-2081733491

   Keeping CordovaLib was a good call as it allows plugins to not have a 
dependency to cordova-ios, I tried several things like using an environment 
variable for setting the cordova-ios versions to use based on the installed 
version, and worked when running the app from the CLI, but was not working if 
running from Xcode since the variable is unset when the node process stops.
   A similar option was to set the version on the `Package.swift` on 
platfor/plugin add, but as you mentioned, the tag has to exists, which is a 
problem for dev versions.
   
   Also tried using cordova-ios from node_modules directly and works fine for 
the `CordovaPluginsSPM` project, but for plugins it would require to add 
cordova-ios as a dev dependency on plugins and then adjusting paths once 
installed in an app since the path to cordova-ios would be different when used 
from an app and from the plugin directory itself.
   
   While I would have loved using the local version so we have the privacy 
manifest linked and on plugins we could run `xcodebuild` command to see if the 
plugin code builds without adding it to an app, keeping `CordovaLib` is the 
easier and less conflicting option.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscr...@cordova.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscr...@cordova.apache.org
For additional commands, e-mail: issues-h...@cordova.apache.org

Reply via email to