AppMetricaLibraryAdapter Build Failure
Unity: 6000.3.0f1+ | Platform: iOS
Issue Description
In Unity 6000.2.x, when exporting an Xcode project, the BUILD_LIBRARY_FOR_DISTRIBUTION setting was explicitly
set to NO in the build settings of each pod.
After upgrading to Unity 6000.3.0f1+, this setting is no longer present in the exported Xcode project's pod build settings. The missing setting causes build failures specifically for the AppMetricaLibraryAdapter library.
Workaround
Add the following post-install hook to your Podfile to explicitly set the required build setting for
the affected target:
post_install do |installer|
problematic_targets = ['AppMetricaLibraryAdapter']
installer.pods_project.targets.each do |target|
target.build_configurations.each do |config|
if problematic_targets.include?(target.name)
config.build_settings['BUILD_LIBRARY_FOR_DISTRIBUTION'] = 'NO'
end
end
end
end
This is a temporary workaround. We are investigating a permanent fix for this issue