Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Undefined symbols #2503

Closed
5 tasks done
gerchicov-vg opened this issue Nov 18, 2024 · 1 comment
Closed
5 tasks done

Undefined symbols #2503

gerchicov-vg opened this issue Nov 18, 2024 · 1 comment

Comments

@gerchicov-vg
Copy link

Checklist before submitting a bug report

Xcode version

15.4

Facebook iOS SDK version

16.3.1, 17.4.0

Dependency Manager

CocoaPods

SDK Framework

Core

Goals

analytics collecting, ads

Expected results

project compiled successfully

Actual results

ld: warning: Could not find or use auto-linked library 'swift_Builtin_float': library 'swift_Builtin_float' not found
ld: warning: Could not find or use auto-linked library 'swift_errno': library 'swift_errno' not found
ld: warning: Could not find or use auto-linked library 'swift_math': library 'swift_math' not found
ld: warning: Could not find or use auto-linked library 'swift_signal': library 'swift_signal' not found
ld: warning: Could not find or use auto-linked library 'swift_stdio': library 'swift_stdio' not found
ld: warning: Could not find or use auto-linked library 'swift_time': library 'swift_time' not found
ld: warning: Could not find or use auto-linked library 'swiftsys_time': library 'swiftsys_time' not found
ld: warning: Could not find or use auto-linked library 'swiftunistd': library 'swiftunistd' not found
ld: warning: Could not find or use auto-linked framework 'CoreAudioTypes': framework 'CoreAudioTypes' not found
ld: warning: Could not find or use auto-linked framework 'UnitySwiftProtobuf': framework 'UnitySwiftProtobuf' not found
Undefined symbols for architecture arm64:
  "__swift_FORCE_LOAD_$_swift_Builtin_float", referenced from:
      __swift_FORCE_LOAD_$_swift_Builtin_float_$_FBAudienceNetworkSwift in FBAudienceNetwork[arm64][2](FBAudienceNetworkSwift.o)
      __swift_FORCE_LOAD_$_swift_Builtin_float_$_FBAdFilterEngine in FBAudienceNetwork[arm64][3](FBAdFilterEngine.o)
      __swift_FORCE_LOAD_$_swift_Builtin_float_$_FBAdMAISKOverlayManager in FBAudienceNetwork[arm64][4](FBAdMAISKOverlayManager.o)
      __swift_FORCE_LOAD_$_swift_Builtin_float_$_FBAudienceNetwork in FBAudienceNetwork[arm64][406](FBAudienceNetwork.o)
  "__swift_FORCE_LOAD_$_swift_errno", referenced from:
      __swift_FORCE_LOAD_$_swift_errno_$_FBAudienceNetworkSwift in FBAudienceNetwork[arm64][2](FBAudienceNetworkSwift.o)
      __swift_FORCE_LOAD_$_swift_errno_$_FBAdFilterEngine in FBAudienceNetwork[arm64][3](FBAdFilterEngine.o)
      __swift_FORCE_LOAD_$_swift_errno_$_FBAdMAISKOverlayManager in FBAudienceNetwork[arm64][4](FBAdMAISKOverlayManager.o)
      __swift_FORCE_LOAD_$_swift_errno_$_FBAudienceNetwork in FBAudienceNetwork[arm64][406](FBAudienceNetwork.o)
  "__swift_FORCE_LOAD_$_swift_math", referenced from:
      __swift_FORCE_LOAD_$_swift_math_$_FBAudienceNetworkSwift in FBAudienceNetwork[arm64][2](FBAudienceNetworkSwift.o)
      __swift_FORCE_LOAD_$_swift_math_$_FBAdFilterEngine in FBAudienceNetwork[arm64][3](FBAdFilterEngine.o)
      __swift_FORCE_LOAD_$_swift_math_$_FBAdMAISKOverlayManager in FBAudienceNetwork[arm64][4](FBAdMAISKOverlayManager.o)
      __swift_FORCE_LOAD_$_swift_math_$_FBAudienceNetwork in FBAudienceNetwork[arm64][406](FBAudienceNetwork.o)
  "__swift_FORCE_LOAD_$_swift_signal", referenced from:
      __swift_FORCE_LOAD_$_swift_signal_$_FBAudienceNetworkSwift in FBAudienceNetwork[arm64][2](FBAudienceNetworkSwift.o)
      __swift_FORCE_LOAD_$_swift_signal_$_FBAdFilterEngine in FBAudienceNetwork[arm64][3](FBAdFilterEngine.o)
      __swift_FORCE_LOAD_$_swift_signal_$_FBAdMAISKOverlayManager in FBAudienceNetwork[arm64][4](FBAdMAISKOverlayManager.o)
      __swift_FORCE_LOAD_$_swift_signal_$_FBAudienceNetwork in FBAudienceNetwork[arm64][406](FBAudienceNetwork.o)
  "__swift_FORCE_LOAD_$_swift_stdio", referenced from:
      __swift_FORCE_LOAD_$_swift_stdio_$_FBAudienceNetworkSwift in FBAudienceNetwork[arm64][2](FBAudienceNetworkSwift.o)
      __swift_FORCE_LOAD_$_swift_stdio_$_FBAdFilterEngine in FBAudienceNetwork[arm64][3](FBAdFilterEngine.o)
      __swift_FORCE_LOAD_$_swift_stdio_$_FBAdMAISKOverlayManager in FBAudienceNetwork[arm64][4](FBAdMAISKOverlayManager.o)
      __swift_FORCE_LOAD_$_swift_stdio_$_FBAudienceNetwork in FBAudienceNetwork[arm64][406](FBAudienceNetwork.o)
  "__swift_FORCE_LOAD_$_swift_time", referenced from:
      __swift_FORCE_LOAD_$_swift_time_$_FBAudienceNetworkSwift in FBAudienceNetwork[arm64][2](FBAudienceNetworkSwift.o)
      __swift_FORCE_LOAD_$_swift_time_$_FBAdFilterEngine in FBAudienceNetwork[arm64][3](FBAdFilterEngine.o)
      __swift_FORCE_LOAD_$_swift_time_$_FBAdMAISKOverlayManager in FBAudienceNetwork[arm64][4](FBAdMAISKOverlayManager.o)
      __swift_FORCE_LOAD_$_swift_time_$_FBAudienceNetwork in FBAudienceNetwork[arm64][406](FBAudienceNetwork.o)
  "__swift_FORCE_LOAD_$_swiftsys_time", referenced from:
      __swift_FORCE_LOAD_$_swiftsys_time_$_FBAudienceNetworkSwift in FBAudienceNetwork[arm64][2](FBAudienceNetworkSwift.o)
      __swift_FORCE_LOAD_$_swiftsys_time_$_FBAdFilterEngine in FBAudienceNetwork[arm64][3](FBAdFilterEngine.o)
      __swift_FORCE_LOAD_$_swiftsys_time_$_FBAdMAISKOverlayManager in FBAudienceNetwork[arm64][4](FBAdMAISKOverlayManager.o)
      __swift_FORCE_LOAD_$_swiftsys_time_$_FBAudienceNetwork in FBAudienceNetwork[arm64][406](FBAudienceNetwork.o)
  "__swift_FORCE_LOAD_$_swiftunistd", referenced from:
      __swift_FORCE_LOAD_$_swiftunistd_$_FBAudienceNetworkSwift in FBAudienceNetwork[arm64][2](FBAudienceNetworkSwift.o)
      __swift_FORCE_LOAD_$_swiftunistd_$_FBAdFilterEngine in FBAudienceNetwork[arm64][3](FBAdFilterEngine.o)
      __swift_FORCE_LOAD_$_swiftunistd_$_FBAdMAISKOverlayManager in FBAudienceNetwork[arm64][4](FBAdMAISKOverlayManager.o)
      __swift_FORCE_LOAD_$_swiftunistd_$_FBAudienceNetwork in FBAudienceNetwork[arm64][406](FBAudienceNetwork.o)
