Closed habiiev closed 2 years ago
I tried manually applying the fix and archiving the pod, then setting the RCT-Folly
spec source to fetch local version of it (that has the patch) in node_modules/react-native/third-party-podspecs/RCT-Folly.podspec
:
spec.source = { :http => 'file:/Users/user/podbuilder_rn_66/ios/PodBuilder/custom/RCT-Folly.zip', :flatten => true }
After that the podbuilder built successfully, but the after trying to run the app in xcode, it gave the following error:
Without the podbuilder the bare react native app runs successfully.
Thanks for the report! The react-native support is experimental and is done best effort since the setup tends to change significantly from one version to the other, as you reported in this issue. I will do my best to take a look at this but it may take a while. In the meantime if you find any workaround let me know or even better if you want to contribute with a PR.
I made some changes and at least on a sample using the latest version of react-native it seems to successfully compile.
Try installing latest version:
$ git clone -b feature/rn_support https://github.com/Subito-it/PodBuilder.git
$ cd PodBuilder
$ sudo rake install
Let me know if this fixes you problem
oh thanks! I'll give that a shot
Sorry for the late reply
I kind of gave up at that time as other more important stuff came up
Now I tried it again, with version 68.1, and it didn't work, although it's now another issue
This is the error I am getting:
It's related to this react-native issue
To reproduce just create an empty react-native project, install any dependency that has native ios code and then configure pod-builder:
Steps to reproduce:
npx react-native init rnapp
cd rnapp
npm install react-native-reanimated --save
cd ios
pod_builder init
pod_builder build_all
Without pod builder, everything works fine right now
I don't really know where to look for the cause of this error, I would be glad to help if you could point me in the correct direction :)
Versions: Xcode 13.3.1 pod_builder 4.4.1 Builds for ios 11 and 14
After we tried to update our application to use the latest react-native version we got a problem with
RCT-Folly
pod.Also, there are some problems in the
Podfile
that is being generated by pod_builder.See commits:
Steps to reproduce:
npx react-native init rnapp
cd rnapp/ios
pod_builder init
pod_builder build_all
Then this error is being displayed in the Xcode:
The problem is well known in the react-native community, here is the issue regarding this: https://github.com/facebook/flipper/issues/834
There is the fix for this in the original
Podfile
:Specifically this line:
But as far as I understand
podbuilder
does not run this as a part ofpost_install
hook?Here is the link with react-native and
podbuilder
setup: https://github.com/habiiev/podbuilder_rn_661To see the error just run
pod_builder build_all
in theios
folderXcode - 13.0 (13A233) macOS - 11.6 Trying to build for ios 15