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 5369

Summary: iOS static library build copies public headers files into xcode archive
Product: SDL Reporter: Dominik Reichardt <sdl-bugzilla>
Component: buildAssignee: Sam Lantinga <slouken>
Status: RESOLVED FIXED QA Contact: Sam Lantinga <slouken>
Severity: normal    
Priority: P2    
Version: HG 2.0   
Hardware: iPhone/iPod touch   
OS: iOS (All)   
Attachments: patch for both static iOS libs

Description Dominik Reichardt 2020-11-28 00:06:12 UTC
Trying to integrate the latest SDL2 changes into our iOS project of Exult I've stumbled over the fact that when I added the static iOS library the public header files were copied to the archive of our project when you let Xcode build the archive.
This makes the archive invalid for upload to the AppStore Connect.

To fix this you need to delete the public headers from the build phase:
Open the xcode project, select the target "Static Library-ios", got to build phases, and in "headers" delete all the headers in the "public" group. This is safe to do as this actually just copies the public headers for some odd counterintuitive reason.

I think this needs to be done for all the library build targets but likely not for the framework targets.
Comment 1 Dominik Reichardt 2020-11-28 19:52:05 UTC
Created attachment 4546 [details]
patch for both static iOS libs

Added a patch for both static iOS libs.
Probably the static macOS and maybe the shared libraries could use that, too. But I'm not sure.
At least for both static targets this behaviour is disruptive for creating an app store archive.
(and wasn't done in the previous iOS standalone Xcode project)
Comment 2 Sam Lantinga 2020-12-01 22:02:03 UTC
Fixed, thanks!
https://hg.libsdl.org/SDL/rev/0069601b194c