Skip to content

Commit

Permalink
fix CI build attempt #3
Browse files Browse the repository at this point in the history
  • Loading branch information
pmusaraj committed Oct 23, 2024
1 parent 0cd0253 commit 3f54657
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 1 deletion.
9 changes: 9 additions & 0 deletions ios/Podfile
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,15 @@ target 'Discourse' do
:mac_catalyst_enabled => false
)
__apply_Xcode_12_5_M1_post_install_workaround(installer)

# fix the "No template named 'unary_function'" error
# see https://stackoverflow.com/questions/77133361/no-template-named-unary-function-in-namespace-std-did-you-mean-unary-fun
# should be fixed in RN 0.72.5+
installer.pods_project.targets.each do |target|
target.build_configurations.each do |config|
config.build_settings['GCC_PREPROCESSOR_DEFINITIONS'] ||= ['$(inherited)', '_LIBCPP_ENABLE_CXX17_REMOVED_UNARY_BINARY_FUNCTION']
end
end
end

# https://stackoverflow.com/questions/78993520/invalid-executable-the-executable-appname-app-frameworks-hermes-framework-herm
Expand Down
2 changes: 1 addition & 1 deletion ios/Podfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -617,6 +617,6 @@ SPEC CHECKSUMS:
RNVectorIcons: fcc2f6cb32f5735b586e66d14103a74ce6ad61f8
Yoga: d56980c8914db0b51692f55533409e844b66133c

PODFILE CHECKSUM: 6b385b845e3175e65f2060ab6f1252ee15ecf8f8
PODFILE CHECKSUM: 1f6fc6885dfec27cdebb42ea12c2f7ea29d3f559

COCOAPODS: 1.15.2

0 comments on commit 3f54657

Please sign in to comment.