yutasuzuki / react-native-record-screen

react-native-record-screen
MIT License
148 stars 39 forks source link

Error cannot read property 'setup' of null #111

Closed Ashot1995 closed 1 year ago

Ashot1995 commented 1 year ago

Hi @yutasuzuki ! I try connect in this package for IOS and have error Error cannot read property 'setup' of null

Screenshot 2023-07-28 at 17 55 53 Screenshot 2023-07-28 at 17 57 25 Screenshot 2023-07-28 at 17 57 37

Can you help me ? How to fix this error ?

Ashot1995 commented 1 year ago

@Seachaos @yutasuzuki @345ml @robrechtme Hi all Can we help me fix that error? Thanks

yutasuzuki commented 1 year ago

@Ashot1995 Hi! Maybe there is not Replaykit. I don't remember ever setting it.

replaykit

I think it used to work without this setting. Maybe it's just me...

If you can solve this problem, please let me know so I can write it in the README.

Seachaos commented 1 year ago

Hi, after you installed the package. Did you build the binary? ( from Xcode or some command like yarn ios )

Ashot1995 commented 1 year ago

@yutasuzuki yes it helped me, you can add it to the readme file, Thank you

yutasuzuki commented 1 year ago

@Seachaos Thanks for your reply. Did you need to set up ReplayKit.framework before? (I don't recall doing so.) If you know, please tell me.

Seachaos commented 1 year ago

@Seachaos Thanks for your reply. Did you need to set up ReplayKit.framework before? (I don't recall doing so.) If you know, please tell me.

No, I don't need set up ReplayKit.framework to link binary My iOS build is so far so good.

yutasuzuki commented 1 year ago

@Seachaos I tried with previous versions. It seems that ReplayKit.framework has been necessary since react-native-record-screen@0.6.0. It's likely that ReplayKit.framework became necessary when I implemented a feature to prevent the process from stopping in the background.

When I checked, I was troubleshooting, so I'm sure I had made this setting. Thank you.

robrechtme commented 1 year ago

@Ashot1995 did you install pods?

npx pod-install
Seachaos commented 1 year ago

Hi @yutasuzuki I got time to test it with new project. You are right.

I create new proejct, it's need ReplayKit.framework Here is my steps:

Ashot1995 commented 1 year ago

@robrechtme Yes, of course, as we already found out, the problem was for ReplayKit.framework

Ashot1995 commented 1 year ago

everything is working now, thanks everyone

345ml commented 1 year ago

Good job!