Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

authCode throws error #49

Closed
saravanapriyan95 opened this issue Mar 13, 2019 · 7 comments · Fixed by #55
Closed

authCode throws error #49

saravanapriyan95 opened this issue Mar 13, 2019 · 7 comments · Fixed by #55

Comments

@saravanapriyan95
Copy link

saravanapriyan95 commented Mar 13, 2019

authCode throws error -- null is not an object (evaluating 'RNReaderSDKAuthorization.authorize') when trying to get authorize whith my authCode. Can any one help me to get out of it.....

@StephenJosey
Copy link

Is this for iOS? If so, can you look at the second troubleshooting advice here: https://github.com/square/react-native-square-reader-sdk/blob/master/docs/troubleshooting.md

Please let me know if that doesn't resolve your issue.

@saravanapriyan95
Copy link
Author

I have gone through the process about how to link Square Reader SDK in react-native. As in the below link
https://docs.connect.squareup.com/payments/readersdk/build-on-ios

After completing the above steps. I got an error ( IOS )
fatal error: module 'SquareReaderSDK' not found
@import SquareReaderSDK;

1 error generated.

@StephenJosey
Copy link

So just to confirm, you've went through these steps? https://github.com/square/react-native-square-reader-sdk/blob/master/docs/get-started.md

The steps you posted is for the iOS ReaderSDK, not the React Native SDK. They are different SDKs and are set up differently. Please confirm you've went through the above steps successfully.

@saravanapriyan95
Copy link
Author

Yeah, I have Done the steps above successfully. https://github.com/square/react-native-square-reader-sdk/blob/master/docs/get-started.md

After completing the above steps. I got an error ( IOS )
fatal error: module 'SquareReaderSDK' not found
@import SquareReaderSDK;

1 error generated.

@StephenJosey
Copy link

HI @saravanapriyan95 would you be able to provide a sample repo so we can easily reproduce this error?

@StephenJosey
Copy link

Also just to double-check, you ran the ruby install command inside the ios directory, right? Not the root react-native directory? ReaderSDK needs to be installed in the ios directory, or else you would receive this error.

@SudoPlz
Copy link
Collaborator

SudoPlz commented Apr 18, 2019

If anyone faces the Module 'SquareReaderSDK' not found the issue is probably that the iOS project can't find the SquareReaderSDK.framework file.

In our case we had moved that file in a sub-directory called frameworks, and Xcode couldn't find it.
If you move that file in the root ios dir, the error will be gone.

Just created a PR #54

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
3 participants