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

Expo - Can't build custom dev client for iOS

Open nzhenry opened this issue 2 years ago • 6 comments

When I run eas build --profile development --platform ios on an Expo project with react-native-kontaktio included as a dependency, it fails on the fastlane step.

Here's the relevant log output:

› Compiling react-native-kontaktio Pods/KontaktBeacons » KontaktBeacons.m

❌  (node_modules/react-native-kontaktio/ios/KontaktBeacons.m:157:46)

  155 |     if (dict[@"minor"] == nil) {
  156 |         if (dict[@"major"] == nil) {
> 157 |             return [self createBeaconRegion:[RCTConvert NSString:dict[@"identifier"]]
      |                                              ^ declaration of 'RCTConvert' must be imported from module 'React.RCTConvert' before it is required

Can anyone shed any light on this please? It'd be great if I could use this library in my app without having to eject from the Expo managed workflow.

nzhenry avatar Apr 28 '22 21:04 nzhenry

I've created a sample project which will demonstrate the error if you run eas build --profile development --platform ios

https://github.com/nzhenry/expo-ibeacon-test

nzhenry avatar Apr 29 '22 01:04 nzhenry

I'm also getting this error with the bare workflow setup of expo.

yhanssens avatar Apr 29 '22 12:04 yhanssens

@nzhenry I found a fork from someone who fixed this issue: https://github.com/joaojusto/react-native-kontaktio

yhanssens avatar May 16 '22 10:05 yhanssens

@yhanssens Thank you! That fork works in managed workflow with a custom dev client.

nzhenry avatar Jun 03 '22 21:06 nzhenry

@andrekovac @JonasWho ^^ An easy fix for the issue in Expo. Any chance you could publish a new version?

nzhenry avatar Jun 03 '22 21:06 nzhenry

@nzhenry I asked the creator of the fork which @yhanssens linked for more information about his additions (see this question in his commit

We are not using react-native-kontaktio with Expo (and a custom dev client for that matter). However, PRs are of course very welcome.

andrekovac avatar Sep 05 '22 10:09 andrekovac