Watch, Follow, &
Connect with Us

For forums, blogs and more please visit our
Developer Tools Community.


Welcome, Guest
Guest Settings
Help

Thread: TCameraComponent IOS 10.0.2



Permlink Replies: 5 - Last Post: Oct 19, 2016 11:15 PM Last Post By: Dave Nottage
Richard Craig

Posts: 4
Registered: 4/6/00
TCameraComponent IOS 10.0.2
Click to report abuse...   Click to reply to this thread Reply
  Posted: Oct 18, 2016 5:45 AM
Hi All

I'm having a problem when I enable CameraComponent on IOS 10.0.2
Delphi 10.1 Berlin Update 1
As soon as it is enabled, I'm getting "Project raised exception class 6"

Works fine on IOS 9.3.5 but same problem on 10.0.2 and 10.1 beta
IOS Simulator 10.0 is also fine as is Android and Windows.

Thanks

Richard

Edited by: Richard Craig on Oct 18, 2016 8:56 AM
Markus Humm

Posts: 5,113
Registered: 11/9/03
Re: TCameraComponent IOS 10.0.2 [Edit]
Click to report abuse...   Click to reply to this thread Reply
  Posted: Oct 18, 2016 10:56 AM   in response to: Richard Craig in response to: Richard Craig
Am 18.10.2016 um 17:56 schrieb Richard Craig:
Hi All

I'm having a problem when I enable CameraComponent on IOS 10.0.2
Delphi 10.1 Berlin Update 1
As soon as it is enabled, I'm getting "Project raised exception class 6"

Works fine on IOS 9.3.5 but same problem on 10.0.2 and 10.1 beta
IOS Simulator 10.0 is also fine as is Android and Windows.

Thanks

Richard

Edited by: Richard Craig on Oct 18, 2016 8:56 AM

Hello,

can you report your issue into quality.embarcadero.com, best with a
small sample app project attached?

Greetings

Markus
John Clark

Posts: 13
Registered: 5/21/15
Re: TCameraComponent IOS 10.0.2
Click to report abuse...   Click to reply to this thread Reply
  Posted: Oct 18, 2016 4:37 PM   in response to: Richard Craig in response to: Richard Craig
Richard,

There made a change in iOS 10 where any resource used needs to have a reason to display when prompting for permissions. Add the lines below to the info.plist.TemplateiOS.xml file located in your root project folder. That will fix the issue.

Best Regards,

John

<key>NSCameraUsageDescription</key>
<string>Used for Barcode Scanning</string>

Richard Craig wrote:
Hi All

I'm having a problem when I enable CameraComponent on IOS 10.0.2
Delphi 10.1 Berlin Update 1
As soon as it is enabled, I'm getting "Project raised exception class 6"

Works fine on IOS 9.3.5 but same problem on 10.0.2 and 10.1 beta
IOS Simulator 10.0 is also fine as is Android and Windows.

Thanks

Richard

Edited by: Richard Craig on Oct 18, 2016 8:56 AM
Dave Nottage

Posts: 1,850
Registered: 1/7/00
Re: TCameraComponent IOS 10.0.2 [Edit]
Click to report abuse...   Click to reply to this thread Reply
  Posted: Oct 18, 2016 10:57 PM   in response to: Richard Craig in response to: Richard Craig
Richard Craig wrote:

I'm having a problem when I enable CameraComponent on IOS 10.0.2
Delphi 10.1 Berlin Update 1
As soon as it is enabled, I'm getting "Project raised exception class 6"

http://delphiworlds.com/2016/09/handling-new-ios-10-privacy-settings/

--
Dave Nottage [MVP, TeamB]
Hints, tips and tricks at: http://www.delphiworlds.com/blog
Richard Craig

Posts: 4
Registered: 4/6/00
Re: TCameraComponent IOS 10.0.2
Click to report abuse...   Click to reply to this thread Reply
  Posted: Oct 19, 2016 1:51 AM   in response to: Richard Craig in response to: Richard Craig
Thanks for the replies.
Tried adding the setting to the Version Info in Project options but this made no difference.
Added the lines to info.plist.TemplateiOS.xml and that's worked.

Many thanks :)
Dave Nottage

Posts: 1,850
Registered: 1/7/00
Re: TCameraComponent IOS 10.0.2
Click to report abuse...   Click to reply to this thread Reply
  Posted: Oct 19, 2016 11:15 PM   in response to: Richard Craig in response to: Richard Craig
Richard Craig wrote:

Tried adding the setting to the Version Info in Project options but this made no difference.

Then you're likely either not adding the correct keyname, or it is not for the correct platform/configuration.

--
Dave Nottage [MVP, TeamB]
Hints, tips and tricks at: http://www.delphiworlds.com/blog
Legend
Helpful Answer (5 pts)
Correct Answer (10 pts)

Server Response from: ETNAJIVE02