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

Need amd64 target for Swift Package and Cocoapod #1991

Open
wyllys66 opened this issue Nov 18, 2023 · 3 comments
Open

Need amd64 target for Swift Package and Cocoapod #1991

wyllys66 opened this issue Nov 18, 2023 · 3 comments

Comments

@wyllys66
Copy link

Trying to build a project that incorporates MailCore2 on a new Apple Silicon host (M1/M2/M3) with XCode 15 fails with errors like:

MailCore.framework/MailCore': found architecture 'x86_64', required architecture 'arm64'

I've tried using the cocoapod method and also the Swift Package method, both fail with variations of the same message. The default binaries used in these configurations does not include the latest architectures.

@Be-Maps
Copy link

Be-Maps commented Jan 26, 2024

For now you have to exclude build of arm64 and use real device (this was my workaround), plus
add "-ld64" to "Other linker Flags". 

@IMCHO
Copy link

IMCHO commented Feb 21, 2024

I tried to run the scripts, but it failed 😞

@jsflax
Copy link

jsflax commented Dec 1, 2024

I have filed a pull request to have SPM build from source: #2011. It no longer uses a binary and you should no longer face the issue you are facing.

If you wish to use the new Package, please use https://github.com/jsflax/mailcore2/ as your Swift Package dependency:

In Xcode click File -> Swift Packages -> Add Package Dependency...
Paste the following URL: https://github.com/jsflax/mailcore2
On the Choose Package Options screen, under Rules switch from Version to Branch (Branch: master) will be the default
Click Next -> Next -> Finish

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