No podspec found for `React-Core` in `../node_modules/react-native/React`

前端 未结 6 2356
说谎
说谎 2021-02-19 01:32

I\'m using React Native. I get this issue when I try to upload pods. I\'ve successfully installed node_modules, but I\'m getting this problem. What is the problem? If we delete

6条回答
  •  南方客
    南方客 (楼主)
    2021-02-19 02:21

    Eric's answer is probably the root cause of the problem, using an RN Podfile layout from a previous/different version of RN. I got the same error when moving from 0.62 to 0.63.

    For people going from 0.62 to 0.63, the upgrade helper shows that the very verbose RN Podfile boilerplate that Eric cites is now more succinct (see Som's response - although there are a few more changes).

    Personally, I created a fresh react-native project with 0.63 and compared it to what I had. If I had known about the upgrade helper I would have used that instead.

提交回复
热议问题