Closed pedrosakey closed 2 years ago
Same issue on my side.
Also same issue while installing by SPM.
Looks like the server is burned. As a temporary fix, you can build the framework yourselves, there is a ./scripts/build-mailcore2-xcframework-spm.sh
script that you can run to produce XCFramework, and then create a local Package.swift
file referencing this framework.
@mateuszjablonski why not just create a GitHub release and attach the zip file there? Why host the framework where the server can be burned?
EDIT:
Also the script fails on M1 Max:
** ARCHIVE FAILED **
The following build commands failed:
CompileC /Users/user/Library/Developer/Xcode/DerivedData/mailcore2-embuhjeoqqlttmcpteyaowomwuyv/Build/Intermediates.noindex/ArchiveIntermediates/mailcore\ ios/IntermediateBuildFilesPath/mailcore2.build/Release-iphonesimulator/mailcore\ ios.build/Objects-normal/x86_64/MCOFramework.o /Users/user/Developer/mailcore2/build-mac/MCOFramework.mm normal x86_64 objective-c++ com.apple.compilers.llvm.clang.1_0.compiler (in target 'mailcore ios' from project 'mailcore2')
(1 failure)
See this: https://github.com/vincedev/MailCoreSPM
Although only for macOS
@mateuszjablonski thanks for the answer I tried to build the framework with that script but the output is empty in: /MailCore-Builds/dependencies/builds/mailcore2-framework-ios I keep on investigating thank you guys.
Getting same issue:
failed downloading 'https://downloads.maddux.cloud/mailcore2-apple-xcframework/MailCore2-2020-09-24.xcframework.zip' which is required by binary target 'MailCore2': downloadError("Error Domain=NSURLErrorDomain Code=-1003 \"A server with the specified hostname could not be found.\" UserInfo={_kCFStreamErrorCodeKey=8, NSUnderlyingError=0x7fa28198ee00 {Error Domain=kCFErrorDomainCFNetwork Code=-1003 \"(null)\" UserInfo={_NSURLErrorNWPathKey=satisfied (Path is satisfied), interface: en0, ipv4, dns, _kCFStreamErrorCodeKey=8, _kCFStreamErrorDomainKey=12}}, _NSURLErrorFailingURLSessionTaskErrorKey=LocalDownloadTask <B4BB840B-8F73-4C6D-9C39-774113C07CEE>.<1>, _NSURLErrorRelatedURLSessionTaskErrorKey=(\n \"LocalDownloadTask <B4BB840B-8F73-4C6D-9C39-774113C07CEE>.<1>\"\n), NSLocalizedDescription=A server with the specified hostname could not be found., NSErrorFailingURLStringKey=https://downloads.maddux.cloud/mailcore2-apple-xcframework/MailCore2-2020-09-24.xcframework.zip, NSErrorFailingURLKey=https://downloads.maddux.cloud/mailcore2-apple-xcframework/MailCore2-2020-09-24.xcframework.zip, _kCFStreamErrorDomainKey=12}")
Looks like the server is burned. As a temporary fix, you can build the framework yourselves, there is a
./scripts/build-mailcore2-xcframework-spm.sh
script that you can run to produce XCFramework, and then create a localPackage.swift
file referencing this framework.
I can't build it without errors
@mateuszjablonski thanks for the answer I tried to build the framework with that script but the output is empty in: /MailCore-Builds/dependencies/builds/mailcore2-framework-ios I keep on investigating thank you guys.
@pedrosakey news about building frameworks?
@alessiocasti I couldn't build it ¯_(ツ)_/¯. I found a workaround to make it work. There is a repo with the framework: https://github.com/Cleverlance/MailCore.xcframework
And then just add it to the project: https://www.simpleswiftguide.com/how-to-add-xcframework-to-xcode-project/
No so clean but it works. Hope it helps.
@alessiocasti I couldn't build it ¯(ツ)/¯. I found a workaround to make it work. There is a repo with the framework: https://github.com/Cleverlance/MailCore.xcframework
And then just add it to the project: https://www.simpleswiftguide.com/how-to-add-xcframework-to-xcode-project/
No so clean but it works. Hope it helps.
Thank you very much @pedrosakey! Unluckily the framework is missing armv7 architecture :-\
@alessiocasti I would like to share with you that my partner in the project test it with macbook air M1 and it works well. If you check the framework there are both architectures inside or maybe I didn't understand your problem well. Could you describe better so may I can help?
@alessiocasti I would like to share with you that my partner in the project test it with macbook air M1 and it works well. If you check the framework there are both architectures inside or maybe I didn't understand your problem well. Could you describe better so may I can help?
@pedrosakey here (https://github.com/Cleverlance/MailCore.xcframework/tree/master/MailCore.xcframework) there is no armv7 architecture. The xcframework is built only for the archs (folders) listed inside
See this: https://github.com/vincedev/MailCoreSPM
Although only for macOS
Thank you very much! That's the perfect solution for me! (I tried to port Mailcore2 to Apple Silicon before, but failed.)
I have created a fork of https://github.com/Cleverlance/MailCore.xcframework and added SPM support, so this should cover some more of use cases: https://github.com/mateuszjablonski/MailCore.xcframework
Supported architectures: ios-arm64
, ios-x86_64-simulator
@mateuszjablonski thanks for this, I've opened a PR for you to review. I've taken the macOS xcframework from and merged it into yours.
So you now have a single xcframework with iOS, iOS Simulator and macOS (arm + x86_64): https://github.com/BeehiveInnovations/MailCore.xcframework
It's also unfortunately missing an iOS Simulator framework for arm64
- unless someone can get the build scripts functioning again
Same issue with Intel on MacOS (XCode 13.4.1 for MacOS App). Any update?
Can you try to clean build on the latest master? The build should be fixed now.
@dinhvh i'm still getting this problem: downloads.maddux.cloud, domain doesn't exists anymore.
Summary Installation fail.
Platform(s)
Actual outcome
failed downloading 'https://downloads.maddux.cloud/mailcore2-apple-xcframework/MailCore2-2020-09-24.xcframework.zip' which is required by binary target 'MailCore2': downloadError("Error Domain=NSURLErrorDomain Code=-1003 \"A server with the specified hostname could not be found.\" UserInfo={_kCFStreamErrorCodeKey=8, NSUnderlyingError=0x7f7abdf3d940 {Error Domain=kCFErrorDomainCFNetwork Code=-1003 \"(null)\" UserInfo={_NSURLErrorNWPathKey=satisfied (Path is satisfied), interface: en0, ipv4, dns, _kCFStreamErrorCodeKey=8, _kCFStreamErrorDomainKey=12}}, _NSURLErrorFailingURLSessionTaskErrorKey=LocalDownloadTask <E9DA454B-3C4C-4B79-BAC9-164EFC59FAB9>.<37>, _NSURLErrorRelatedURLSessionTaskErrorKey=(\n \"LocalDownloadTask <E9DA454B-3C4C-4B79-BAC9-164EFC59FAB9>.<37>\"\n), NSLocalizedDescription=A server with the specified hostname could not be found., NSErrorFailingURLStringKey=https://downloads.maddux.cloud/mailcore2-apple-xcframework/MailCore2-2020-09-24.xcframework.zip, NSErrorFailingURLKey=https://downloads.maddux.cloud/mailcore2-apple-xcframework/MailCore2-2020-09-24.xcframework.zip, _kCFStreamErrorDomainKey=12}")