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

Native Module cannot be null in iOS simulator #12

Closed
milon87 opened this issue Nov 23, 2017 · 9 comments
Closed

Native Module cannot be null in iOS simulator #12

milon87 opened this issue Nov 23, 2017 · 9 comments

Comments

@milon87
Copy link

milon87 commented Nov 23, 2017

can we run in the simulator?
screen shot 2017-11-23 at 12 56 43 pm

@whitedogg13
Copy link
Member

Hi, thanks for spotting this. I will check it out and get back soon.

@whitedogg13
Copy link
Member

Hi, I have tested against iOS simulator for both 9.3+iPhone6 and 11.0+iPhone8, and none of them throw such errors.

By looking into your error stack trace above, have you ever run react-native link react-native-nfc-manager to link the native module? It looks like that you're missing native module^^

@milon87
Copy link
Author

milon87 commented Nov 25, 2017

yes, I have linked. in android, it works perfectly. Ok, I will test again

@whitedogg13
Copy link
Member

Can you check if the ios project is properly linked?

  1. the library project has been added into your Libraries group
  2. the static lib libNfcManager.a should show in the Build Phases -> Link Binary With Libraries section.

If they are not appeared, you can manually link this library for now by following this instruction: https://facebook.github.io/react-native/docs/linking-libraries-ios.html

@milon87
Copy link
Author

milon87 commented Nov 28, 2017

the problem is here. anything I missing?

screen shot 2017-11-28 at 3 25 24 pm

@whitedogg13
Copy link
Member

Hi, I still cannot reproduce this error. Can you check which XCode version you currently use? NFC related functionality only available for XCode 9.

@milon87
Copy link
Author

milon87 commented Nov 29, 2017

OS: Sierra 10.12.6
XCode Version: 8.3.1 (8E1000a)
ok in that case I will update to 9 and i will let you know

@whitedogg13
Copy link
Member

Hi @milon87 any update for this one? I think the XCode 9 is definitely required for NFC development. Hope your upgrading process goes smoothly~

@milon87 milon87 closed this as completed Dec 14, 2017
@milon87
Copy link
Author

milon87 commented Dec 15, 2017

This happens because of Xcode version.
required version 9

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

No branches or pull requests

2 participants