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

Problems using lib in simulator #162

Open
rafagan opened this issue Sep 22, 2021 · 4 comments
Open

Problems using lib in simulator #162

rafagan opened this issue Sep 22, 2021 · 4 comments

Comments

@rafagan
Copy link

rafagan commented Sep 22, 2021

The library is presenting the following issue when build for iOS simulator:

In <...>/Pods/YYImage/Vendor/WebP.framework/WebP(libwebpencode_la-config.o), building for iOS Simulator, but linking in object file built for iOS, for architecture arm64

Any help?

@GiuseppePiscopo
Copy link

Hi there, we're having the same issue, with manual installation as we manage dependencies through Carthage:

[omitted]/Vendor/WebP.framework/WebP(libwebpencode_la-config.o), building for iOS Simulator, but linking in object file built for iOS, for architecture arm64
clang: error: linker command failed with exit code 1 (use -v to see invocation)

This apparently only happens when building in Release configuration for a simulator destination. It does not happen in the remaining three cases (Debug for simulator and bot Release/Debug for device).

Did you have any luck in solving the issue?
Thanks

@rafagan
Copy link
Author

rafagan commented Oct 16, 2021

No, I don't. For now I'm using only real devices. I think this library wasn't configured for x86_64 architectures

@GiuseppePiscopo
Copy link

GiuseppePiscopo commented Oct 18, 2021

Thanks for reply. In the meantime we found the issue. There are a couple of workarounds (not definitive solutions, I mean). You can find more details in a (quite dense) Stack Overflow page: https://stackoverflow.com/questions/63607158/xcode-12-building-for-ios-simulator-but-linking-in-an-object-file-built-for-io/

I'd suggest to especially read the current second answer for an understanding of the issue: https://stackoverflow.com/questions/63607158/xcode-12-building-for-ios-simulator-but-linking-in-an-object-file-built-for-io/64139830#64139830

The two workarounds are the one related to ONLY_ACTIVE_ARCH and the one related to EXCLUDED_ARCHS.
HTH

@GiuseppePiscopo
Copy link

@rafagan you might want to consider closing the issue, if that's the case. Regards

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

2 participants