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.6k stars 623 forks source link

carthage failed #1869

Closed yinsenlee closed 4 years ago

yinsenlee commented 4 years ago

The following build commands failed: CompileC /Users/lee/Library/Caches/org.carthage.CarthageKit/DerivedData/11.4.1_11E503a/mailcore2/0.6.3/Build/Intermediates.noindex/ArchiveIntermediates/mailcore\ ios/IntermediateBuildFilesPath/mailcore2.build/Release-iphoneos/static\ mailcore2\ ios.build/Objects-normal/armv7/NSObject+MCO.o /Users/lee/Desktop/WorkSpace/HikLink_Intl/HikLink_Intl/Carthage/Checkouts/mailcore2/src/objc/utils/NSObject+MCO.mm normal armv7 objective-c++ com.apple.compilers.llvm.clang.1_0.compiler

yinsenlee commented 4 years ago

Xcode 11.4.1 macOS Catalina 10.15.4

haithngn commented 4 years ago

@yinsenlee could you please show me:

haithngn commented 4 years ago

try this in the Cartfile github "MailCore/mailcore2" "master"

if the Carthage still failed, please tail the xcodebuild log file to see the error in detail.

Screen Shot 2020-05-15 at 10 46 08 PM

p/s: plz use this binary file, next release we will include in the tag. https://drive.google.com/open?id=1wRVvarYRU2e45V9KyFTgd6yzlUh-Nx-_

yinsenlee commented 4 years ago
截屏2020-05-19 下午8 17 09 截屏2020-05-19 下午8 18 37
Vincentzzg commented 4 years ago

@yinsenlee I meet the same failure. Is your carthage update OK?

Vincentzzg commented 4 years ago

@haithngn I encountered the same error. And I found the reason for the failure. carthage log:

截屏2020-07-13 下午10 47 56

unzip libetpan-ios-.zip file failed and build "static mailcore2 ios" failed

截屏2020-07-13 下午10 50 20

I unzip the file manually, failed too:

截屏2020-07-13 下午10 38 17

Unzip use The Unarchiver App, failded:

截屏2020-07-13 下午10 53 53

Are these files damaged?

haithngn commented 4 years ago

@Vincentzzg could you show me which Xcode are you using? and what's the platform you are developing for now?

Vincentzzg commented 4 years ago

Xcode is Version 11.5

截屏2020-07-13 下午11 05 52

platform is ios

截屏2020-07-13 下午11 05 38
haithngn commented 4 years ago

@Vincentzzg this issue may be related to the low-level framework libetpan of the MailCore, Unfortunately, I cannot reproduce this to debug on my side, hope this pre-built binary can help you https://drive.google.com/file/d/1SBk-YAH4iJ_L5FQOvAAv9QdQVSdLssxN/view?usp=sharing

They were compiled in Xcode 11.5 for both platform iOS/OSX Screen Shot 2020-07-13 at 10 17 54 PM

p/s: could you please try to run the xcode project libetpan.xcworkspace from this repository https://github.com/dinhviethoa/libetpan then tell us the result?

Vincentzzg commented 4 years ago

@Vincentzzg this issue may be related to the low-level framework libetpan of the MailCore, Unfortunately, I cannot reproduce this to debug on my side, hope this pre-built binary can help you https://drive.google.com/file/d/1SBk-YAH4iJ_L5FQOvAAv9QdQVSdLssxN/view?usp=sharing

They were compiled in Xcode 11.5 for both platform iOS/OSX Screen Shot 2020-07-13 at 10 17 54 PM

p/s: could you please try to run the xcode project libetpan.xcworkspace from this repository https://github.com/dinhviethoa/libetpan then tell us the result?

did you remove the "Checkouts" directory or the "Externals" directory under Carthage directory before run the command?I have a old project which use mailcore2 too, run "carthage update --platform ios" is ok,and new project failed。

old project, success with unarchivered files:

截屏2020-07-13 下午11 44 17

new project, failed with zip files(unzip failed):

截屏2020-07-13 下午10 38 17
haithngn commented 4 years ago

@Vincentzzg I do nothing :), just carthage update

Vincentzzg commented 4 years ago

@haithngn If you carthage update in a new project without "Carthage/Checkouts/mailcore2" directory, you can reproduce the the error.

haithngn commented 4 years ago

@Vincentzzg I have tried that with a fresh Xcode project, can't reproduce, happy coding @Vincentzzg

Vincentzzg commented 4 years ago

@haithngn Thank you for answering my question. After restart the computer, carthage update is OK. Now I am not sure what is the problem