Ionic Cordova onesignal Asset validation failed iOS upload issue

What happened? facing issue to upload on ios TestFlight xcode version 16 macOS 15.0

xcrun bitcode_strip -r platforms/ios/YourApp/Plugins/YourFramework.framework/YourFramework -o platforms/ios/YourApp/Plugins/YourFramework.framework/YourFramework

already tried bitcode_strip command but also that didn't work.

The following issues occurred while distributing your application. Asset validation failed Invalid Executable. The executable '***** Syndrome.app/Frameworks/OneSignal.framework/ OneSignal' contains bitcode. (ID: fda6a528-a835-4b16-8252-893d8d16acbd)

Steps to reproduce? create build , upload it on testflight and you'll get error OneSignal Cordova SDK version Release 3.3.1

Which platform(s) are affected? iOS

Answered by DTS Engineer in 817072022

Bitcode is no longer supported. From the Xcode 15 Release Notes:

Deprecations: Bitcode support has been removed, and the ENABLE_BITCODE build setting no longer has any effect.

You should contact the vendor of this framework for support. Having the vendor resolve this is the preferred solution over running shell scripts to strip the bitcode, because the error is indicative that the framework hasn't been recompiled since at least Xcode 14, if not something older than that, and the vendor may wish to integrate some of the newer technologies that Apple has added since Xcode 14 was released.

—Ed Ford,  DTS Engineer

I have same issue, I following some recommendation (https://medium.com/@abdulahad2024/fixing-bitcode-issues-in-xcode-16-how-to-resolve-invalid-executable-errors-when-uploading-ios-da07a5a39c7c) but I cant solved it

Bitcode is no longer supported. From the Xcode 15 Release Notes:

Deprecations: Bitcode support has been removed, and the ENABLE_BITCODE build setting no longer has any effect.

You should contact the vendor of this framework for support. Having the vendor resolve this is the preferred solution over running shell scripts to strip the bitcode, because the error is indicative that the framework hasn't been recompiled since at least Xcode 14, if not something older than that, and the vendor may wish to integrate some of the newer technologies that Apple has added since Xcode 14 was released.

—Ed Ford,  DTS Engineer

Ionic Cordova onesignal Asset validation failed iOS upload issue
 
 
Q