facebook / facebook-sdk-for-unity

The facebook sdk for unity.
https://developers.facebook.com/docs/unity
Other
493 stars 257 forks source link

Can't publish IPA because of incomplete bitcode after update to FB SDK 9.0.0 #511

Closed artyom-kolesnikov closed 3 years ago

artyom-kolesnikov commented 3 years ago

Checklist

Environment

Describe your dev environment here, giving as many details as possible. If you have them, make sure to include:

Goals

Upload iOS application with latest FB SDK to the App Store Connect for publishing.

Expected Results

iOS application is successfully uploaded to the App Store Connect.

Actual Results

Upload failed with following errors:

[iTMSTransporter]   /tmp/1445039832.itmsp - Error Messages:
[iTMSTransporter]       ERROR ITMS-90668: "Invalid Bundle Executable. The executable file 'funstory.app/Frameworks/FBLPromises.framework/FBLPromises' contains incomplete bitcode. To compile binaries with complete bitcode, open Xcode and choose Archive in the Product menu."
[iTMSTransporter]       ERROR ITMS-90668: "Invalid Bundle Executable. The executable file 'funstory.app/Frameworks/FBSDKCoreKit.framework/FBSDKCoreKit' contains incomplete bitcode. To compile binaries with complete bitcode, open Xcode and choose Archive in the Product menu."
[iTMSTransporter]       ERROR ITMS-90668: "Invalid Bundle Executable. The executable file 'funstory.app/Frameworks/FBSDKGamingServicesKit.framework/FBSDKGamingServicesKit' contains incomplete bitcode. To compile binaries with complete bitcode, open Xcode and choose Archive in the Product menu."
[iTMSTransporter]       ERROR ITMS-90668: "Invalid Bundle Executable. The executable file 'funstory.app/Frameworks/FBSDKLoginKit.framework/FBSDKLoginKit' contains incomplete bitcode. To compile binaries with complete bitcode, open Xcode and choose Archive in the Product menu."
[iTMSTransporter]       ERROR ITMS-90668: "Invalid Bundle Executable. The executable file 'funstory.app/Frameworks/FBSDKShareKit.framework/FBSDKShareKit' contains incomplete bitcode. To compile binaries with complete bitcode, open Xcode and choose Archive in the Product menu."
[iTMSTransporter]       ERROR ITMS-90668: "Invalid Bundle Executable. The executable file 'funstory.app/Frameworks/GoogleUtilities.framework/GoogleUtilities' contains incomplete bitcode. To compile binaries with complete bitcode, open Xcode and choose Archive in the Product menu."
[iTMSTransporter]       ERROR ITMS-90668: "Invalid Bundle Executable. The executable file 'funstory.app/Frameworks/MaterialComponents.framework/MaterialComponents' contains incomplete bitcode. To compile binaries with complete bitcode, open Xcode and choose Archive in the Product menu."
[iTMSTransporter]       ERROR ITMS-90668: "Invalid Bundle Executable. The executable file 'funstory.app/Frameworks/MDFInternationalization.framework/MDFInternationalization' contains incomplete bitcode. To compile binaries with complete bitcode, open Xcode and choose Archive in the Product menu."
[iTMSTransporter]       ERROR ITMS-90668: "Invalid Bundle Executable. The executable file 'funstory.app/Frameworks/MDFTextAccessibility.framework/MDFTextAccessibility' contains incomplete bitcode. To compile binaries with complete bitcode, open Xcode and choose Archive in the Product menu."
[iTMSTransporter]       ERROR ITMS-90668: "Invalid Bundle Executable. The executable file 'funstory.app/Frameworks/nanopb.framework/nanopb' contains incomplete bitcode. To compile binaries with complete bitcode, open Xcode and choose Archive in the Product menu."

Steps to Reproduce

  1. Install Facebook Unity SDK 9.0.0
  2. Build and archive Xcode project
  3. Upload IPA to the App Store Connect

Code Samples & Details

We faced this issue after upgrading FB SDK from 7.19.1 to 9.0.0.

gromilQaaaa commented 3 years ago

Same for us Unity2019.4.10f1 Tried decreasing version to 8.1.1 - still same issue

gromilQaaaa commented 3 years ago

Apparently the problem was in gradle openbakery plugin that uploads ipa to testflight. We just migrated to xcodebuild commands and problem disappeared

artyom-kolesnikov commented 3 years ago

For us the issue existed because we used xcodebuild build instead of xcodebuild archive. This somehow worked normally until Facebook SDK began to use Swift libraries, I think.