Hacktoberfest 2026: những issue maintainer đã đánh dấu cho tháng Mười, đang mở và phù hợp người mới. Xem issue Hacktoberfest

51 duplicate symbols for architecture x86_64

Đang mở
#302 5 bình luận 2 reaction 0 người được giao Xem trên GitHub

Chưa có ai nhận issue này.

Đánh giá

Độ khó
4/5
Thời gian dự kiến
3-5 ngày
Mức phù hợp với người mới
25/100
Loại issue
Lỗi
Độ rõ ràng
Khá rõ ràng
Mức độ hoạt động
Đình trệ
Công nghệ
ios, javascript, react-native
Lĩnh vực
build-system, mobile

Hướng nghiên cứu

Bắt đầu bằng cách tái hiện vấn đề với thiết lập Expo được nêu, cả hai gói npm, pod install và npm run ios. Kiểm tra cách FBAudienceNetwork, FBSDKCoreKit_Basics và FBSDKCoreKit được phân giải cùng nhau; được coi là hoàn tất khi ứng dụng iOS build được với Facebook login và audience ads mà không có symbol trùng lặp.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Mô tả

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

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

  • 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

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

and add below line after removing above code
#import <FBSDKCoreKit_Basics/FBSDKCoreKit_Basics.h>

  • 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

Ngôn ngữ chính
Java
Star
451
Fork
146
Chỉ số merge pull request
Không có pull request nào được merge trong 30 ngày

Chuẩn bị môi trường

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của callstack/react-native-fbads

Tất cả issue của callstack/react-native-fbads

Issue tương tự

Thêm issue về Java

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.