braze-inc / braze-react-native-sdk

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

[Bug]: ios real device build fail #237

Closed yhl0519 closed 9 months ago

yhl0519 commented 9 months ago

Which Platforms?

iOS

Which React Native Version?

0.71.13

Which @braze/react-native-sdk SDK version?

8.1.0

Repro Rate

100%

Steps To Reproduce

  1. completed the setup according to this docs.
  2. ios simulator build and running success.
  3. ios real device build success. but, running fail. 스크린샷 2023-11-29 오후 2 48 06

Expected Behavior

real device build and running success

Actual Incorrect Behavior

app crash and not running

Verbose Logs

No response

Additional Information

xcode version: 15.0.1 devices ios version: 17.1.1

jerielng commented 9 months ago

Hey @yhl0519, thanks for reporting this. It looks like there's a crash in our HTTPClient code in our underlying Swift SDK. We'll need more details to be able to investigate as this isn't reproducible from our end. Could you send the following details below to our support team at support@braze.com?

Could you share a little more information on which method is causing this crash? (It should be in the side bar if you expand it a little more).

Additionally, could you also share some additional details around this crash? Does it happen 100% of the time? (i.e. are you able to reproduce this when you uninstall and reinstall?)

Finally, could you also share the URL string you configured in your Braze integration for the endpoint? There is most likely a failure to build a URL object in this piece of code, but it would help to know what URL string the app is trying to pass in.

yhl0519 commented 9 months ago

sorry.. There was a typo in the part where the API key was received.😅 I will close this PR.

jerielng commented 9 months ago

@yhl0519 Thanks for the update! Great to hear that it has been resolved.

Out of curiosity, was it a typo in the API key or the endpoint? Any additional information you can provide about what led to this issue would be a big help to prevent similar issues from happening in the future!

yhl0519 commented 9 months ago

@jerielng The problem was that I was not familiar with Object-C. @"{BRAZE_API_KEY}" -> @"BRAZE_API_KEY" 😂