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
Description:
The Info.plist generated by the command ionic capacitor run ios -l is incorrect and prevents Xcode from building the app if the key NSAppTransportSecurity is already defined.
The issue started after updating to Xcode 15.2. Previous versions like 14 work as expected.
Steps to Reproduce:
Create an ionic app with iOS support
Add the following configurations to the Info.plist file:
Run the app with the command ionic capacitor run ios -l.
Output:
The Xcode build fails with the following error:
[capacitor] error: unable to read property list from file: /Volumes/Projects/xxx/ios/App/App/Info.plist: The operation couldn’t be completed. (XCBUtil.PropertyListConversionError error 2.) (in target 'App' from project 'App')
Description:
The Info.plist generated by the command
ionic capacitor run ios -l
is incorrect and prevents Xcode from building the app if the keyNSAppTransportSecurity
is already defined.The issue started after updating to Xcode 15.2. Previous versions like 14 work as expected.
Steps to Reproduce:
Output:
The Xcode build fails with the following error:
My
ionic info
:Other Information:
The problem is in the disableAppTransportSecurity method in https://github.com/ionic-team/ionic-cli/blob/%40ionic/cli%407.2.0/packages/%40ionic/cli/src/lib/integrations/capacitor/ios.ts
Line 45 adds the true value without adding NSAllowsArbitraryLoads key.
As a workaround I added the default values to the Info.plist in the NSAppTransportSecurity dict:
The text was updated successfully, but these errors were encountered: