dpogue opened a new issue, #1464:
URL: https://github.com/apache/cordova-ios/issues/1464

   # Feature Request
   
   ## Motivation Behind Feature
   <!-- Why should this feature be implemented? What problem does it solve? -->
   
   Currently, the generated Xcode project uses the application name for both 
the project and the target name. This means that file paths in generated 
projects are not consistent and we have to do regex-based token replacements 
during project creation. It also makes modifying the template project a pain 
because opening the template project directly in Xcode causes a bunch of those 
tokens to break.
   
   The deeper problem is that some tooling (notably Cocoapods) struggles with 
project and target names with non-ASCII characters. By making the project name 
consistent, we can hopefully avoid those problems.
   
   This could potentially also solve long-standing issues around 
`<config-file>` and `<edit-config>` for things like the Info.plist (currently 
named `{{projectname}}-Info.plist`) and node-xcode corrupting other targets due 
to not being able to restrict changes to just the app target.
   
   
   ## Feature Description
   <!-- 
   Describe your feature request in detail
   Please provide any code examples or screenshots of what this feature would 
look like
   Are there any drawbacks? Will this break anything for existing users? 
   -->
   The generated Xcode project would be named `App.xcodeproj` or 
`CordovaApp.xcodeproj`.
   The application target within that project would be named `App` or 
`CordovaApp`.
   
   **Prior Art:** Capacitor projects are named `App.xcodeproj` with a default 
target named `App`.
   
   
   ## Alternatives or Workarounds
   <!-- 
   Describe alternatives or workarounds you are currently using 
   Are there ways to do this with existing functionality?
   -->
   The current method mostly works (as long as you don't have non-ASCII 
characters in the project name), so there's a valid argument for keeping the 
existing behaviour.
   
   The workaround for now is to generate a project with an ASCII name and then 
override the app's display name, which is pretty much what this change would 
accomplish by default.
   
   Ref https://github.com/apache/cordova-ios/issues/1150.
   Ref https://github.com/apache/cordova-ios/issues/1289.


-- 
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.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