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

Build fails on iOS with 1.0.5 #38

Closed
jsyrjala opened this issue Aug 15, 2017 · 1 comment
Closed

Build fails on iOS with 1.0.5 #38

jsyrjala opened this issue Aug 15, 2017 · 1 comment

Comments

@jsyrjala
Copy link

jsyrjala commented Aug 15, 2017

Version

1.0.5 (version 1.0.4 is not affected)

Platform

iOS

OS version

MacOS

Steps to reproduce

  1. Create a new project using react-native init projectname
  2. Add react-native-beacons-manager and link it.
  3. Add following to index.ios.js
import Beacons from 'react-native-beacons-manager'
  1. Start ios simulator react-native run-ios

Expected behavior

iOS simulator should start without errors

Actual behavior

iOS simulator starts and shows this error:

undefined is not an object  (evaluating 'beaconsAndroid.ARMA_RSSI_FILTER')

module.android.js:23:40

If I remove module.android.js file and all references to it, the build will work.

#28 seems to be related.

@jsyrjala jsyrjala changed the title Build fails on iOS Build fails on iOS with 1.0.5 Aug 15, 2017
@MacKentoch
Copy link
Owner

Thank you @jsyrjala for this detailed issue.

That was very helpful.
I did not loose time going a wrong way to resolve it.

It is nearly related to #28 but the origin is more subtile / tricky.

It is due to a real mess with ES6 import/export in index.js and js modules files.

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