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

Cartfile

<YOUR CARTFILE>

github "soffes/CommonCrypto"
github "soffes/Crypto"
github "MagicalPanda/MagicalRecord"
github "timbueno/TBDirectoryKit"
github "https://github.com/dropbox/SwiftyDropbox" ~> 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)

** ARCHIVE FAILED **


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/Alamofire.build/Release-iphoneos/Alamofire\ iOS.build/Objects-normal/arm64/Binary/Alamofire 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.

LD_VERIFY_BITCODE=NO

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:
LD_VERIFY_BITCODE__XCODE_PRODUCT_BUILD_VERSION_11M374r=NO
LD_VERIFY_BITCODE=$(LD_VERIFY_BITCODE__XCODE_PRODUCT_BUILD_VERSION_$(XCODE_PRODUCT_BUILD_VERSION))
  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:

479
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...
30
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 ...
26
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 ...
25
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...
6
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/...
140
Alamofire “Use Legacy Swift Language Version” with pod 'Alamofire', '~> 4.0'
Have you tried this? http://stackoverflow.com/a/38466703/1054550 I have to convert my project from X...
66
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 ...
65
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...
51
Alamofire Extra argument 'method' in call
I'm getting the same issue with the same error message (Extra argument 'method' in call) with correc...
43
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...
35
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....
30
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...
28
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...
18
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...
16
Alamofire [WIP] Swift 3.0 Migration
install compatibility with cocoapods? @kcharwood EDIT: use Alamofire - Swift 3.0 The initial migrati...
15
Eureka Fails to compile in Xcode 9
pod 'Eureka' :git => 'https://github.com/xmartlabs/Eureka.git' :branch => 'Xcode9-Swift4' does not w...
14
Alamofire validate() "eats" response data
So to all of you convinced the data is gone...it's not debugPrint(response) without validate(): debu...
13
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...
8
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' ...
8
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 ...
8
Eureka Error: Duplicate tag when using custom object with PushRow
It works if you declare your class ServicePaymentRate to be CustomStringConvertible ...
3
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 ...
3
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 ...
778
yarn Yarn Debian key expiry date updated (EXPKEYSIG 23E7166788B63E1E)
sudo apt-key adv --refresh-keys --keyserver keyserver.ubuntu.com also works to fix this issue for ma...
765
720
yarn GPG error: https://dl.yarnpkg.com/debian stable InRelease NO_PUBKEY E074D16EB6FF4DE3
Doing curl -sS https://dl.yarnpkg.com/debian/pubkey.gpg | sudo apt-key add - again was enough. ...
655
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 ...
527
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...
392
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 ...
383
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...
328
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 ...
310
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...
284
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: ...
269
bower EACCES: permission denied .config/configstore/bower-github.json
fixed it with sudo chown -R $USER:$GROUP ~/.npm sudo chown -R $USER:$GROUP ~/.config ...
248
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...
247
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...
193
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...
191
cli [BUG] Missing required argument #1
Same problem It appears something was released that breaks older versions of npm (we were using 3.5....
186
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 ...
185
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...
183
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...
182
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...
179
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...
175
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...
169
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雪天的雪...
169
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 ...
163
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...
156
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. ...
145
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...
144
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...