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

Make PUBLIC_HEADERS_FOLDER_PATH ENV optional #164

Merged

Conversation

polac24
Copy link
Collaborator

@polac24 polac24 commented Aug 31, 2022

According to #163, PUBLIC_HEADERS_FOLDER_PATH introduced in #149 is not always available - e.g. when CocoaPods build a static library. For a CocoaPods scenario, take a look on the sourcecode here and note that when a Build Setting is set to an empty string, a build phase script is called without that ENV.

In such a case, we don't have to automatically rewrite generated -Swift.h file. To skip the rewriting step (introduced in #149) we can leave publicHeadersFolderPath as nil.

The original issue (#149) reports that this problem is caused only when a static library is used (not frameworks).

Fixes #163

@polac24
Copy link
Collaborator Author

polac24 commented Nov 19, 2022

Hi @acbdev, thanks for the review. Do you if getting a write-access to the repo is an automated process? Seems you are not added to the group so github still reports that a review is required.

@polac24
Copy link
Collaborator Author

polac24 commented Nov 24, 2022

Yay! Seems that all is set up correctly, thanks

@polac24 polac24 merged commit b439674 into spotify:master Nov 24, 2022
@polac24 polac24 deleted the 20220831-optional-public-headers-folder branch November 24, 2022 04:28
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

Successfully merging this pull request may close these issues.

error: FATAL: Postbuild initialization failed with error: missingEnv("PUBLIC_HEADERS_FOLDER_PATH")
3 participants