SolvedCarthage Xcode 11.0 Beta 4 fails to archive Swift-containing frameworks w/ Bitcode · Workaround Available

  • carthage install method: [ ] .pkg, [x ] homebrew, [ ] source
  • which carthage: /usr/local/bin/carthage
  • carthage version: 0.33.0
  • xcodebuild -version: Build version 11M374r
  • Are you using --no-build? no
  • Are you using --no-use-binaries? no
  • Are you using --use-submodules? no
  • Are you using --cache-builds? no
  • Are you using --new-resolver? no



github "soffes/CommonCrypto"
github "soffes/Crypto"
github "MagicalPanda/MagicalRecord"
github "timbueno/TBDirectoryKit"
github "" ~> 5.0.0
github "timbueno/GCDWebServer" ~> 3.3.34
github "ashleymills/Reachability.swift" ~> 4.0
github "shinydevelopment/SimulatorStatusMagic" ~> 1.9.2
github "PierrePerrin/ShadowView"

Carthage Output

ld: symbol(s) not found for architecture arm64
clang: error: linker command failed with exit code 1 (use -v to see invocation)


The following build commands failed:
	Ld /Users/tim/Library/Caches/org.carthage.CarthageKit/DerivedData/11.0_11M374r/Alamofire/4.8.2/Build/Intermediates.noindex/ArchiveIntermediates/Alamofire\ iOS/IntermediateBuildFilesPath/\ normal arm64
(1 failure)
Build Failed
	Task failed with exit code 65:
	/usr/bin/xcrun xcodebuild -workspace /Users/tim/Projects/Bound/Carthage/Checkouts/Alamofire/Alamofire.xcworkspace -scheme Alamofire\ iOS -configuration Release -derivedDataPath /Users/tim/Library/Caches/org.carthage.CarthageKit/DerivedData/11.0_11M374r/Alamofire/4.8.2 -sdk iphoneos ONLY_ACTIVE_ARCH=NO CODE_SIGNING_REQUIRED=NO CODE_SIGN_IDENTITY= CARTHAGE=YES archive -archivePath /var/folders/tl/v7ygpjb93xgbk8mz478x769m0000gn/T/Alamofire SKIP_INSTALL=YES GCC_INSTRUMENT_PROGRAM_FLOW_ARCS=NO CLANG_ENABLE_CODE_COVERAGE=NO STRIP_INSTALLED_PRODUCT=NO (launched in /Users/tim/Projects/Bound/Carthage/Checkouts/Alamofire)

This usually indicates that project itself failed to compile.

Actual outcome
Carthage fails to compile dependencies after updating to Xcode 11 Beta 4.

Expected outcome
Carthage should compile these dependencies.

23 Answers

✔️Accepted Answer

To solve the issue create a workaround.xcconfig file. This file can live elsewhere - like your desktop.


Then doing the following should work

XCODE_XCCONFIG_FILE=/Users/SomeUser/SomeDirectory/Project/workaround.xcconfig carthage update platform iOS

Other Answers:

As suggested by @jdhealy in a private conversation the best workaround is:

  1. Create a Xcode11Beta4Fix.xcconfig containing:
  1. Then
XCODE_XCCONFIG_FILE=/absolute/path/to/Xcode11Beta4Fix.xcconfig carthage update --platform iOS

All credit to @jdhealy

Actually the xcconfig file worked for me, it just had to be an absolute path and not relative, that would be much easier to do what @kaandedeoglu suggested.

Related Issues:

