callstack / callstack/react-native-fbads

51 duplicate symbols for architecture x86_64

未关闭
#302 5 条评论 2 个 reaction 已指派 0 人 在 GitHub 查看
主要语言
Java
星标
451
派生
147
PR 合并指标
30 天内没有已合并 PR

描述

**Ad Modules**

-Banner Ads
-Interstitial Ads

**Platforms**

-iOS

**Versions**

- react-native-fbads: 7.0.5
- react-native: 0.62.2

**Issue**

When we try to install pod after installing npm package of Facebook ads, There are three pods are installing.
- Installing FBAudienceNetwork (6.5.1)
- Installing FBSDKCoreKit_Basics (11.0.1)
- Installing ReactNativeAdsFacebook (7.0.5)

After this we try to run our app and it throws error in FBSDKUtility and SessionProvider in FBSDKCoreKit_Basics Pod folder. after importing appropriate packages for error, we tried to run again our app. But At build time **FBSDKCoreKit_Basics** conflicts with **FBSDKCoreKit** which is installed for Facebook login functionality.

- Why **FBSDKCoreKit_Basics** is needs to b installed with **FBAudienceNetwork** when the same code and functionality already available in **FBSDKCoreKit** SDK? Due to this conflict and duplicate pods we can not able to ad Facebook ads in our application.

![Screenshot 2021-06-29 at 6 08 10 PM](https://user-images.githubusercontent.com/39688232/123798655-082a8400-d905-11eb-95bd-9a5617d638cf.png)

**Steps to generate issue**
- Create new React-Native project using "expo init [Project-Name]" Command
- Install Package For Facebook Login using "npm install --save react-native-fbsdk" Command
- Install Package For Facebook Audience Network using "npm install --save react-native-fbads" Command
- Install Pods for above commands using "cd ios && pod install" Command
- Run the project using "npm run ios" command. Build will fails due to "Cannot find protocol declaration for 'FBSDKSessionProviding'" See Attached ScreenShot below:

![Screenshot 2021-06-29 at 5 58 03 PM](https://user-images.githubusercontent.com/39688232/123797198-900f8e80-d903-11eb-9432-17b750e656eb.png)

- Fix above issue by importing "FBSDKSessionProviding.h" header file.
- Now You may see another errors like in Below ScreenShot

![Screenshot 2021-06-29 at 6 01 09 PM](https://user-images.githubusercontent.com/39688232/123797677-1035f400-d904-11eb-94dd-d80f6f070532.png)

- Fix above error by removing below imports
**#import "FBSDKBasicUtility.h"
#import "FBSDKTypeUtility.h"**

and add below line after removing above code
**#import **

- Run Project again in iOS
- Now You can see main error which conflict the Both SDK. Error: **51 duplicate symbols for architecture x86_64** See First ScreenShot.

Please look into this asap. We tried almost all solution available in google search.

Thank You

贡献指南

打开贡献指南

调研方向

首先使用列出的 Expo 配置、两个 npm 包、`pod install` 和 `npm run ios` 重现该问题。检查 FBAudienceNetwork、FBSDKCoreKit_Basics 和 FBSDKCoreKit 是如何一起解析的;完成标准是 iOS 应用能够在不出现重复符号的情况下使用 Facebook login 和 audience ads 进行构建。

由索引模型根据 Issue 内容生成。

评估

技术栈
ios, javascript, react-native
领域
build-system, mobile
Issue 类型
缺陷
难度
4/5
预计耗时
3-5 天
活跃度
停滞
描述清晰度
基本清楚
新手友好度
25/100

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。