Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Generated Podfile done borked: undefined method `codegen_pre_install' for #<Pod::Podfile:0x0000> #86

Closed
skotchpine opened this issue Nov 2, 2020 · 4 comments

Comments

@skotchpine
Copy link

Describe the bug
CRNWA added a method that wasn't available to the podfile.

To Reproduce
Steps to reproduce the behavior:

  1. npx crnwa xxx, see Error: Failed to install CocoaPods dependencies ...

Screen Shot 2020-11-02 at 11 45 18 AM

  1. cd xxx/ios; pod install, see undefined method codegen_pre_install ...

Screen Shot 2020-11-02 at 11 45 37 AM

Desktop (please complete the following information):

  • OS: macOS Catalina 10.15.7 (19H2)
  • nodejs: v14.11.0
  • npx: 6.14.8
  • crnwa: 0.16.1

generated package.json

{
  "name": "xxx",
  "version": "0.0.1",
  "private": true,
  "scripts": {
    "android": "react-native run-android",
    "ios": "react-native run-ios",
    "start": "react-native start",
    "lint": "eslint .",
    "web": "react-scripts start",
    "build": "react-scripts build",
    "test": "react-scripts test",
    "eject": "react-scripts eject"
  },
  "dependencies": {
    "react": "17.0.1",
    "react-native": "0.63.2",
    "react-dom": "^17.0.1",
    "react-native-web": "^0.14.7",
    "react-scripts": "4.0.0",
    "web-vitals": "^0.2.4"
  },
  "devDependencies": {
    "@babel/core": "^7.8.4",
    "@babel/runtime": "^7.8.4",
    "@react-native-community/eslint-config": "^1.1.0",
    "metro-react-native-babel-preset": "^0.63.0",
    "react-test-renderer": "17.0.1",
    "react-native-codegen": "0.0.4"
  },
  "browserslist": {
    "production": [
      ">0.2%",
      "not dead",
      "not op_mini all"
    ],
    "development": [
      "last 1 chrome version",
      "last 1 firefox version",
      "last 1 safari version"
    ]
  }
}
@skotchpine
Copy link
Author

I'm really just hacking around, and removing the method call is working fine for me right now

@orYoffe
Copy link
Owner

orYoffe commented Nov 3, 2020

Hi @skotchpine,

Thanks for sharing the bug!
Could you please share more about your solution and how you solved it?
I believe it was permission control like the other issue you posted #87

@skotchpine
Copy link
Author

@orYoffe Unfortunately, it was less of a solution and more of a workaround...

Screen Shot 2020-11-04 at 1 53 15 PM

I'm glad to keep following up, but you should know that I decided to develop on top of react-native init and a hand-made webpack config to avoid customize-cra and other config complications.

@orYoffe
Copy link
Owner

orYoffe commented Nov 15, 2020

Fixed in v0.16.2

@orYoffe orYoffe closed this as completed Nov 15, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants