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

Failed to verify bitcode in Charts.framework #3663

Closed
EricM-VR opened this issue Sep 25, 2018 · 9 comments
Closed

Failed to verify bitcode in Charts.framework #3663

EricM-VR opened this issue Sep 25, 2018 · 9 comments

Comments

@EricM-VR
Copy link

I try to distribute an Ad Hoc app including charts framework.

If I select the "Rebuild from bitcode" option, I get the error message => "Failed to verify bitcode in Charts.framework/Charts"

If I de-select this option, I get this error message => "Code signing "Charts.framework" failed."
In the logs, I have

        code = 0;
        description = "Failed to verify bitcode in Charts.framework/Charts:\nerror: Cannot extract bundle from /var/folders/0h/41gh6_zn0hn7j8lngfm_mqlh0000gn/T/IDEDistributionOptionThinning.csC/Payload/Travel.app/Frameworks/Charts.framework/Charts (i386)\n\n";
        info =             {
        };
        level = ERROR;
        type = "malformed-payload";

It happens since I moved to Xcode 10.
I try to rebuild from Carthage (carthage update --platform iOS), reinstalled the framework, but issue is still the same.

Did anyone experienced the same behavior ?

Thanks a lot
Eric

@liuxuan30
Copy link
Member

liuxuan30 commented Sep 27, 2018

This is relatively new to us. We didn't receive many bitcode issue, nor we paid attention to it.

I checked the framework build settings, nothing for bitcode. The ChartsDemo build settings do have bitcode settings, and it's enabled.

Why you have to select "Rebuild from bitcode"? If you uncheck it, it should works fine, I don't see others complain about Code signing "Charts.framework" failed for quite a long time.

BTW, I do remember one issue from Carthage/Carthage#1619 saying you shouldn't check code sign for the framework. And, if you are using carthage, do remember check out their homepage for detailed instructions. There are some scripts like /usr/local/bin/carthage copy-frameworks to run.

If you are not sure, refer ChartsDemo settings and try to build it.

@liuxuan30 liuxuan30 reopened this Sep 27, 2018
@pmairoldi pmairoldi assigned pmairoldi and unassigned pmairoldi Oct 2, 2018
@pmairoldi
Copy link
Collaborator

I have no idea why this would be but we don't sign the framework in our project so it would use your app's signing.

@liuxuan30
Copy link
Member

@EricM-VR any update? we will close this soon.

@vamositamas
Copy link

Hi. I have same error (Code signing "Charts.framework" failed.), but I didn't select the "Rebuild from bitcode" option. I use XCode 10. How can I solve this issue? Thanks.

@prgorasiya
Copy link

Facing the same issue, can't achieve the binary.
Any solution?

@vamositamas
Copy link

Yes. If you include the Charts source files direct your project without Charts.framework, then will works the "Archive" function without error message. This isn't not really elegant solution but deal with it.

@pmairoldi
Copy link
Collaborator

pmairoldi commented Oct 18, 2018

Seems like a carthage problem (airbnb/lottie-ios#639). Are you at the latest version of carthage?

@pmairoldi
Copy link
Collaborator

pmairoldi commented Oct 18, 2018

Ok. I found the solution. You have to follow the steps here if you didn't (https://github.com/Carthage/Carthage#if-youre-building-for-ios-tvos-or-watchos). I got the same issue as you without doing so. I just did it and was able to export an adhoc build.

@shafqat-muneer
Copy link

Issue exists if we use Carthage. If i use cocoa pod then will it work? Anyone experience it?

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

No branches or pull requests

6 participants