braze-inc / braze-react-native-sdk

Public repo for the Braze React Native SDK
https://www.braze.com
Other
64 stars 84 forks source link

IOS build fails when installed with react native maps. #182

Closed a-eid closed 1 year ago

a-eid commented 2 years ago

the package seem to install fine, but when combined with either flipper or RN maps it fails.


RUN_FASTLANE] › Compiling react-native-maps Pods/react-native-google-maps » AIRGoogleMapURLTileManager.m
[RUN_FASTLANE] › Compiling react-native-maps Pods/react-native-google-maps » AIRGoogleMapPolylineManager.m
[RUN_FASTLANE]
❌  (../../../../../../../../private/var/folders/pk/1chfqnts1hz7gkfnp8j0jt380000gp/T/eas-build-local-nodejs/61de07f8-a73b-47f1-a110-db43204fefb6/build/node_modules/react-native-maps/ios/AirGoogleMaps/AIRGoogleMapPolylineManager.m:17:9)

  15 | #import <React/RCTViewManager.h>
  16 | #import <React/UIView+React.h>
> 17 | #import "RCTConvert+AirMap.h"
     |         ^ 'RCTConvert+AirMap.h' file not found
  18 | #import "AIRGoogleMapPolyline.h"
  19 |
  20 | @interface AIRGoogleMapPolylineManager()

[RUN_FASTLANE]
⚠️  (/var/folders/pk/1chfqnts1hz7gkfnp8j0jt380000gp/T/eas-build-local-nodejs/61de07f8-a73b-47f1-a110-db43204fefb6/build/ios/build/Build/Intermediates.noindex/Pods.build/Debug-iphonesimulator/react-native-google-maps.build/Objects-normal/x86_64/AIRGoogleMapPolylineManager.dia:1:1)

CompileC /var/folders/pk/1chfqnts1hz7gkfnp8j0jt380000gp/T/eas-build-local-nodejs/61de07f8-a73b-47f1-a110-db43204fefb6/build/ios/build/Build/Intermediates.noindex/Pods.build/Debug-iphonesimulator/react-native-google-maps.build/Objects-normal/x86_64/AIRGoogleMapPolyline.o...
^ Could not read serialized diagnostics file: error(in target 'react-native-google-maps' from project 'Pods')
(warning truncated)
[RUN_FASTLANE]
❌  (../../../../../../../../private/var/folders/pk/1chfqnts1hz7gkfnp8j0jt380000gp/T/eas-build-local-nodejs/61de07f8-a73b-47f1-a110-db43204fefb6/build/node_modules/react-native-maps/ios/AirGoogleMaps/AIRGoogleMapPolyline.h:12:9)

  10 | #import <React/RCTBridge.h>
  11 | #import "AIRGMSPolyline.h"
> 12 | #import "AIRMapCoordinate.h"
     |         ^ 'AIRMapCoordinate.h' file not found
  13 | #import "AIRGoogleMapMarker.h"
  14 |
  15 | @interface AIRGoogleMapPolyline : UIView

[RUN_FASTLANE] › Compiling react-native-maps Pods/react-native-google-maps » AIRGoogleMapPolygonManager.m
[RUN_FASTLANE]
❌  (../../../../../../../../private/var/folders/pk/1chfqnts1hz7gkfnp8j0jt380000gp/T/eas-build-local-nodejs/61de07f8-a73b-47f1-a110-db43204fefb6/build/node_modules/react-native-maps/ios/AirGoogleMaps/AIRGoogleMapPolygonManager.m:16:9)

  14 | #import <React/RCTViewManager.h>
  15 | #import <React/UIView+React.h>
> 16 | #import "RCTConvert+AirMap.h"
     |         ^ 'RCTConvert+AirMap.h' file not found
  17 | #import "AIRGoogleMapPolygon.h"
  18 |
  19 | @interface AIRGoogleMapPolygonManager()

[RUN_FASTLANE] › Compiling react-native-maps Pods/react-native-google-maps » AIRGoogleMapPolygon.m
[RUN_FASTLANE] › Compiling react-native-maps Pods/react-native-google-maps » AIRGoogleMapOverlayManager.m
[RUN_FASTLANE] › Compiling react-native-maps Pods/react-native-google-maps » AIRGoogleMapOverlay.m
Bucimis commented 2 years ago

@a-eid these build errors don't seem to involve the Braze SDK. How do you think they are related?

a-eid commented 2 years ago

@a-eid these build errors don't seem to involve the Braze SDK. How do you think they are related?

these errors started appearing only when we introduced appboy-react-sdk to our project.

Repro

the lib seem to be failing with flipper as well.

a-eid commented 2 years ago

@Bucimis any idea what the issue could be ?

Bucimis commented 2 years ago

@a-eid For "file not found" issues, I would take a look at the Xcode compilation path before and after adding the SDKs

wesleyorbin commented 1 year ago

Closing due to inactivity

PerezCodeT commented 9 months ago

I have that same problem, I installed @braze/react-native-sdk and @braze/expo-plugin and now I have that problem related to react-native-maps, any solution?

hokstuff commented 9 months ago

Hi @PerezCodeT,

Since this is an old thread, can you reach out to support@braze.com with more context of your situation, including:

Thanks!