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 #8

Closed
onlyibin opened this issue Nov 30, 2017 · 5 comments
Closed

Failed to verify bitcode #8

onlyibin opened this issue Nov 30, 2017 · 5 comments

Comments

@onlyibin
Copy link

I use ARVideoKit.framework of version 1.12
My Xcode enable bitcode is false
Fastlane failed :
error: exportArchive: Failed to verify bitcode in ARVideoKit.framework/ARVideoKit:
error: Cannot extract bundle from /var/folders/45/sr50c3y14sxcsdgn_q1gr9200000gn/T/XcodeDistPipeline.Xzl/Root/Payload/xxxxxx.app/Frameworks/ARVideoKit.framework/ARVideoKit (i386)

@onlyibin onlyibin changed the title Fastlane failed Failed to verify bitcode Nov 30, 2017
@AFathi
Copy link
Owner

AFathi commented Nov 30, 2017

Hey @JustBetterIOS,
Can you please specify when this error occurs.

From the error I'm seeing, I assume this happens while archiving your project. If I'm right, then please make sure to strip out the simulator architectures.

To do so, follow those steps:

  1. Install Carthage

Download Carthage.pkg from here

Or install with Homebrew using this command brew install carthage

  1. Go to your project target's Build Phase

screen shot 2017-11-14 at 8 21 44 pm

  1. Add a new Run Script Phase

screen shot 2017-11-14 at 8 22 14 pm

  1. Add the following command to the Run Script Phase
/usr/local/bin/carthage copy-frameworks

screen shot 2017-11-14 at 8 30 12 pm

  1. Finally, add ARVideoKit.framework file path as an Input File. In my case, I have it in a folder named Frameworks inside my project folder

screen shot 2017-11-14 at 8 41 06 pm

@onlyibin
Copy link
Author

onlyibin commented Dec 1, 2017

Thanks for suggestion!
Before archivie my project, I have already completed those steps
I give some more log:

[22:45:22]: ▸ Running script 'Run Script'
[22:45:25]: ▸ Running script '[CP] Embed Pods Frameworks'
[22:45:25]: ▸ Running script 'Embed Pods Frameworks'
[22:45:25]: ▸ Copying /Business/Modules/ARKit/Vendors/ARVideoKit/ARVideoKit.framework

xcodebuild[81534:1949285] [MT] IDEDistribution: Step failed: <IDEDistributionPackagingStep: 0x7f985802aeb0>: Error Domain=IDEFoundationErrorDomain Code=1 "Failed to verify bitcode in ARVideoKit.framework/ARVideoKit:
error: Cannot extract bundle from /var/folders/m2/r3npb0q14q908xykd11l0pk80000gn/T/XcodeDistPipeline.58V/Root/Payload/xxxxx.app/Frameworks/ARVideoKit.framework/ARVideoKit (i386)

" UserInfo={NSLocalizedDescription=Failed to verify bitcode in ARVideoKit.framework/ARVideoKit:
error: Cannot extract bundle from /var/folders/m2/r3npb0q14q908xykd11l0pk80000gn/T/XcodeDistPipeline.58V/Root/Payload/xxxxx.app/Frameworks/ARVideoKit.framework/ARVideoKit (i386)

}
error: exportArchive: Failed to verify bitcode in ARVideoKit.framework/ARVideoKit:
error: Cannot extract bundle from /var/folders/m2/r3npb0q14q908xykd11l0pk80000gn/T/XcodeDistPipeline.58V/Root/Payload/xxxxx.app/Frameworks/ARVideoKit.framework/ARVideoKit (i386)

@onlyibin
Copy link
Author

onlyibin commented Dec 1, 2017

Thanks god!
I solved this by
$ lipo -remove i386 …/ARVideoKit.framework/ARVideoKit -o …/ARVideoKit/ARVideoKit.framework/ARVideoKit

@onlyibin onlyibin closed this as completed Dec 1, 2017
@anushkmittal
Copy link

bump, still having issues with release build. I have archived and using the release configuration of framework with run script phase, but I'm getting

ld: bitcode bundle could not be generated because '/Users/anushkmittal/Documents/Project/ARVideoKit.framework/ARVideoKit' was built without full bitcode. All frameworks and dylibs for bitcode must be generated from Xcode Archive or Install build file '/Users/anushkmittal/Documents Project/ARVideoKit.framework/ARVideoKit' for architecture arm64
clang: error: linker command failed with exit code 1 (use -v to see invocation)

@Kelmatou
Copy link
Contributor

Check my pull request https://github.com/Kelmatou/ARVideoKit/tree/feature_bitcode_release
I added build settings info. Just follow the instructions in "Publishing to the App Store".
Tell me if it didn't work

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

4 participants