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

Facebook SDK: 'DEBUG' is not defined, evaluates to 0/Could not build module 'FBSDKCoreKit' #2339

Open itsmejohndoe opened 9 months ago

itsmejohndoe commented 9 months ago

Checklist before submitting a bug report

Xcode version

15.2

Facebook iOS SDK version

14.1.0

Dependency Manager

SPM

SDK Framework

Core, Auth, Share

Goals

Update Facebook SDK (Core, Auth, Share) to 14.1.0.

Expected results

Updating the SDK to 14.1.0 works without breaking the build process.

Actual results

After updating the Facebook SDK using SPM multiples errors are thrown and the project became unable to build.

FBSDKApplicationDelegate.h:26:6 'DEBUG' is not defined, evaluates to 0 FBSDKApplicationDelegate.h:31:5 'DEBUG' is not defined, evaluates to 0 FBSDKInternalUtility.h:31:6 'DEBUG' is not defined, evaluates to 0 FBSDKSettings.h:20:6 'DEBUG' is not defined, evaluates to 0 FBSDKShareKit-Swift.h:1156:9 Could not build module 'FBSDKCoreKit'

Screenshot 2024-02-07 at 13 55 01

Steps to reproduce

Install Facebook SDK (Core, Auth, Share) via SPM.