Closed michaelbaisch closed 5 years ago
I'm checking on this. A quick fix would be to step back a few versions using git bisect to see where things went awry.
See below.
@michaelbaisch Hi there, I loaded everything from scratch (a few osx release 0.10.1) and all addons required for ofxHTTP from their stable branches (though master should work too) and could not reproduce the issue. I have not tested ofxHTTP on (or even installed) Xcode 10.2 because .. well the usual bugs. I have not upgraded to macOS 10.14 for the same reason. I'd try the following in order of my best guess:
Xcode 10.2 may not be playing well with our older packaged version of nlohmann::json. (2.6.1 I think). I would recommend downloading the latest version (https://github.com/nlohmann/json/releases/download/v3.6.1/json.hpp) and replacing the one in your of_v0.10.1_osx_release/libs/json/include/ folder to see if that fixes it. I tested this and it compiled fine on my setup. The next version of oF 0.11.0 will include the latest version 3.6 or 3.61.
If that doesn't work, start fresh with the stable branches of all ofxHTTP
addons and try again with the included addon examples. If those work, try it with your own code.
If that doesn't work, revert to Xcode 10.1 and try 2 again.
If that doesn't work, revert to macOS 10.13.6 and try 3.
If none of those work ... I'm really sorry :)
Just be clear I'm a 100% sure that this is because of Xcode 10.2, I just updated from Xcode 10.1 where everything worked just fine.
Thanks for the quick response, and your first point did work! Thank you!
Super!
updating to the latest version of nlohmann::json worked for me. Is this fixed in the master of OF?
It's updated in the latest apothecary, but the apothecary submodule isn't updated in the openFrameworks:master I don't think. It will be included in the next release, which should be out soon AFAIK.
Hello everyone,
I just updated to Xcode 10.2 and my OF project (of_v0.10.1) using ofXHTTP is suddenly throwing an error:
It also happens after a freshly build example
example_basic_server_file
with ProjectGenerator.The Problem seems to originate from
ofxHTTP/libs/ofxHTTP/src/OAuth10Credentials.cpp
Is there a way of quickly fixing it so I can use my project again?
Greetings, Michael