We are currently migrating Bugzilla to GitHub issues.
Any changes made to the bug tracker now will be lost, so please do not post new bugs or make changes to them.
When we're done, all bug URLs will redirect to their equivalent location on the new bug tracker.

Bug 5367

Summary: SDL_OpenUrl disabled on iOS due to unified Xcode project file
Product: SDL Reporter: Dominik Reichardt <sdl-bugzilla>
Component: *don't know*Assignee: Ryan C. Gordon <icculus>
Status: RESOLVED FIXED QA Contact: Sam Lantinga <slouken>
Severity: major    
Priority: P2    
Version: HG 2.0   
Hardware: iPhone/iPod touch   
OS: iOS (All)   
Attachments: as disruptive as possible patch

Description Dominik Reichardt 2020-11-27 20:44:19 UTC
When you unified the Xcode project file you forgot to add the iOS file (/src/misc/ios/SDL_sysurl.m) to the project file, so the dummy in that folder takes over and the call does not work.

Relevant commits:
http://hg.libsdl.org/SDL/rev/d80e57b065b0 (SDL_OpenUrl enabled for macOS/iOS)

http://hg.libsdl.org/SDL/rev/316a289c79a3 (and following: unified Xcode project files)

Adding an ios group in the misc group of the project file and then adding /src/misc/ios/SDL_sysurl.m to it fixes the problem.

As it affects the project file and everything there is always weird I think it's better without a patch :)

I wonder if anything else got forgotten on the unification.
Comment 1 Dominik Reichardt 2020-11-28 19:38:57 UTC
Created attachment 4544 [details]
as disruptive as possible patch
Comment 2 Sam Lantinga 2020-12-01 21:47:31 UTC
Fixed, thanks!
https://hg.libsdl.org/SDL/rev/d0e4c35fa783