未为 -lBranch-SDK 找到反应本机 xcode 库 [英] react native xcode library not found for -lBranch-SDK

查看:22
本文介绍了未为 -lBranch-SDK 找到反应本机 xcode 库的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已经反应了原生 v0.49.使用此链接安装 react-native-branch 后链接到 react-native-branch,我尝试使用 xcode 运行我得到了错误

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

此外,当我运行 react-native-link 时,我得到

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

react-native-branch ERR! Failed to add file to project

推荐答案

Go in Xcode > Targets > Your App > 构建阶段 > 将二进制文件与库链接.
选择 libBranch-SDK.a,然后点击列表底部的 - (减号).

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.

这篇关于未为 -lBranch-SDK 找到反应本机 xcode 库的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