Hello,
I am reaching out as I have encountered a problem while working with Xcode (versions 1.4.3 and 1.4.3.1), targeting iOS 16, that has me stumped.
I currently have a project with multiple targets, all of which build successfully under normal circumstances. However, when I try to export localizations, I encounter build errors specifically related to a pod's umbrella.h header file. I want to stress that no such issues occur during regular builds for any of my targets.
Given the nature of the error, I am wondering if there are specific flags or settings that are applied during the build process for exporting localizations that could potentially differ from a regular build. If there are, could these differences account for the discrepancies I am witnessing in terms of the success of the regular build versus the failure of the export localizations process?
I would greatly appreciate any insights or guidance on how to resolve this. If anyone has encountered a similar issue or knows of any differences in the build process when exporting localizations, I'd be thankful for your input.
Thank you in advance for your time and help.
Solved my issue. Apparently, each pod target must define a module, and this setting is not turned on by default. Not sure why this is only required for string export.
I adjusted my Podfile by adding a post-install hook and changing the Pods project setting to YES, then re-running pod install.
After that, I was able to export strings for localization without issue and all other builds continue to work just fine.
Hope this helps.
post_install do |pi|
pi.pods_project.build_configurations.each do |config|
config.build_settings['DEFINES_MODULE'] = 'YES'
end
end