Skip to content

Commit

Permalink
fix(ios): pod install --project-directory=ios fails
Browse files Browse the repository at this point in the history
Running `pod install` from outside the the `ios` folder fails because
the path to `React-Codegen` is wrong:

```
% pod install --project-directory=ios
[Codegen] Generating ios/build/generated/ios/React-Codegen.podspec.json
Auto-linking React Native module for target `ReactTestApp`: ReactTestApp-DevSupport
Analyzing dependencies
Fetching podspec for `DoubleConversion` from `../node_modules/react-native/third-party-podspecs/DoubleConversion.podspec`
Fetching podspec for `RCT-Folly` from `../node_modules/react-native/third-party-podspecs/RCT-Folly.podspec`
[!] No podspec found for `React-Codegen` in `ios/build/generated/ios`
```
  • Loading branch information
tido64 committed Oct 28, 2021
1 parent 61e1b6f commit bc3eef2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scripts/react_native_pods.rb
Original file line number Diff line number Diff line change
Expand Up @@ -274,7 +274,7 @@ def generate_temp_pod_spec_for_codegen!(fabric_enabled)

return {
"spec" => spec,
"path" => output_dir,
"path" => $CODEGEN_OUTPUT_DIR, # Path needs to be relative to `Podfile`
}
end

Expand Down

0 comments on commit bc3eef2

Please sign in to comment.