ld: symbol(s) not found for architecture arm64
clang: error: linker command failed with exit code 1 (use -v to see invocation)

Undefined symbol: __swift_FORCE_LOAD_$_swift_Builtin_float

Undefined symbol: __swift_FORCE_LOAD_$_swift_errno

Undefined symbol: __swift_FORCE_LOAD_$_swift_math

Undefined symbol: __swift_FORCE_LOAD_$_swift_signal

Undefined symbol: __swift_FORCE_LOAD_$_swift_stdio

Undefined symbol: __swift_FORCE_LOAD_$_swift_time

Undefined symbol: __swift_FORCE_LOAD_$_swiftsys_time

Undefined symbol: __swift_FORCE_LOAD_$_swiftunistd

Linker command failed with exit code 1 (use -v to see invocation)


Steps to reproduce

No response

Code samples & details

Podfile:

# Uncomment the next line to define a global platform for your project
 platform :ios, '15.0'

target 'SomeProject' do
  # Comment the next line if you don't want to use dynamic frameworks
  use_frameworks!

  # Pods for VideoChat_Red_New

  #General
  pod 'Starscream'
  pod 'OTXCFramework'
  pod 'IQKeyboardManagerSwift'
  pod 'NVActivityIndicatorView'
  pod 'Kingfisher'
  pod 'AlamofireNetworkActivityLogger'
  pod 'lottie-ios', '3.4.0'
  pod 'DeviceKit'
  pod 'SwiftGen'
  pod 'RangeSeekSlider'
  pod 'Moya'
  pod 'RealmSwift'
  pod 'TTTAttributedLabel'

  #Metrics
  pod 'Firebase'
  pod 'Firebase/Analytics'
  pod 'Firebase/Crashlytics'
  pod 'Firebase/RemoteConfig'
  pod 'FBSDKCoreKit'
  pod 'YandexMobileMetrica'
  pod 'AppsFlyerFramework'
  pod 'Amplitude-iOS'
  
  #Ads
  pod 'Google-Mobile-Ads-SDK'
  pod 'AppLovinSDK'
  pod 'AppLovinMediationGoogleAdManagerAdapter'
  pod 'AppLovinMediationInMobiAdapter'
  pod 'AppLovinMediationVungleAdapter'
  pod 'AppLovinMediationFacebookAdapter'
  pod 'AppLovinMediationGoogleAdapter'
  pod 'AppLovinMediationIronSourceAdapter'
  pod 'AppLovinMediationMintegralAdapter'
  pod 'AppLovinMediationByteDanceAdapter'
  pod 'AppLovinMediationUnityAdsAdapter'
  pod 'AppLovinMediationFyberAdapter'
  pod 'AppLovinMediationCSJAdapter'
end

# post install
post_install do |installer|
  
  installer.generated_projects.each do |project|
    project.targets.each do |target|
      target.build_configurations.each do |config|
        config.build_settings['IPHONEOS_DEPLOYMENT_TARGET'] = '15.0'
      end
    end
  end
end
@gerchicov-vg
Copy link
Author

Figured out that it is not caused by FBSDKCoreKit but by AppLovinMediationFacebookAdapter which relates to another repo.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant