Closed squidgeface closed 1 year ago
First of all, thank you @squidgeface for reporting this. Sadly this seams to be a vcpkg issue, not a cpr issue.
To me this error looks like a miss match in libstdcpp used. If I would guess, this is caused by the change for std::basic_string
in cpp17 inside the standard lib. (https://isocpp.org/files/papers/p0636r0.html)
Since we have so many issues with people trying to use vcpkg and failing I discourage you from using it.
I suggest you try using fetch_content
directly for cpr. Here is an example: https://github.com/libcpr/example-cmake-fetch-content
Please head over to the vcpkg issue tracker and report this issue there.
Description
We have used VCPKG to add CPR to an xcode project using CMake. We use the framework file in a Unity project to do http requests natively.
CMakeLists.txt (only relevant info):
The Xcode project spits out a .framework file which we use successfully on iOS 16
However, it crashes before the app loads on the devices with iOS versions 11-14 with the following error:
I've tried lowering the CPR, CURL and OPENSSL versions to see if maybe at some point older iOS versions stopped being supported but haven't had any luck with that.
Just to reiterate - the build works just fine on newer iOS version (tested on iOS16)
Example/How to Reproduce
Possible Fix
No response
Where did you get it from?
vcpkg
Additional Context/Your Environment
Building on a mac mini with Apple M1 chip