mrousavy / react-native-tracking-transparency

🕵️ A React Native Library for interacting with the tracking API from iOS 14.
MIT License
239 stars 25 forks source link

Link react_native_tracking_transparency (arm64) 0.2 seconds * Undefined symbol: _RCTRegisterModule #23

Open niloufarzahiri92 opened 2 years ago

niloufarzahiri92 commented 2 years ago

I am trying to run my react-native project in Xcode(ios) and I am faced with this error (run in real iPhone) :

Link react_native_tracking_transparency (arm64) 0.2 seconds * Undefined symbol: _RCTRegisterModule** My project can run on Android, but on iOS, it could not run. I should mention that neither can run in the simulator nor on a real iPhone, and the strange thing is that I can archive it and I can do it via test flight. When I install the test flight application it works well, but I can not run the project.

I uninstall **react_native_tracking_transparency ** to see if the error is related to this package but as soon as I uninstall that, the same error(Undefined symbol: _RCTRegisterModule) happens but with another package (react_native_spinkit), and I continue to uninstall also SpinKit package and again the error happens with another package. Also, it could not run in the previous Xcode version (13), when I updated my Xcode (14.1) for the first time after updating Xcode the app could run in Xcode, but then again the error happened and could not run the app.

my system config: Mac mini,chip apple M1,macOS:Ventura 13

Xcode: 14.1

react-native-cli: 2.0.1 react-native: 0.68.1

I tried different solutions but none of them works for me. Thanks in advance for any help from you.

kabus202 commented 2 years ago

@niloufarzahiri92 did you find any solution? having exact the same issue

niloufarzahiri92 commented 2 years ago

@niloufarzahiri92 did you find any solution? having exact the same issue

unfortunately no,please let me know if you find any solutions

tastafur commented 2 years ago

Hi, i have some issue. @mrousavy @danilobuerger any idea why it happens?

tastafur commented 2 years ago

taking the code to my project works perfectly but installing it, it does not work, I do not know why

edwinkcw commented 1 year ago

this possibility relates to https://github.com/facebook/react-native/issues/29633#issuecomment-694187116

I update the podspec manually and use patch-package to fix the issue

edwinkcw commented 1 year ago

I have created a pull request https://github.com/mrousavy/react-native-tracking-transparency/pull/24

niloufarzahiri92 commented 1 year ago

I finally fixed the problem these are the steps: 1)rm -fr node_modules/ 2) rm -fr yarn.lock 3)cd ios 4) rm -fr Pods 5)rm -fr podfile.lock 6)rm -fr YOURPOJECT.xcworkspace 7) cd .. 8) yarn install 9) cd ios 10) pod install 11)pod update ( this is the magic, updating the pod fixes the issue)

I explained in detail maybe somebody is a beginner