Photos framework error when compiled in Xcode 11.1

I have updated my xcode 10.3 to latest version xcode11.1 and i have added the photos framework in my project.When i run my project i get "Photos requires C++11 or later" error in PHImageManager.h class.Below i have mentioned the error.


Error:

1./Applications/xcode11/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS13.1.sdk/System/Library/Frameworks/Photos.framework/Headers/PHImageManager.h:18:2: "Photos requires C++11 or later"

2./Applications/xcode11/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS13.1.sdk/System/Library/Frameworks/Photos.framework/Headers/PHImageManager.h:21:47: Expected identifier or '{'



Please help me on this issue.

Replies

Go to the Build Settings, then change

C++ Language Dialect
to
GNU++11 [-std=gnu++11]
worked for me.

Hi,


I have got the same issue with Visual Studio 2017 and xCode 11.1, however using C# platform, there seems no Build Options as mentioned above. Where could i change C++

Language Dialect
to
GNU++11 [-std=gnu++11].


Appreciate any quick assistance...


Regards

Bobby

Just downloaded Xcode 12.0.1. Migrating from Xcode 10.?
Same error but no option for GNU11 [-std=gnu11] only 'gnu11' all lowercase just like that. Adding GNU11 [-std=gnu11] manually via other doesn't work. Anybody?