'OneSignal XCFramework ERROR ITMS-90085: No architectures in the binary

I've replaced old lib OneSignal to use XCFramework in more than one project, both in SPM and cocoapods when try to upload to TestFlight using Fastlane I got the same error:

[!] Error uploading ipa file: 
[Transporter Error Output]: ERROR ITMS-90085: No architectures in the binary. Lipo failed to detect any architectures in the bundle executable.
[Transporter Error Output]: Return status of iTunes Transporter was 1: ERROR ITMS-90085: No architectures in the binary. Lipo failed to detect any architectures in the bundle executable.
[Transporter Error Output]: The call to the iTMSTransporter completed with a non-zero exit status: 1. This indicates a failure.

I tried remove and add again the extension, the lib, reintegrate CocoaPods, clean derivate data and I got same error.

If I return to old branch or remove OneSignal from the project everything works

Run on simulator or device it's works well, just when try to upload I get this error.

Anyone know about this issue?

Environment

  1. OneSignalXCFramework (3.10.1)
  2. In Both SPM and CocoaPods
  3. Xcode 13.2 (13C90)

Steps to Reproduce Issue:

  1. Install XCFramework
  2. Added Extension
  3. Try to upload using fastlane using this command:
build_app(scheme: app_target, export_options:{ manageAppVersionAndBuildNumber: false })
upload_symbols_to_crashlytics(dsym_path: app_dSYM)
upload_to_testflight(skip_waiting_for_build_processing: true)


Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source