iOS MobileVLCKit archive problems

2019-04-17 00:28发布

问题:

While trying archiving my project I got this error:

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

Tried to do enablebitcode = no but then when i archived the mac get stuck and after a 40 minutes period i gave up.

Any idea what can i do and if it is possible to archive the project with this pod ?

回答1:

Had the same problem, setting ENABLE BITCODE = NO and changing Debug Information Level from "DWARF with dSYM File" to "DWARF" in the release makes it archive successfully. See Image: Change Debug Information Format



回答2:

There is a bug in dsymutil in current version of Xcode 10 which will exhaust all your RAM when archiving VLCKit with the "DWARF with dSYM File" option.

This issue is resolved in the current Xcode beta, so if you want to use that option, copy the dsymutil from the Xcode beta to the stable version (or take dsymutil from Xcode 9.4) to work-around the issue.

Regrettably, there is nothing we can change in VLCKit as the bug is in Apple's tools.