facebook / facebook-ios-sdk

Used to integrate the Facebook Platform with your iOS & tvOS apps.
https://developers.facebook.com/docs/ios
Other
7.8k stars 3.56k forks source link

Cannot build Xcode Project After 17.0.0 version #2422

Open issuemine opened 6 months ago

issuemine commented 6 months ago

Checklist before submitting a bug report

Xcode version

14.4.1

Facebook iOS SDK version

17.0.1

Dependency Manager

SPM

SDK Framework

Core

Goals

The project structure is built by including the Static Library (.a File) created within the team in the main project, and both have Facebook SDK as a dependency.

The goal is to build the main project.

Expected results

Build Successfully

Actual results

Up to version 16.x.x, the build worked without problems just by upgrading the version, but from version 17.0.0 onwards, the following error occurs.

  1. Duplicate Symbols
  2. Multiple command produce /{Path of DerivedData}/~~~

The project structure is built by including the Static Library created within the team in the main project, and both have Facebook SDK as a dependency. When adding dependency with SPM, error (1) above appears and Static Library, When adding the Dynamic Static Library manually, error (2) above appears.

Steps to reproduce

After upgrading the Facebook SDK version in the Xcode project, the build does not work.

Up to version 16.x.x, the build worked without problems just by upgrading the version, but from version 17.0.0 onwards, the following error occurs.

  1. Duplicate Symbols
스크린샷 2024-05-16 오후 5 06 17
  1. Multiple command produce /{Path of DerivedData}/~~~
스크린샷 2024-05-16 오후 4 47 55

The project structure is built by including the Static Library created within the team in the main project, and both have Facebook SDK as a dependency. When adding dependency with SPM, error (1) above appears and When adding the Dynamic Library, Static Library manually, error (2) above appears.

Both are written in Objective-C language.

Even if I change various build settings, the same problem occurs.

Is there any solution?

Code samples & details

No response

kobe1941 commented 5 months ago

use the latest xcode version

Ron-Samkulami commented 4 months ago

Official SDK of version 17.0.1 was built with Xcode15.3, try update Xcode or build SDK by yourself