michaelkamphausen commented on issue #1370:
URL: https://github.com/apache/cordova-ios/issues/1370#issuecomment-1739993902
I ran into the same problem with my project.
I find the Ionic PR helpful indeed. It can be applied to Cordova as well.
As a quick solution until #1374 is merged, the following code can be added
to a project's `config.xml` at the `<platform name="ios">` node. It ensures the
necessary changes are inserted into the Info.plist file when the project is
built, without the need to modify the local cordova-ios module:
```xml
<config-file parent="UTExportedTypeDeclarations" target="*-Info.plist">
<array>
<dict>
<key>UTTypeConformsTo</key>
<array>
<string>public.data</string>
</array>
<key>UTTypeDescription</key>
<string>WebAssembly</string>
<key>UTTypeIdentifier</key>
<string>$(PRODUCT_BUNDLE_IDENTIFIER)</string>
<key>UTTypeTagSpecification</key>
<dict>
<key>public.filename-extension</key>
<string>wasm</string>
<key>public.mime-type</key>
<string>application/wasm</string>
</dict>
</dict>
</array>
</config-file>
```
--
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: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]