react-native-matomo icon indicating copy to clipboard operation
react-native-matomo copied to clipboard

Integration issues

Open leonshenprojects opened this issue 5 years ago • 7 comments

Hi there!

I'm trying to follow the docs to integrate react-native-matomo into my project, but running into issues.

These are the steps that I followed.

  1. I ran yarn add react-native-matomo (This was not outlined in the docs but I assume necessary)
  2. Next added this line to Podfile in the ios folder: pod 'BNFMatomo', :podspec => '../node_modules/react-native-matomo/BNFMatomo.podspec'
  3. In the ios folder I ran pod install. This is when I got the error that BNFMatomo.podspec was missing from the node_module. Is this a known issue?? This would be a nightmare when automating builds.
  4. Seeing as that was the case, I downloaded BNFMatomo.podspec from the repo and manually added it to see how much further I could get.
  5. I ran pod install again and this time it was successful.
  6. Now I tried to build the ios app. These are the errors that I got:

Screen Shot 2020-06-04 at 12 18 55 PM I solved this one by running yarn react-native unlink react-native-matomo which undid step 2... Is this right?

Screen Shot 2020-06-04 at 12 22 10 PM

Please let me know if I'm doing this correctly!

leonshenprojects avatar Jun 04 '20 10:06 leonshenprojects

Hi @leonshenprojects did you manage to solve the last issue?

MrSimsek avatar Jun 17 '20 15:06 MrSimsek

@MrSimsek unfortunately no... this is still is still open

leonshenprojects avatar Jul 03 '20 10:07 leonshenprojects

In my case, I had another target for OneSignal, and I had to create an empty Swift file in that to create a bridging-header also.

MrSimsek avatar Jul 03 '20 10:07 MrSimsek

Hello, does anyone manage this issue ? Thanks a lot!

sarabw avatar Nov 02 '20 13:11 sarabw

I am facing the same problem. Was anybody able to resolve this?

niftytushar avatar Dec 14 '20 10:12 niftytushar

i tried integrating, but getting React/RCTAssert not found issue Its not loaded in right way

krakzk avatar Jan 05 '21 07:01 krakzk

I detailed how I manage to integrate matomo in #60

gabimoncha avatar Feb 24 '21 14:02 gabimoncha