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] - pod install fails #1974

Open mixtly87 opened 1 year ago

mixtly87 commented 1 year ago

Summary I use mailcore via pods with

pod 'mailcore2-ios', :git => 'https://github.com/MailCore/mailcore2.git', :commit => '7417b2e'

I target specific commit 7417b2e because classic approach doesn't include moveMessagesOperation.

Platform(s)

iOS

The error I'm getting after pod install

Pre-downloading: `mailcore2-ios` from `https://github.com/MailCore/mailcore2.git`, commit `7417b2e`
[!] Failed to download 'mailcore2-ios': [!] /bin/bash -c 
set -e
./scripts/build-mailcore2-ios-cocoapod.sh

working in /Users/me/MailCore-Builds/dependencies/workdir/20230320211752
building iphoneos16.2
Command line invocation:
    /Applications/Xcode.app/Contents/Developer/usr/bin/xcodebuild -project mailcore2.xcodeproj -sdk iphoneos16.2 -scheme "static mailcore2 ios" -configuration Release SYMROOT=/Users/me/MailCore-Builds/dependencies/workdir/20230320211752/tmp/bin OBJROOT=/Users/me/MailCore-Builds/dependencies/workdir/20230320211752/tmp/obj "ARCHS=armv7 armv7s arm64" IPHONEOS_DEPLOYMENT_TARGET=7.0 "OTHER_CFLAGS=$(inherited) -fembed-bitcode"

User defaults from command line:
    IDEPackageSupportUseBuiltinSCM = YES

Build settings from command line:
    ARCHS = armv7 armv7s arm64
    IPHONEOS_DEPLOYMENT_TARGET = 7.0
    OBJROOT = /Users/me/MailCore-Builds/dependencies/workdir/20230320211752/tmp/obj
    OTHER_CFLAGS = $(inherited) -fembed-bitcode
    SDKROOT = iphoneos16.2
    SYMROOT = /Users/me/MailCore-Builds/dependencies/workdir/20230320211752/tmp/bin

Prepare packages

Computing target dependency graph and provisioning inputs

Create build description
Build description signature: ce0776ea5a0038e9d9bd5d8571eed634
Build description path: /Users/me/MailCore-Builds/dependencies/workdir/20230320211752/tmp/obj/XCBuildData/ce0776ea5a0038e9d9bd5d8571eed634-desc.xcbuild

note: Building targets in dependency order
/Users/me/Library/Caches/CocoaPods/Pods/External/mailcore2-ios/758a93a1c11956560fd57b7bfff9f95f/build-mac/mailcore2.xcodeproj: warning: The iOS deployment target 'IPHONEOS_DEPLOYMENT_TARGET' is set to 7.0, but the range of supported deployment target versions is 11.0 to 16.2.99. (in target 'static mailcore2 ios' from project 'mailcore2')
/Users/me/Library/Caches/CocoaPods/Pods/External/mailcore2-ios/758a93a1c11956560fd57b7bfff9f95f/build-mac/mailcore2.xcodeproj: warning: Building with bitcode is deprecated. Please update your project and/or target settings to disable bitcode. (in target 'static mailcore2 ios' from project 'mailcore2')
error: The armv7 architecture is deprecated. You should update your ARCHS build setting to remove the armv7 architecture. (in target 'static mailcore2 ios' from project 'mailcore2')
error: The armv7s architecture is deprecated. You should update your ARCHS build setting to remove the armv7s architecture. (in target 'static mailcore2 ios' from project 'mailcore2')
warning: Run script build phase 'Run Script' will be run during every build because it does not specify any outputs. To address this warning, either add output dependencies to the script phase, or configure it to run in every build by unchecking "Based on dependency analysis" in the script phase. (in target 'static mailcore2 ios' from project 'mailcore2')
failed
--- xcodebuild: WARNING: Using the first of multiple matching destinations:
{ platform:iOS, id:dvtdevice-DVTiPhonePlaceholder-iphoneos:placeholder, name:Any iOS Device }
{ platform:macOS, arch:arm64, variant:Designed for [iPad,iPhone], id:7B72B8BF-579D-5327-B436-9673DAD6511E }
{ platform:macOS, arch:arm64, variant:Mac Catalyst, id:7B72B8BF-579D-5327-B436-9673DAD6511E }
{ platform:macOS, arch:x86_64, variant:Mac Catalyst, id:7B72B8BF-579D-5327-B436-9673DAD6511E }
{ platform:iOS Simulator, id:dvtdevice-DVTiOSDeviceSimulatorPlaceholder-iphonesimulator:placeholder, name:Any iOS Simulator Device }
{ platform:macOS, variant:Mac Catalyst, name:Any Mac }
{ platform:iOS Simulator, id:583FF501-FBC9-4170-8A52-4AA39212841C, OS:16.2, name:iPad (10th generation) }
{ platform:iOS Simulator, id:1D0ADBD1-E188-4134-87B4-63A29880F7AE, OS:16.2, name:iPad Air (5th generation) }
{ platform:iOS Simulator, id:97402B8D-5CEA-4758-9870-EBC42E50A142, OS:16.2, name:iPad Pro (11-inch) (4th generation) }
{ platform:iOS Simulator, id:79E4983B-B71D-4124-9854-60B86F5A07CC, OS:16.2, name:iPad Pro (12.9-inch) (6th generation) }
{ platform:iOS Simulator, id:E1602FB1-0C48-4DB4-9D7C-6D89D2395A9B, OS:16.2, name:iPad mini (6th generation) }
{ platform:iOS Simulator, id:E39F9432-1A8D-4D9C-AF67-BC4AE6A4C4E6, OS:16.2, name:iPhone 14 }
{ platform:iOS Simulator, id:70198482-06E0-4669-A76A-B0C68BC9A58E, OS:16.2, name:iPhone 14 Plus }
{ platform:iOS Simulator, id:C80FD5B7-5715-4989-BB5B-81E77E49026F, OS:16.2, name:iPhone 14 Pro }
{ platform:iOS Simulator, id:254A4A76-9E08-483D-B4A2-20B92038A0CB, OS:16.2, name:iPhone 14 Pro Max }
{ platform:iOS Simulator, id:936E1449-F8AA-4B3A-BABD-AA25A8BBEB60, OS:16.2, name:iPhone SE (3rd generation) }

This started happening recently (few weeks ago), it might be related to Xcode?

Does anyone know how to overcome this or is someone else experiencing the issue?

Rain-dew commented 1 year ago

I had the same problem, how did you solve it?

mixtly87 commented 1 year ago

I didn't really solve it yet. I ended using plain

pod 'mailcore2-ios'

and then I manually altered the Pods linked files to support the moveMessagesOperation using the repo state that worked. So now it's been working like that for some time, but it is not really a solution.