You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@cordova.apache.org by "abcss133 (via GitHub)" <gi...@apache.org> on 2024/08/19 02:53:15 UTC

[I] After upgrading to 7.0.0, the contents of config.xml cannot be read [cordova-ios]

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

   # Bug Report
   
   ## Problem
   I upgraded my project from cordova-ios@6.3.0 to @7.0.0 and built the project
   However, when I run it on an iOS device, the contents of config.xml can no longer be read.
   The following is set in config.xml.
   
   <platform name="ios">
   <!-- Set Swift version to 5 -->
   <preference name="UseSwiftLanguageVersion" value="5" />
   </platform>
   
   When I check Build Settings>User-Defined>SWIFT_VERSION in Xcode, the value is not set to 5
   and the contents of config.xml are not reflected.
   The contents of config.xml were reflected in cordova-ios@6.3.0.
   ### What is expected to happen?
   @7.0.0 should reflect the contents of config.xml as before.
   
   
   ### What does actually happen?
   The contents of config.xml are not reflected.
   
   
   
   
   
   
   
   
   ### Environment, Platform, Device
   <!-- In what environment, on what platform or on which device are you experiencing the issue? -->
   cordova-ios  7.0.0
   Mac OS, Ventura
   Emulator of iOS 16.1.1
   
   
   ### Version information
   <!-- 
   What are relevant versions you are using?
   For example:
   Cordova: Cordova CLI, Cordova Platforms, Cordova Plugins 
   Other Frameworks: Ionic Framework and CLI version
   Operating System, Android Studio, Xcode etc.
   -->
   cordova-ios  7.0.0
   Mac OS Ventura, Xcode 15.0.1
   Node.js 20.15.1
   
   
   ## Checklist
   <!-- Please check the boxes by putting an x in the [ ] like so: [x] -->
   
   - [x] I searched for existing GitHub issues
   - [x] I updated all Cordova tooling to most recent version
   - [x] I included all the necessary information above
   


-- 
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-unsubscribe@cordova.apache.org.apache.org

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


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


Re: [I] After upgrading to 7.0.0, the contents of config.xml cannot be read [cordova-ios]

Posted by "abcss133 (via GitHub)" <gi...@apache.org>.
abcss133 commented on issue #1468:
URL: https://github.com/apache/cordova-ios/issues/1468#issuecomment-2295697239

   Thank you for your reply.
   We will check that you are using the correct elements and attribute values.


-- 
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-unsubscribe@cordova.apache.org

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


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


Re: [I] After upgrading to 7.0.0, the contents of config.xml cannot be read [cordova-ios]

Posted by "dpogue (via GitHub)" <gi...@apache.org>.
dpogue commented on issue #1468:
URL: https://github.com/apache/cordova-ios/issues/1468#issuecomment-2295572858

   I don't think `UseSwiftLanguageVersion` is a supported preference in cordova-ios. Maybe a plugin or a hook was handling it?
   
   The proper preference name to configure the Swift version is just `SwiftVersion`


-- 
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-unsubscribe@cordova.apache.org

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


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


Re: [I] After upgrading to 7.0.0, the contents of config.xml cannot be read [cordova-ios]

Posted by "abcss133 (via GitHub)" <gi...@apache.org>.
abcss133 commented on issue #1468:
URL: https://github.com/apache/cordova-ios/issues/1468#issuecomment-2295684219

   Mr.dpogue
   Thank you for your reply.
   I changed the setting name from UseSwiftLanguageVersion to SwiftVersion and the setting was reflected.
   
   By the way, I set the following when setting the background mode,
   but when I upgraded to @7.0.0 and built it, the setting was not reflected.
   
   <platform name="ios">
   <custom-config-file parent="UIBackgroundModes" platform="ios" target="*-Info.plist">
               <array>
                   <string>bluetooth-central</string>
                   <string>bluetooth-peripheral</string>
               </array>
           </custom-config-file>
   </platform>
   
   Is the setting name wrong here too?


-- 
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-unsubscribe@cordova.apache.org

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


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


Re: [I] After upgrading to 7.0.0, the contents of config.xml cannot be read [cordova-ios]

Posted by "dpogue (via GitHub)" <gi...@apache.org>.
dpogue commented on issue #1468:
URL: https://github.com/apache/cordova-ios/issues/1468#issuecomment-2295687175

   `custom-config-file` has never been supported, but Cordova does support a `config-file` option. I recommend reading the [`config.xml` documentation](https://cordova.apache.org/docs/en/12.x/config_ref/index.html) and making sure you're using the right elements and attribute values.


-- 
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-unsubscribe@cordova.apache.org

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


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


Re: [I] After upgrading to 7.0.0, the contents of config.xml cannot be read [cordova-ios]

Posted by "dpogue (via GitHub)" <gi...@apache.org>.
dpogue closed issue #1468: After upgrading to 7.0.0, the contents of config.xml cannot be read
URL: https://github.com/apache/cordova-ios/issues/1468


-- 
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-unsubscribe@cordova.apache.org

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


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