poornima r
poornima r

Reputation: 45

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.

Upvotes: 3

Views: 2600

Answers (2)

da1
da1

Reputation: 547

Go to the Build Settings, then change C++ Language Dialect to GNU++11 [-std=gnu++11] worked for me.

enter image description here

Upvotes: 3

Rustam Raifinov
Rustam Raifinov

Reputation: 1

It helped me.U need to edit PHImagemanager.h file https://github.com/xamarin/xamarin-macios/issues/6716#issuecomment-534034433

Upvotes: 0

Related Questions