I'm getting this error
error: Invalid bitcode signature
clang: error: linker command failed with exit code 1 (use -v to see invocation)
I am using cocoapods and I have verified that all enable bitcodes match, I've tried all options Yes, No and ${inherited} for the enable bitcode field.
Not sure how to debug this further, how to I use the -v option / will that even give me more information.
Some back ground, I'm merging two code bases together iPhone and iPad so that it's a universal app.
Bitcode is an Apple technology that enables you to recompile your app to reduce its size. The recompilation happens when you upload your app to App Store Connect or export it for Ad Hoc, Development, or Enterprise distribution. To learn more about bitcode, see Distribution Options.
For iOS apps, bitcode is the default, but optional. If you provide bitcode, all apps and frameworks in the app bundle need to include bitcode. For watchOS and tvOS apps, bitcode is required. As per apple document bitcode is default but currently optional so your app will get approval until it is compulsory.
To disable Bitcode, go to the Build Settings tab of your workspace, scroll down to Build Options , and set Enable Bitcode to No.
In my project I fixed this by setting all "Bitcode enabled" options to "No". That includes all targets and all projects in the workspace (main project, Cocoa Pod project).
error: Invalid bitcode signature clang: error: linker command failed with exit code 1 (use -v to see invocation)
Note: If you are building for the target phone 9 or 10 the following solution solves the issue
Solution
Hope this solves the problem
This trick worked for me:
Select project file -> Select target -> General -> Linked Frameworks and Libraries -> Delete libPods.a
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With