Skip to content

Commit

Permalink
fix: updated pod file to support xcode 15 (#166)
Browse files Browse the repository at this point in the history
* fix: updated pod file to support xcode 15

* fix: release:tag
  • Loading branch information
dawhitla authored Dec 1, 2023
1 parent bf136e1 commit 2a62084
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 3 deletions.
11 changes: 11 additions & 0 deletions example/ios/Podfile
Original file line number Diff line number Diff line change
Expand Up @@ -33,5 +33,16 @@ target 'AmazonIvsExample' do
post_install do |installer|
__apply_Xcode_12_5_M1_post_install_workaround(installer)
# flipper_post_install(installer)

# Backport of: https://github.com/AlexanderEggers/react-native/blob/18ac6a3743749c0b8273c64dac982c30b74928e3/packages/react-native/scripts/cocoapods/utils.rb#L124
installer.target_installation_results.pod_target_installation_results
.each do |pod_name, target_installation_result|
target_installation_result.native_target.build_configurations.each do |config|
# unary_function and binary_function are no longer provided in C++17 and newer standard modes as part of Xcode 15. They can be re-enabled with setting _LIBCPP_ENABLE_CXX17_REMOVED_UNARY_BINARY_FUNCTION
# Ref: https://developer.apple.com/documentation/xcode-release-notes/xcode-15-release-notes#Deprecations
config.build_settings['GCC_PREPROCESSOR_DEFINITIONS'] ||= '$(inherited) '
config.build_settings['GCC_PREPROCESSOR_DEFINITIONS'] << '"_LIBCPP_ENABLE_CXX17_REMOVED_UNARY_BINARY_FUNCTION" '
end
end
end
end
2 changes: 1 addition & 1 deletion example/ios/Podfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -638,6 +638,6 @@ SPEC CHECKSUMS:
Yoga: 7a4d48cfb35dfa542151e615fa73c1a0d88caf21
YogaKit: f782866e155069a2cca2517aafea43200b01fd5a

PODFILE CHECKSUM: b8abc3d3f178feead0abd4edcf565c120e00ea2e
PODFILE CHECKSUM: 10b965f81e7d51bcd1f3d840c000ea2ebdaf2ec6

COCOAPODS: 1.11.3
2 changes: 1 addition & 1 deletion example/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
"private": true,
"scripts": {
"android": "react-native run-android",
"ios": "react-native run-ios --simulator=\"iPhone 14\"",
"ios": "react-native run-ios --simulator=\"iPhone 15\"",
"start": "react-native start"
},
"dependencies": {
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@
"get:testbutler": "curl -f -o ./test-butler-app.apk https://repo1.maven.org/maven2/com/linkedin/testbutler/test-butler-app/2.2.1/test-butler-app-2.2.1.apk",
"release:create": "tsx ./scripts/release-create.ts",
"release:verify": "tsx ./scripts/release-verify.ts",
"release:tag": "tsx ./scripts/release-verify.ts"
"release:tag": "tsx ./scripts/release-tag.ts"
},
"keywords": [
"react-native",
Expand Down

0 comments on commit 2a62084

Please sign in to comment.