Find Facebook SDK Version on iOS

后端 未结 10 941
暖寄归人
暖寄归人 2020-12-04 18:51

I know I\'m using the latest version (v3.2.1). But I want find it in header or programmatically.

In iOS I can\'t find version number in FacebookSDK.framework headers

10条回答
  •  粉色の甜心
    2020-12-04 19:26

    If you are using pods you can check in the Info.plist file:

    "Pods/FBSDKCoreKit/Support Files/Info.plist"

    The version is the key CFBundleShortVersionString

    My version was 4.18.0

    Example:

    
    
    
    
      CFBundleDevelopmentRegion
      en
      CFBundleExecutable
      ${EXECUTABLE_NAME}
      CFBundleIdentifier
      ${PRODUCT_BUNDLE_IDENTIFIER}
      CFBundleInfoDictionaryVersion
      6.0
      CFBundleName
      ${PRODUCT_NAME}
      CFBundlePackageType
      FMWK
      CFBundleShortVersionString
      4.18.0
      CFBundleSignature
      ????
      CFBundleVersion
      ${CURRENT_PROJECT_VERSION}
      NSPrincipalClass
      
    
    
    

提交回复
热议问题