PC SOFT

FOROS PROFESIONALES
WINDEVWEBDEV y WINDEV Mobile

Inicio → WINDEV Mobile 2024 → photo run app crashing in IOS
photo run app crashing in IOS
Iniciado por Mike Stewart, 10,nov. 2016 17:48 - 2 respuestas
Publicado el 10,noviembre 2016 - 17:48
Using the code directly lifted from the WINDEV help pages I am trying to allow for photos to be taken through my app. Works in android and on an iPad using IOS version 9.3.5.

However, an iPhone using 10.1.1 crashes as soon as the phone function photorunapp is called. The only clue I have comes from code which gives the error


libsystem_kernel.dylib`__abort_with_payload:


A web search on this suggests that I need to explicitly ask for camera access now instead of the iOS asking. I just have no idea if I can do this through windev.

Any ideas anyone please.

Mike
Miembro registrado
3.661 mensajes
Popularité : +175 (223 votes)
Publicado el 10,noviembre 2016 - 18:31
hi Mike,

Send mini example to support free PCSOFT

Reporter error ok

:p

--
Adriano José Boller
______________________________________________
Consultor e Representante Oficial da
PcSoft no Brasil
+55 (41) 9949 1800
adrianoboller@gmail.com
skype: adrianoboller
http://wxinformatica.com.br/
Publicado el 13,noviembre 2016 - 12:05
Found an answer...

WINDEV has a new problem with version 10 of IOS. When I tried to publish the app even Xcode did not pick up any problems but when trying to archive the app to test flight it reported back in an email that...

'The app's Info.plist must contain an NSCameraUsageDescription key with a string value explaining to the user how the app uses this data'

So the solution was to directly edit the info.plist file and add the following.

<key>NSBluetoothPeripheralUsageDescription</key>
<string>ESP Seating would like to use bluetooth.</string>
<key>NSCalendarsUsageDescription</key>
<string>ESP Seating would like to create a calendar event.</string>
<key>NSCameraUsageDescription</key>
<string>ESP Seating would like to use the camera.</string>
<key>NSHumanReadableCopyright</key>
<string>ESP Thinking Ltd 2016</string>
<key>NSLocationWhenInUseUsageDescription</key>
<string> </string>
<key>NSPhotoLibraryUsageDescription</key>
<string>ESP Seating would like to store a photo.</string>

I hope this helps anyone else who comes across these.

Mike