Skip to content
This repository has been archived by the owner on Oct 23, 2023. It is now read-only.

Commit

Permalink
Fix Xcode 14.3 build failures (#225)
Browse files Browse the repository at this point in the history
Summary:
Xcode 14.3 introduced module interface verification which may cause builds to fail with "failed to verify module interface of 'react-native-pytorch-core' due to the errors above ..."

This disables the module verification functionality for this pod in a cocoapod RN project.

Pull Request resolved: #225

Reviewed By: liuyinglao

Differential Revision: D49290052

Pulled By: raedle

fbshipit-source-id: b87cc1ba9e21db49676b897a661408335b1fd1e4
  • Loading branch information
Lavrans authored and facebook-github-bot committed Sep 14, 2023
1 parent 46c1ca5 commit 44bcf2c
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion react-native-pytorch-core/react-native-pytorch-core.podspec
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,8 @@ Pod::Spec.new do |s|
s.pod_target_xcconfig = {
"DEFINES_MODULE" => "YES",
"USE_HEADERMAP" => "YES",
"HEADER_SEARCH_PATHS" => '$(inherited) "$(PODS_TARGET_SRCROOT)/ReactCommon" "$(PODS_TARGET_SRCROOT)" "$(PODS_ROOT)/Headers/Private/React-Core" "$(PODS_ROOT)/Headers/Public/React-hermes" "$(PODS_ROOT)/Headers/Public/hermes-engine" "${PODS_ROOT}/LibTorch-Lite/install/include"'
"HEADER_SEARCH_PATHS" => '$(inherited) "$(PODS_TARGET_SRCROOT)/ReactCommon" "$(PODS_TARGET_SRCROOT)" "$(PODS_ROOT)/Headers/Private/React-Core" "$(PODS_ROOT)/Headers/Public/React-hermes" "$(PODS_ROOT)/Headers/Public/hermes-engine" "${PODS_ROOT}/LibTorch-Lite/install/include"',
"OTHER_SWIFT_FLAGS" => '-no-verify-emitted-module-interface'
}
s.preserve_paths = [
"cxx/**/*.h",
Expand Down

0 comments on commit 44bcf2c

Please sign in to comment.