Carthage Carthage builds fail at xcrun lipo on Xcode 12 beta (3,4,5...)
Workaround that works with both Xcode 11 and 12 Works with all versions of Xcode 12 (except beta 1 a...
Carthage carthage build command complains about "Could not find any available simulators for iOS"
I have the exactly the same situation with xCode 10.2 my Carthage was outdated after update to 0.33 ...
Carthage How: Please update to the latest Carthage version
This command updates brew itself and does not take formula names the command should be brew upgrade ...
Carthage Xcode 11.0 Beta 4 fails to archive Swift-containing frameworks w/ Bitcode · Workaround Available
To solve the issue create a workaround.xcconfig file This file can live elsewhere - like your deskto...
Carthage Carthage doesn't read latest commit in local repository
Had the same problem with local repository what solved it is clearing cache rm -rf ~/Library/Caches/...
Alamofire “Use Legacy Swift Language Version” with pod 'Alamofire', '~> 4.0'
Have you tried this? I have to convert my project from X...
CocoaLumberjack Xcode 9 beta 3 breaks the new os_log logger
Getting the following errors DDOSLogger.m: DDOSLogger.m:58:17: Static_assert failed format argument ...
Alamofire iOS 13.3.1 dyld: Library not loaded
Are you using a non-developer Apple ID to install the app to your phone? It looks like iOS 13.3.1 ha...
Alamofire Extra argument 'method' in call
I'm getting the same issue with the same error message (Extra argument 'method' in call) with correc...
Alamofire Sending GET with JSON in body gets Timeout error
I figured out my problem In my Router I had my GET requests using JSONEncoding: urlRequest = try JSO...
Alamofire Alamofire 4.3.0 setting timeout throws NSURLErrorDomain error
Hello I solved the problem with: I pupdated my question in StackOverflow I am using the version 4.3....
Eureka PushRow - Prevent Nil
do the trick This may be a basic question - but for a PushRow - is there a way to make it to where i...
Alamofire Module compiled with Swift 4.2.1 cannot be imported by the Swift 5.0
I'm having almost the exact the same issue: Module compiled with Swift 4.2.1 cannot be imported by t...
Eureka Xcode 11.4, error: Segmentation fault: 11 (in target 'Eureka' from project 'Eureka')
This compiler error isn't resolved in the final 11.4 release What's odd is that it only fails on the...
Alamofire [WIP] Swift 3.0 Migration
install compatibility with cocoapods? @kcharwood EDIT: use Alamofire - Swift 3.0 The initial migrati...
Eureka Fails to compile in Xcode 9
pod 'Eureka' :git => '' :branch => 'Xcode9-Swift4' does not w...
Alamofire validate() "eats" response data
So to all of you convinced the data is's not debugPrint(response) without validate(): debu...
SideMenu iOS 13: menu opens on full screen
If you use storyboard click the Storyboard segue(the line connects view controllers) on the right pa...
Alamofire Version 3.5 not found on Cocoapods Specs
Until this is resolved you can use the 3.5.0 release by specifying the tag directly pod 'Alamofire' ...
SkeletonView Wrong skeleton view width on iPhone 8 plus
Ok I've found my problem I was calling showSkeleton in viewDidLoad Moving it to viewDidAppear fixed ...
Eureka Error: Duplicate tag when using custom object with PushRow
It works if you declare your class ServicePaymentRate to be CustomStringConvertible ...
CoreStore Build fails on Xcode 8 / macOS Sierra (both for Swift 2.3 and 3)
Thank you to everyone who helped debug the problem here and over at the slack channel! I turned off ...
SkeletonView SkeletonView not working in TableViewCell with custom class
@pennywise94 I ran into this issue too; the giant solid happens because calling showSkeleton() on a ...
yarn Yarn Debian key expiry date updated (EXPKEYSIG 23E7166788B63E1E)
sudo apt-key adv --refresh-keys --keyserver also works to fix this issue for ma...
yarn GPG error: stable InRelease NO_PUBKEY E074D16EB6FF4DE3
Doing curl -sS | sudo apt-key add - again was enough. ...
CocoaPods [error report] pod install /w m1 macbook
do you have a MacBook Pro with a M1 processor? this fixed my issue: Report What did you do? Run pod ...
cargo failed to authenticate when downloading repository
Leave it here to help somebody.. I had a similar issue with ssh: dependency but fixed it by starting...
CocoaPods NoMethodError - undefined method `size' for nil:NilClass
Also faced with this issue Fixed by updating flutter and cocoa pods to the latest version and then ...
yarn ERROR: There are no scenarios; must have at least one.
You've got the wrong yarn 😄 The Yarn you're executing comes from the cmdtest package: http://manpag...
yarn Installation Problem: .yarn-metadata.json: Unexpected end of JSON input
I triggered this condition after a failed install of lodash.isfunction: If you trigger this you can ...
yarn ERROR: [Errno 2] No such file or directory: 'add'
I was facing the same problem I am using Ubuntu (17.04) and used sudo apt install yarn to install ya...
yarn There appears to be trouble with your network connection. Retrying...
Adding this comment for other Googlers: What worked for me was increasing the Yarn network timeout: ...
bower EACCES: permission denied .config/configstore/bower-github.json
fixed it with sudo chown -R $USER:$GROUP ~/.npm sudo chown -R $USER:$GROUP ~/.config ...
yarn Installing Yarn on Ubuntu 18.04.1 LTS gives invalid signature error. Possible expired key?
Should be fixed by yarnpkg/releases@0f3e4b2 What is the current behavior? Attempting to install yarn...
CocoaPods pod install has bug
Did you try: sudo arch -x86_64 gem install ffi And run: arch -x86_64 pod install instead of pod inst...
yarn yarn equivalent of npx ?
@sandys - The issue @zkat referenced (npm/npm#6053) is not an issue on yarn since you can just do ya...
cli [BUG] Missing required argument #1
Same problem It appears something was released that breaks older versions of npm (we were using 3.5....
CocoaPods CocoaPods was not able to update the master repo
Looks like your specs repo was edited at some point and now git can't update it ...
yarn yarn fails to install fsevents while npm succeeds
I am getting this issue as well on Node 10.4.1 Do you want to request a feature or report a bug? Bug...
yarn Yarn add/Yarn install cannot install fsevents
I had to do a combination of multiple proposed solutions: yarn cache clean && yarn upgrade && yarn T...
CocoaPods CocoaPods compatibility with Apple DTK (Apple Silicon)
For anyone else struggling with this issue I just found a way to solve it In addition to running ter...
yarn "Incorrect integrity when fetching from the cache"
Some context: old lockfile entries (more than a year ago?) don't have the integrity field present Ba...
CocoaPods Build issue with Xcode 12.3 - file not found #include "ruby/config.h"
I just updated to Xcode 12.3 and I am hitting this issue Seems like Xcode 12.3 broke the system ruby...
CocoaPods Unzip fail when zip contains chinese char on macOS 10.13
Maybe replace unzip with ditto: I have a SDK and there is a folder named FaceDistortion_20171205雪天的雪...
yarn error unable to get local issuer certificate
I had the same issue under the same circumstances but I ran this command yarn config set strict-ssl ...
CocoaPods None of your spec sources contain a spec satisfying the dependencies
Did you note this part of the error message: Note: as of CocoaPods 1.0 pod repo update does not happ...
yarn The following signatures couldn't be verified because the public key is not available: NO_PUBKEY E074D16EB6FF4DE3
You need to run as per this page Had the same issue not sure why the key suddenly changed. ...
CocoaPods pod install fails with json error on Mac OS X 10.15
I did rm -rf ~/.cocoapods/repos/trunk/ After that it worked again. I've read and understood the CONT...
yarn There appears to be trouble with your network connection. Retrying...
I trying some voodoos: Delete any *.lock and rm node_modules Or rm -rf node_modules/ Clean a flush a...