fix playback offset
This commit is contained in:
+14
@@ -52,6 +52,20 @@ target 'MusicLand' do
|
||||
:ccache_enabled => podfile_properties['apple.ccacheEnabled'] == 'true',
|
||||
)
|
||||
|
||||
# Workaround for Xcode/clang consteval regression with fmt 11.0.2.
|
||||
# Keep this until React Native ships a newer fmt pod.
|
||||
fmt_base_header = File.join(installer.sandbox.root.to_s, 'fmt', 'include', 'fmt', 'base.h')
|
||||
if File.exist?(fmt_base_header)
|
||||
content = File.read(fmt_base_header)
|
||||
old_line = ' detail::parse_format_string<true>(str_, checker(s));'
|
||||
new_line = ' detail::parse_format_string<true>(str_, checker(str_));'
|
||||
if content.include?(old_line)
|
||||
File.chmod(0o644, fmt_base_header) unless File.writable?(fmt_base_header)
|
||||
File.write(fmt_base_header, content.sub(old_line, new_line))
|
||||
Pod::UI.puts('Applied fmt consteval workaround in fmt/base.h')
|
||||
end
|
||||
end
|
||||
|
||||
# This is necessary for Xcode 14, because it signs resource bundles by default
|
||||
# when building for devices.
|
||||
installer.target_installation_results.pod_target_installation_results
|
||||
|
||||
Reference in New Issue
Block a user