Carthage build failed Xcode 12 12A7209 building
This is a Carthage & Xcode 12 issue. Unfortunately at the moment there is no update from the Carthage team to address this issue. However, there is a shell script you can run to unblock you. It has worked for me. You can follow the thread on the Carthage github account.
https://github.com/Carthage/Carthage/issues/3019#issuecomment-665136323
- Create a shell script
carthage-build.sh
and place it in your Xcode project
#!/usr/bin/env bash
# carthage.sh
# Usage example: ./carthage-build.sh build --platform iOS
set -euo pipefail
xcconfig=$(mktemp /tmp/static.xcconfig.XXXXXX)
trap 'rm -f "$xcconfig"' INT TERM HUP EXIT
# For Xcode 12 make sure EXCLUDED_ARCHS is set to arm architectures otherwise
# the build will fail on lipo due to duplicate architectures.
echo 'EXCLUDED_ARCHS__EFFECTIVE_PLATFORM_SUFFIX_simulator__NATIVE_ARCH_64_BIT_x86_64__XCODE_1200 = arm64 arm64e armv7 armv7s armv6 armv8' >> $xcconfig
echo 'EXCLUDED_ARCHS = $(inherited) $(EXCLUDED_ARCHS__EFFECTIVE_PLATFORM_SUFFIX_$(EFFECTIVE_PLATFORM_SUFFIX)__NATIVE_ARCH_64_BIT_$(NATIVE_ARCH_64_BIT)__XCODE_$(XCODE_VERSION_MAJOR))' >> $xcconfig
export XCODE_XCCONFIG_FILE="$xcconfig"
carthage "$@"
- Run the script from your terminal to update your Carthage frameworks
$ ./carthage-build.sh build --platform iOS
Your frameworks should be able to update and compile.
FYI - I did not write this script, the credit goes to https://github.com/rastersize
Please follow the thread here for updates on this issue.
https://github.com/Carthage/Carthage/issues/3019
Command /usr/bin/lipo failed with exit code 1 error
I solved this issue by changing the value of the Valid Architecture found in Project > Build Settings > Architectures from the default "armv6 armv7" to "armv7". Hope this helps.
Related Topics
Swift, Dispatch_Group_Wait Not Waiting
Mask Uiview with Uibezierpath - Stroke Only
Implementing Autocomplete in iOS
iOS Network Reachability - Doesn't Seem to Be Working
Get Google Contacts Using API on iOS
Nscache Emptied When App Enters Background
iOS Uimenucontroller Uimenuitem, How to Determine Item Selected with Generic Selector Method
How to Use Store and Use an Nsmutableattributedstring in Nsuserdefaults
How to Make Skscene Have Fixed Width
Regex to Get String Between Two % Characters
Initializing Swift Properties That Require "Self" as an Argument
Avplayerviewcontroller Using Audio-Only Avplayer
Set the Status Bar to Black Colour
Displaying Text One Character at a Time in Swift 2.0
iOS Notification Trigger: Fortnightly And/Or Quarterly
Problems Adding Custom Activity to Uiactivitycontroller
How to Change Text Font in Uipickerview in iOS 7
How to Sort 1 Array in Swift/Xcode and Reorder Multiple Other Arrays by the Same Keys Changes