Hi,
I updated XCode to 11.1 yesterday, which replaced the MacOS 10.14 SDK with 10.15. When I got things to compile again, this code caused a crash in renderWindow.create():
int main () {
sf::Window window;
window.create(sf::VideoMode(800,600), "My Window");
sf::RenderWindow renderWindow;
renderWindow.create(window.getSystemHandle());
while (window.isOpen()) {
sf::Event event;
while (window.pollEvent(event)) {
if (event.type == sf::Event::Closed)
window.close();
}
}
return 0;
}
Please note that this is a stripped down example of a much larger and more complex program, made to illustrate the crash. That is to say, there is a reason for the Window/RenderWindow dichotomy, but it's not relevant here.
I found the 10.14 SDK online, downloaded it and switched my project back to 10.14, and now everything runs as it should.