Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

bitcode error with unity-plugin-library.a and xcode 12.4 #1678

Closed
RoboticAccolade opened this issue Jun 29, 2021 · 8 comments
Closed

bitcode error with unity-plugin-library.a and xcode 12.4 #1678

RoboticAccolade opened this issue Jun 29, 2021 · 8 comments

Comments

@RoboticAccolade
Copy link

[REQUIRED] Step 1: Describe your environment

  • Unity version: 2019.2.20f1
  • Google Mobile Ads Unity plugin version: 6.0.1
  • Platform: iOS (iOS, Android, Unity Editor)
  • Platform OS version: iOS 9+ (eg iOS 10, Android 9)
  • Any specific devices issue occurs on: build level issue
  • Mediation ad networks used, and their versions: Facebook Ads Mediation v.3.3.0

[REQUIRED] Step 2: Describe the problem

Steps to reproduce:

What happened? How can we make the problem occur?
This could be a description, log/console output, etc.

On installing the latest Facebook Ads Mediation plugin, I discovered it required an updated version of Google Ads. Upon installing 6.0.0 and later 6.0.1, I ran into the following issue: unity-plugin-library.a returned an error in xcode (that didn't show up in my unity logs directly, but that's neither here nor there) claiming it could not be parsed due to an invalid bitcode version.

Googling the problem, it seems the correct solution is to update xcode, but a common workaround is to simply disable bitcode. I thought of trying the workaround first, but to my dismay I found that my project already has enable bitcode set to No. So I'm at a bit of a loss as to what the true problem is, or if xcode updating will actually solve my problem.

Updating xcode isn't impossible, and probably my next course of action, but to be honest it's a bit risky to fiddle too much with our build machine and I'm not certain updating will have no costs to my or other company projects using it.
スクリーンショット 2021-06-29 18 45 51
this is the error message in question, and my build settings as they were at the time this error was generated:
スクリーンショット 2021-06-29 19 12 34

If upgrading Xcode is necessary, could you please inform me of what version I need to make unity-plugin-library.a be readable?

Also, and this is a bit outside the scope of this question, but the name seems a bit generic, for projects with multiple plugins it might be hard to keep track of. Also a comment somewhere that people upgrading need to delete GADU* files in the same directory from older versions might be helpful (this of course being partially an issue of Unity's poor plugin handling).

Please share a downloadable sample project that reproduces the bug, if
available. This greatly helps us to diagnose and fix the issue faster.

Relevant Code:

// TODO(you): code here to reproduce the problem
@Archi97
Copy link

Archi97 commented Jun 29, 2021

#1677 Same for me.
It happens even on empty project.

@camphongdinh
Copy link

Hi, it happened to me before. I was using Pods so my solution is go to Xcode and change Unity-framework's Build Settings -> Enabled Bitcode -> NO . For non-pods projects, I suppose you can locate the library file (maybe it is .framework or something) and disable Bitcode . Hope this helps.

@Archi97
Copy link

Archi97 commented Jul 2, 2021

Hi, it happened to me before. I was using Pods so my solution is go to Xcode and change Unity-framework's Build Settings -> Enabled Bitcode -> NO . For non-pods projects, I suppose you can locate the library file (maybe it is .framework or something) and disable Bitcode . Hope this helps.

it didn't help me. :(

@alleluso
Copy link

alleluso commented Jul 2, 2021

Same problem for me. And yes... I have Bitcode set to NO

@ironnick
Copy link

ironnick commented Jul 2, 2021

same

@mariopintoappgeneration
Copy link

I've managed to solve using a suggestion from @ivk1800: #1677 (comment)

I've replaced unity-plugin-library.a by the source code from folder plugins/ios.
You also have to add the source code from the mediation networks you're using. here

Hope it helps!

@ericleich
Copy link
Member

The core issue is unity-plugin-library.a was built with Xcode 12.5.1 which requires you to use Xcode 12.5.1 to use the plugin. More related info at #1677

We are looking into doing another release built against 12.4 because Xcode 12.5 does require an OS update to Catalina which may be cumbersome to some users. Replacing the source as described by @mariopintoappgeneration should also work, but we understand that it's preferable for the package to work out of the box.

@CheeryLee
Copy link

CheeryLee commented Jul 13, 2021

A small clarification: it was built using Xcode 12.5.1 that requires Big Sur at least. Catalina is not supported.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

9 participants