Skip to content

Commit 902df96

Browse files
fix: WASM MIME type error by specifying it in Info.plist template (#1374)
* (ios) fixes WASM MIME type error by specifying it in Info.plist template * changed key to UTImportedTypeDeclarations as we don't want to declare WebAssembly file ownership
1 parent 2091208 commit 902df96

File tree

1 file changed

+20
-0
lines changed

1 file changed

+20
-0
lines changed

templates/project/__PROJECT_NAME__/__PROJECT_NAME__-Info.plist

+20
Original file line numberDiff line numberDiff line change
@@ -45,5 +45,25 @@
4545
<string>UIInterfaceOrientationPortraitUpsideDown</string>
4646
<string>UIInterfaceOrientationLandscapeRight</string>
4747
</array>
48+
<key>UTImportedTypeDeclarations</key>
49+
<array>
50+
<dict>
51+
<key>UTTypeConformsTo</key>
52+
<array>
53+
<string>public.data</string>
54+
</array>
55+
<key>UTTypeDescription</key>
56+
<string>WebAssembly</string>
57+
<key>UTTypeIdentifier</key>
58+
<string>$(PRODUCT_BUNDLE_IDENTIFIER)</string>
59+
<key>UTTypeTagSpecification</key>
60+
<dict>
61+
<key>public.filename-extension</key>
62+
<string>wasm</string>
63+
<key>public.mime-type</key>
64+
<string>application/wasm</string>
65+
</dict>
66+
</dict>
67+
</array>
4868
</dict>
4969
</plist>

0 commit comments

Comments
 (0)