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

ENABLE_BITCODE issue #279

Closed
matrosovDev opened this issue Aug 1, 2016 · 6 comments
Closed

ENABLE_BITCODE issue #279

matrosovDev opened this issue Aug 1, 2016 · 6 comments

Comments

@matrosovDev
Copy link

I've tried to build my project, but I got that issue:

ld: -weak_library and -bitcode_bundle (Xcode setting ENABLE_BITCODE=YES) cannot be used together
clang: error: linker command failed with exit code 1 (use -v to see invocation)

I've tried to set ENABLE_BITCODE to NO, but it does not help.

@winni2k
Copy link

winni2k commented Aug 7, 2016

same here.

@winni2k
Copy link

winni2k commented Aug 7, 2016

This seems to be a duplicate of this comment #244

@matrosovDev
Copy link
Author

If I remember I fixed it with specifying:
config.build_settings['ENABLE_BITCODE'] = 'NO'

in my pod file

@tedhogan-zz
Copy link

tedhogan-zz commented Mar 9, 2017

Grabbed this from another reply, it may help someone else who is directed here from Google:

The full way to change your podfile for those not familiar (I was not):

pod 'TesseractOCRiOS',

post_install do |installer|
installer.pods_project.targets.each do |target|
target.build_configurations.each do |config|
config.build_settings['ENABLE_BITCODE'] = 'NO'
end
end
end

Also, ensure that you turn bitcode off in your project's target as well. Hope this saves someone else some time.

@sealz
Copy link

sealz commented Mar 17, 2017

Thanks @tedhogan, saved me a lot of googling.

Here's an easier to copy and paste version.

post_install do |installer|
  installer.pods_project.targets.each do |target|
    target.build_configurations.each do |config|
      config.build_settings['ENABLE_BITCODE'] = 'NO'
    end
  end
end

@1234Karthick
Copy link

@tedhogan
It worked, thanks so much.

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

5 participants