When I build IOS app i got the apk file instead of ipa file.
ghenne
May 27, 2021, 12:23pm
2
It looks at you voltbuilder.json file to make the final decision.
You probably have:
"platform": "android",
Change it to
"platform": "ios",
Thanks for the update. I got the below error now,
UserError: Failed to install ‘cordova-plugin-mediapicker-dmcsdk’: Error: Variable(s) missing: IOS_PHOTO_LIBRARY_USAGE_DESCRIPTION
Where to mention this description?
You’ll need to add something like this to your config.xml:
<variable name="IOS_PHOTO_LIBRARY_USAGE_DESCRIPTION" value="your usage message" />
See the documentation for the plugin.
I have mentioned like the below,
but still I am getting the error message.
You may need to ask the author of the plugin for help on this one.
There’s an open issue for something similar:
opened 04:05PM - 12 Nov 19 UTC
I have other plugins that require to have NSPhotoLibraryUsageDescription key in … plist file so I have already added the below in my config.xml to set this key before using this plugin
```
<edit-config file="*-Info.plist" mode="merge" target="NSPhotoLibraryUsageDescription">
<string>This app requires photo library access to support adding photo attachments.</string>
</edit-config>
```
The latest version of this plugin requires to provide IOS_PHOTO_LIBRARY_USAGE_DESCRIPTION variable during installation to add the same key to plist file.
So now it seems trying to set this property from both, the plugin.xml and config.xml and causes the problem when I try to restore platform/plugins. This problem is intermittent so I'm not 100% sure yet but I saw several reports about the problems when plugin.xml/config.xml wanting to make conflicting changes caused problems - see https://github.com/apache/cordova-common/pull/24#issuecomment-393053654
Besides, I'm not sure if this is a good idea to set this general NSPhotoLibraryUsageDescription key by the plugin since this is not this plugin specific thing.
The correct format is
<plugin name="cordova-plugin-mediapicker-dmcsdk">
<variable name="IOS_PHOTO_LIBRARY_USAGE_DESCRIPTION" value="Your usage description" />
</plugin>
Hi,
Thanks for your support. I able to build ipa file now but once installing the ipa file I can see white screen only.
When I check the index.js script some scripts not working. I have attached the screen shot.
The same app is working fine in android device.
ghenne
May 28, 2021, 10:23am
10
This is now a completely different question than the original topic. Could you start a new Topic?
ghenne
May 28, 2021, 10:23am
11
Tip : If you’re pasting code, html or config files, surround the code with triple back ticks (```), before the first line and after the last one. It will be formatted properly.
Posting screenshots of code is not as useful.