Reputation: 45
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.
Upvotes: 3
Views: 2600
Reputation: 547
Go to the Build Settings, then change C++ Language Dialect
to GNU++11 [-std=gnu++11]
worked for me.
Upvotes: 3
Reputation: 1
It helped me.U need to edit PHImagemanager.h file https://github.com/xamarin/xamarin-macios/issues/6716#issuecomment-534034433
Upvotes: 0