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

Apple Silicon support (EXCLUDED_ARCHS: arm64) #59

Closed
gyulavoros opened this issue Jul 25, 2022 · 1 comment
Closed

Apple Silicon support (EXCLUDED_ARCHS: arm64) #59

gyulavoros opened this issue Jul 25, 2022 · 1 comment

Comments

@gyulavoros
Copy link

The current Pod spec requires the following configuration: EXCLUDED_ARCHS[sdk=iphonesimulator*]": "arm64

If I remove the configuration, then I get the following error message:
<PATH_TO_PROJECT>/ARCoreGARSession.framework/ARCoreGARSession(GARSession.o), building for iOS Simulator, but linking in object file built for iOS, for architecture arm64.

The problem with EXCLUDED_ARCHS present in the config is that on M1/M2 MacBooks, it causes a lot of trouble. The biggest issue is that we cannot execute test suites due to the following error:

The bundle “<TEST_SUITE>.xctest” couldn’t be loaded because it doesn’t contain a version for the current architecture. The bundle doesn’t contain a version for the current architecture. Try installing a universal version of the bundle.
...
<TEST_SUITE>.xctest/<TEST_SUITE>' (mach-o file, but is an incompatible architecture (have 'x86_64', need 'arm64'))

Why is the exclusion of the arm64 architecture for simulators necessary? I think the best solution would be to provide xcframeworks that contain all the necessary combinations of architectures for physical devices and simulators.

@jrullman
Copy link

EXCLUDED_ARCHS was there because we didn't have Apple Silicon support before, so there was no way to use it on a M1/M2 Mac.

ARCore 1.33 was just released, and it contains XCFramework binaries with the arm64 simulator architecture included.

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