Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Xcode 16 warning on framework with unsandboxed preBuildScripts #1507

Open
shuguenot opened this issue Sep 25, 2024 · 3 comments
Open

Xcode 16 warning on framework with unsandboxed preBuildScripts #1507

shuguenot opened this issue Sep 25, 2024 · 3 comments

Comments

@shuguenot
Copy link

From Xcode 16, a warning appears for all our framework targets:

tasks in 'Copy Headers' are delayed by unsandboxed script phases; set ENABLE_USER_SCRIPT_SANDBOXING=YES to enable sandboxing

When moving the run script (added with "preBuildScripts") AFTER the Headers phase, the warning disappears.

Capture d’écran 2024-09-25 à 19 16 15
@jawidan
Copy link

jawidan commented Oct 9, 2024

Hey @shuguenot , did you find any other solution than that? I am also getting the same warning on my project

@shuguenot
Copy link
Author

@jawidan It seems to be the only (and right) way to solve this warning.
Note that the warning message is pretty explicit, right?

I am convinced that this is an issue that should be addressed by XcodeGen, specifically in how it manages the build phase order as described.

@alvar-bolt
Copy link
Contributor

It seems easy change technically as code is quite straightforward on how the order is determined:

let headersBuildPhaseFiles = getBuildFilesForPhase(.headers)

But there is additional phase between prebuild scripts and headers: copyFilesBuildPhasesFiles. Does anyone know if that could also go after headersBuildPhaseFiles?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants