[Solved] react native xcode library not found for -lBranch-SDK

I have react native v0.49.
After installing react-native-branch with this link
link to react-native-branch, I try to run with xcode and I get the error

ld: library not found for -lBranch-SDK

in addition,when I run react-native-link I get

react-native-branch ERR! Failed to add file to project
Enquirer: Manspof

||

Solution #1:

Go in Xcode > Targets > Your App > Build Phases > Link Binary With Library.
Select libBranch-SDK.a then click on the (minus sign) at the bottom of the list.

Respondent: kytwb

The answers/resolutions are collected from stackoverflow, are licensed under cc by-sa 2.5 , cc by-sa 3.0 and cc by-sa 4.0 .

Leave a Reply

Your email address will not be published.