-
Notifications
You must be signed in to change notification settings - Fork 2.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
extract<Poco::JSON::Object::Ptr>() fails on iPhone 6 #1275
Comments
Exception is being thrown from the code below in Var.h
|
Hi, Is there a solution to this? I am also getting Bad cast exception. Can not convert N4Poco9SharedPtrINS_4JSON6ObjectENS_16ReferenceCounterENS_13ReleasePolicyIS2_EEEE to N4Poco9SharedPtrINS_4JSON6ObjectENS_16ReferenceCounterENS_13ReleasePolicyIS2_EEEE. My JSON is in the format: Code: Interestingly, If I run app in DEBUG mode, it works, but fails in RELEASE mode. |
Is there anything I can do about it. |
For arm64 builds, add the compiler flag: -fvisibility=hidden |
The code below works fine on iPhone 4s and iPhoneSimulator and Windows as well:
but fails on iPhone 5/6 with exception message
All Poco libraries for iPhone 6 was built for arm64 architecture using actual make files
And compiler settings in XCode
Please advice how to avoid that fail or fix the sources.
UPD: debugging shows that POCO_LONG_IS_64_BIT is defned
The text was updated successfully, but these errors were encountered: