MailCore / mailcore2

MailCore 2 provide a simple and asynchronous API to work with e-mail protocols IMAP, POP and SMTP. The API has been redesigned from ground up.
Other
2.58k stars 623 forks source link

[Bug] - building for iOS Simulator, but linking in object file built for iOS #1956

Closed jrpinteno closed 1 year ago

jrpinteno commented 1 year ago

I'm unable to install mailcore for iOS/macOS using carthage

platform Macbook Pro 2016 macOS 12.6 Xcode 13.4.1

According to logs it looks like the externals (at least libctemplate) has mixed architectures.

ld: in /Users/*/Library/Caches/org.carthage.CarthageKit/DerivedData/13.4.1_13F100/mailcore2/a2ba66235d158888184a8c68237aa988240120a1/Build/Products/Release-iphonesimulator/libctemplate-ios.a(template_namelist.o), building for iOS Simulator, but linking in object file built for iOS, file '/Users/*/Library/Caches/org.carthage.CarthageKit/DerivedData/13.4.1_13F100/mailcore2/a2ba66235d158888184a8c68237aa988240120a1/Build/Products/Release-iphonesimulator/libctemplate-ios.a' for architecture arm64 clang: error: linker command failed with exit code 1 (use -v to see invocation)

haithngn commented 1 year ago

Have you tried this in the Cartfile

github "MailCore/MailCore2" "master"

and run the Carthage following this command:

carthage update --platform ios --use-xcframeworks

Result: Screen Shot 2022-11-08 at 8 55 20 PM

If you are still facing with this let re-open this ticket