Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support Xcode 11 & Swift 5.1 #2804

Closed
mRs- opened this issue Jun 5, 2019 · 5 comments
Closed

Support Xcode 11 & Swift 5.1 #2804

mRs- opened this issue Jun 5, 2019 · 5 comments

Comments

@mRs-
Copy link

mRs- commented Jun 5, 2019

Currently it's not possible to get Carthage working with Xcode 11 and Swift 5.1.

It would be awesome to get some support for this to get my apps working and running.

I tried to compile Carthage by myself but currently it's not working :(

@tmspzz
Copy link
Member

tmspzz commented Jun 5, 2019

Master works on Xcode 11 and Swift 5.1, I can tell you first hand since I'm implementing #2799 on Catalina with Xcode 11.

@tmspzz tmspzz closed this as completed Jun 5, 2019
@ghost
Copy link

ghost commented Aug 9, 2019

I'm trying to install Carthage master on Catalina (Beta 5), but running into an error:

$ git clone "https://github.com/Carthage/Carthage.git"
Cloning into 'Carthage'...
remote: Enumerating objects: 22433, done.
remote: Total 22433 (delta 0), reused 0 (delta 0), pack-reused 22433
Receiving objects: 100% (22433/22433), 18.59 MiB | 24.34 MiB/s, done.
Resolving deltas: 100% (14656/14656), done.
$ cd Carthage                                                                                                              
$ make install                                                                                        
swift package --skip-update resolve
Fetching https://github.com/Quick/Nimble.git
Fetching https://github.com/thoughtbot/Curry.git
Fetching https://github.com/Quick/Quick.git
Fetching https://github.com/ReactiveCocoa/ReactiveSwift.git
Fetching https://github.com/Carthage/ReactiveTask.git
Fetching https://github.com/antitypical/Result.git
Fetching https://github.com/apple/swift-llbuild.git
Fetching https://github.com/mdiep/Tentacle.git
Fetching https://github.com/Carthage/Commandant.git
Fetching https://github.com/jdhealy/PrettyColors.git
Fetching https://github.com/apple/swift-package-manager.git
error: the package dependency graph could not be resolved; possibly because of these requirements:    https://github.com/apple/swift-llbuild.git @ 3aeecb428d202afe15633266dc862de27feab723
make: *** [installables] Error 1

@juraj-blahunka
Copy link

Seeing the following trace when building with mint / SPM:

<unknown>:0: error: fatal error encountered during compilation; please file a bug report with your project and the crash log
<unknown>:0: note: Type variable id overflow
Stack dump:
0.	Program arguments: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/swift -frontend -c /private/var/folders/48/sy74dwmd3_n9ym1dc0fh1fhhj37rwj/T/mint/github.com_Carthage_Carthage/Source/carthage/Archive.swift /private/var/folders/48/sy74dwmd3_n9ym1dc0fh1fhhj37rwj/T/mint/github.com_Carthage_Carthage/Source/carthage/Bootstrap.swift /private/var/folders/48/sy74dwmd3_n9ym1dc0fh1fhhj37rwj/T/mint/github.com_Carthage_Carthage/Source/carthage/Build.swift /private/var/folders/48/sy74dwmd3_n9ym1dc0fh1fhhj37rwj/T/mint/github.com_Carthage_Carthage/Source/carthage/Checkout.swift /private/var/folders/48/sy74dwmd3_n9ym1dc0fh1fhhj37rwj/T/mint/github.com_Carthage_Carthage/Source/carthage/CopyFrameworks.swift /private/var/folders/48/sy74dwmd3_n9ym1dc0fh1fhhj37rwj/T/mint/github.com_Carthage_Carthage/Source/carthage/Environment.swift /private/var/folders/48/sy74dwmd3_n9ym1dc0fh1fhhj37rwj/T/mint/github.com_Carthage_Carthage/Source/carthage/Extensions.swift /private/var/folders/48/sy74dwmd3_n9ym1dc0fh1fhhj37rwj/T/mint/github.com_Carthage_Carthage/Source/carthage/Fetch.swift /private/var/folders/48/sy74dwmd3_n9ym1dc0fh1fhhj37rwj/T/mint/github.com_Carthage_Carthage/Source/carthage/Formatting.swift /private/var/folders/48/sy74dwmd3_n9ym1dc0fh1fhhj37rwj/T/mint/github.com_Carthage_Carthage/Source/carthage/Outdated.swift /private/var/folders/48/sy74dwmd3_n9ym1dc0fh1fhhj37rwj/T/mint/github.com_Carthage_Carthage/Source/carthage/RemoteVersion.swift /private/var/folders/48/sy74dwmd3_n9ym1dc0fh1fhhj37rwj/T/mint/github.com_Carthage_Carthage/Source/carthage/Update.swift /private/var/folders/48/sy74dwmd3_n9ym1dc0fh1fhhj37rwj/T/mint/github.com_Carthage_Carthage/Source/carthage/Validate.swift /private/var/folders/48/sy74dwmd3_n9ym1dc0fh1fhhj37rwj/T/mint/github.com_Carthage_Carthage/Source/carthage/Version.swift /private/var/folders/48/sy74dwmd3_n9ym1dc0fh1fhhj37rwj/T/mint/github.com_Carthage_Carthage/Source/carthage/main.swift -supplementary-output-file-map /var/folders/48/sy74dwmd3_n9ym1dc0fh1fhhj37rwj/T/supplementaryOutputs-212b59 -target x86_64-apple-macosx10.14 -enable-objc-interop -sdk /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk -I /private/var/folders/48/sy74dwmd3_n9ym1dc0fh1fhhj37rwj/T/mint/github.com_Carthage_Carthage/.build/x86_64-apple-macosx/release -I /private/var/folders/48/sy74dwmd3_n9ym1dc0fh1fhhj37rwj/T/mint/github.com_Carthage_Carthage/.build/checkouts/swift-llbuild/products/libllbuild/include -I /private/var/folders/48/sy74dwmd3_n9ym1dc0fh1fhhj37rwj/T/mint/github.com_Carthage_Carthage/.build/checkouts/swift-llbuild/lib/BuildSystem/include -I /private/var/folders/48/sy74dwmd3_n9ym1dc0fh1fhhj37rwj/T/mint/github.com_Carthage_Carthage/.build/checkouts/swift-llbuild/lib/Core/include -I /private/var/folders/48/sy74dwmd3_n9ym1dc0fh1fhhj37rwj/T/mint/github.com_Carthage_Carthage/.build/checkouts/swift-llbuild/lib/Basic/include -I /private/var/folders/48/sy74dwmd3_n9ym1dc0fh1fhhj37rwj/T/mint/github.com_Carthage_Carthage/.build/checkouts/swift-llbuild/lib/llvm/Support/include -I /private/var/folders/48/sy74dwmd3_n9ym1dc0fh1fhhj37rwj/T/mint/github.com_Carthage_Carthage/.build/checkouts/swift-llbuild/lib/llvm/Demangle/include -I /private/var/folders/48/sy74dwmd3_n9ym1dc0fh1fhhj37rwj/T/mint/github.com_Carthage_Carthage/.build/checkouts/swift-package-manager/Sources/clibc/include -F /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/Library/Frameworks -module-cache-path /private/var/folders/48/sy74dwmd3_n9ym1dc0fh1fhhj37rwj/T/mint/github.com_Carthage_Carthage/.build/x86_64-apple-macosx/release/ModuleCache -swift-version 4 -O -D SWIFT_PACKAGE -Xcc -fmodule-map-file=/private/var/folders/48/sy74dwmd3_n9ym1dc0fh1fhhj37rwj/T/mint/github.com_Carthage_Carthage/.build/checkouts/swift-llbuild/products/libllbuild/include/module.modulemap -Xcc -fmodule-map-file=/private/var/folders/48/sy74dwmd3_n9ym1dc0fh1fhhj37rwj/T/mint/github.com_Carthage_Carthage/.build/x86_64-apple-macosx/release/llbuildBuildSystem.build/module.modulemap -Xcc -fmodule-map-file=/private/var/folders/48/sy74dwmd3_n9ym1dc0fh1fhhj37rwj/T/mint/github.com_Carthage_Carthage/.build/x86_64-apple-macosx/release/llbuildCore.build/module.modulemap -Xcc -fmodule-map-file=/private/var/folders/48/sy74dwmd3_n9ym1dc0fh1fhhj37rwj/T/mint/github.com_Carthage_Carthage/.build/x86_64-apple-macosx/release/llbuildBasic.build/module.modulemap -Xcc -fmodule-map-file=/private/var/folders/48/sy74dwmd3_n9ym1dc0fh1fhhj37rwj/T/mint/github.com_Carthage_Carthage/.build/x86_64-apple-macosx/release/llvmSupport.build/module.modulemap -Xcc -fmodule-map-file=/private/var/folders/48/sy74dwmd3_n9ym1dc0fh1fhhj37rwj/T/mint/github.com_Carthage_Carthage/.build/x86_64-apple-macosx/release/llvmDemangle.build/module.modulemap -Xcc -fmodule-map-file=/private/var/folders/48/sy74dwmd3_n9ym1dc0fh1fhhj37rwj/T/mint/github.com_Carthage_Carthage/.build/checkouts/swift-package-manager/Sources/clibc/include/module.modulemap -module-name carthage -num-threads 12 -o /private/var/folders/48/sy74dwmd3_n9ym1dc0fh1fhhj37rwj/T/mint/github.com_Carthage_Carthage/.build/x86_64-apple-macosx/release/carthage.build/Archive.swift.o -o /private/var/folders/48/sy74dwmd3_n9ym1dc0fh1fhhj37rwj/T/mint/github.com_Carthage_Carthage/.build/x86_64-apple-macosx/release/carthage.build/Bootstrap.swift.o -o /private/var/folders/48/sy74dwmd3_n9ym1dc0fh1fhhj37rwj/T/mint/github.com_Carthage_Carthage/.build/x86_64-apple-macosx/release/carthage.build/Build.swift.o -o /private/var/folders/48/sy74dwmd3_n9ym1dc0fh1fhhj37rwj/T/mint/github.com_Carthage_Carthage/.build/x86_64-apple-macosx/release/carthage.build/Checkout.swift.o -o /private/var/folders/48/sy74dwmd3_n9ym1dc0fh1fhhj37rwj/T/mint/github.com_Carthage_Carthage/.build/x86_64-apple-macosx/release/carthage.build/CopyFrameworks.swift.o -o /private/var/folders/48/sy74dwmd3_n9ym1dc0fh1fhhj37rwj/T/mint/github.com_Carthage_Carthage/.build/x86_64-apple-macosx/release/carthage.build/Environment.swift.o -o /private/var/folders/48/sy74dwmd3_n9ym1dc0fh1fhhj37rwj/T/mint/github.com_Carthage_Carthage/.build/x86_64-apple-macosx/release/carthage.build/Extensions.swift.o -o /private/var/folders/48/sy74dwmd3_n9ym1dc0fh1fhhj37rwj/T/mint/github.com_Carthage_Carthage/.build/x86_64-apple-macosx/release/carthage.build/Fetch.swift.o -o /private/var/folders/48/sy74dwmd3_n9ym1dc0fh1fhhj37rwj/T/mint/github.com_Carthage_Carthage/.build/x86_64-apple-macosx/release/carthage.build/Formatting.swift.o -o /private/var/folders/48/sy74dwmd3_n9ym1dc0fh1fhhj37rwj/T/mint/github.com_Carthage_Carthage/.build/x86_64-apple-macosx/release/carthage.build/Outdated.swift.o -o /private/var/folders/48/sy74dwmd3_n9ym1dc0fh1fhhj37rwj/T/mint/github.com_Carthage_Carthage/.build/x86_64-apple-macosx/release/carthage.build/RemoteVersion.swift.o -o /private/var/folders/48/sy74dwmd3_n9ym1dc0fh1fhhj37rwj/T/mint/github.com_Carthage_Carthage/.build/x86_64-apple-macosx/release/carthage.build/Update.swift.o -o /private/var/folders/48/sy74dwmd3_n9ym1dc0fh1fhhj37rwj/T/mint/github.com_Carthage_Carthage/.build/x86_64-apple-macosx/release/carthage.build/Validate.swift.o -o /private/var/folders/48/sy74dwmd3_n9ym1dc0fh1fhhj37rwj/T/mint/github.com_Carthage_Carthage/.build/x86_64-apple-macosx/release/carthage.build/Version.swift.o -o /private/var/folders/48/sy74dwmd3_n9ym1dc0fh1fhhj37rwj/T/mint/github.com_Carthage_Carthage/.build/x86_64-apple-macosx/release/carthage.build/main.swift.o 
1.	While type-checking 'evaluate(_:)' (at /private/var/folders/48/sy74dwmd3_n9ym1dc0fh1fhhj37rwj/T/mint/github.com_Carthage_Carthage/Source/carthage/Update.swift:64:10)
2.	While type-checking statement at [/private/var/folders/48/sy74dwmd3_n9ym1dc0fh1fhhj37rwj/T/mint/github.com_Carthage_Carthage/Source/carthage/Update.swift:64:103 - line:77:3] RangeText="{
			let buildDescription = "skip the building of dependencies after updating\n(ignored if --no-checkout option is present)"

			let dependenciesUsage = "the dependency names to update, checkout and build"

			return curry(self.init)
				<*> mode <| Option(key: "checkout", defaultValue: true, usage: "skip the checking out of dependencies after updating")
				<*> mode <| Option(key: "build", defaultValue: true, usage: buildDescription)
				<*> mode <| Option(key: "verbose", defaultValue: false, usage: "print xcodebuild output inline (ignored if --no-build option is present)")
				<*> mode <| Option(key: "log-path", defaultValue: nil, usage: "path to the xcode build output. A temporary file is used by default")
				<*> mode <| Option(key: "new-resolver", defaultValue: false, usage: "use the new resolver codeline when calculating dependencies. Default is false")
				<*> BuildOptions.evaluate(mode, addendum: "\n(ignored if --no-build option is present)")
				<*> CheckoutCommand.Options.evaluate(mode, dependenciesUsage: dependenciesUsage)
		"
3.	While type-checking statement at [/private/var/folders/48/sy74dwmd3_n9ym1dc0fh1fhhj37rwj/T/mint/github.com_Carthage_Carthage/Source/carthage/Update.swift:69:4 - line:76:84] RangeText="return curry(self.init)
				<*> mode <| Option(key: "checkout", defaultValue: true, usage: "skip the checking out of dependencies after updating")
				<*> mode <| Option(key: "build", defaultValue: true, usage: buildDescription)
				<*> mode <| Option(key: "verbose", defaultValue: false, usage: "print xcodebuild output inline (ignored if --no-build option is present)")
				<*> mode <| Option(key: "log-path", defaultValue: nil, usage: "path to the xcode build output. A temporary file is used by default")
				<*> mode <| Option(key: "new-resolver", defaultValue: false, usage: "use the new resolver codeline when calculating dependencies. Default is false")
				<*> BuildOptions.evaluate(mode, addendum: "\n(ignored if --no-build option is present)")
				<*> CheckoutCommand.Options.evaluate(mode, dependenciesUsage: dependenciesUsage"
4.	While type-checking expression at [/private/var/folders/48/sy74dwmd3_n9ym1dc0fh1fhhj37rwj/T/mint/github.com_Carthage_Carthage/Source/carthage/Update.swift:69:11 - line:76:84] RangeText="curry(self.init)
				<*> mode <| Option(key: "checkout", defaultValue: true, usage: "skip the checking out of dependencies after updating")
				<*> mode <| Option(key: "build", defaultValue: true, usage: buildDescription)
				<*> mode <| Option(key: "verbose", defaultValue: false, usage: "print xcodebuild output inline (ignored if --no-build option is present)")
				<*> mode <| Option(key: "log-path", defaultValue: nil, usage: "path to the xcode build output. A temporary file is used by default")
				<*> mode <| Option(key: "new-resolver", defaultValue: false, usage: "use the new resolver codeline when calculating dependencies. Default is false")
				<*> BuildOptions.evaluate(mode, addendum: "\n(ignored if --no-build option is present)")
				<*> CheckoutCommand.Options.evaluate(mode, dependenciesUsage: dependenciesUsage"
0  swift                    0x00000001143d6eb3 PrintStackTraceSignalHandler(void*) + 51
1  swift                    0x00000001143d6686 SignalHandler(int) + 358
2  libsystem_platform.dylib 0x00007fff5a02db5d _sigtramp + 29
3  libsystem_platform.dylib 0x0000000118c72b76 _sigtramp + 3200536630
4  libsystem_c.dylib        0x00007fff59ee76a6 abort + 127
5  swift                    0x0000000110025330 std::__1::unique_ptr<swift::DiagnosticConsumer, std::__1::default_delete<swift::DiagnosticConsumer> > llvm::function_ref<std::__1::unique_ptr<swift::DiagnosticConsumer, std::__1::default_delete<swift::DiagnosticConsumer> > (swift::InputFile const&)>::callback_fn<createSerializedDiagnosticConsumerIfNeeded(swift::FrontendInputsAndOutputs const&)::$_15>(long, swift::InputFile const&) + 0
6  swift                    0x000000011434fcd6 llvm::report_fatal_error(llvm::Twine const&, bool) + 278
7  swift                    0x000000011434fbbb llvm::report_fatal_error(char const*, bool) + 43
8  swift                    0x0000000110a60778 swift::constraints::ConstraintSystem::createTypeVariable(swift::constraints::ConstraintLocator*, unsigned int) + 408
9  swift                    0x0000000110ac764c swift::constraints::ConstraintSystem::openGeneric(swift::DeclContext*, swift::DeclContext*, swift::GenericSignature*, bool, swift::constraints::ConstraintLocatorBuilder, llvm::DenseMap<swift::GenericTypeParamType*, swift::TypeVariableType*, llvm::DenseMapInfo<swift::GenericTypeParamType*>, llvm::detail::DenseMapPair<swift::GenericTypeParamType*, swift::TypeVariableType*> >&, bool) + 412
10 swift                    0x0000000110ac8596 swift::constraints::ConstraintSystem::openFunctionType(swift::AnyFunctionType*, unsigned int, swift::constraints::ConstraintLocatorBuilder, llvm::DenseMap<swift::GenericTypeParamType*, swift::TypeVariableType*, llvm::DenseMapInfo<swift::GenericTypeParamType*>, llvm::detail::DenseMapPair<swift::GenericTypeParamType*, swift::TypeVariableType*> >&, swift::DeclContext*, swift::DeclContext*, bool, bool) + 182
11 swift                    0x0000000110ac98e9 swift::constraints::ConstraintSystem::getTypeOfReference(swift::ValueDecl*, swift::FunctionRefKind, swift::constraints::ConstraintLocatorBuilder, swift::DeclContext*) + 1097
12 swift                    0x0000000110acc172 swift::constraints::ConstraintSystem::resolveOverload(swift::constraints::ConstraintLocator*, swift::Type, swift::constraints::OverloadChoice, swift::DeclContext*) + 802
13 swift                    0x0000000110a5fa24 swift::constraints::ConstraintSystem::simplifyConstraint(swift::constraints::Constraint const&) + 804
14 swift                    0x0000000110a600a9 swift::constraints::ConstraintSystem::simplifyDisjunctionChoice(swift::constraints::Constraint*) + 25
15 swift                    0x0000000110a7c529 swift::constraints::DisjunctionStep::attempt(swift::constraints::DisjunctionChoice const&) + 185
16 swift                    0x0000000110a7bd73 swift::constraints::BindingStep<swift::constraints::DisjunctionChoiceProducer>::take(bool) + 595
17 swift                    0x0000000110a66e74 swift::constraints::ConstraintSystem::solve(llvm::SmallVectorImpl<swift::constraints::Solution>&) + 276
18 swift                    0x0000000110a6bef4 swift::constraints::ConstraintSystem::solve(swift::Expr*, llvm::SmallVectorImpl<swift::constraints::Solution>&, swift::FreeTypeVariableBinding) + 52
19 swift                    0x0000000110a6b746 swift::constraints::ConstraintSystem::solve(swift::Expr*&, swift::Type, swift::ExprTypeCheckListener*, llvm::SmallVectorImpl<swift::constraints::Solution>&, swift::FreeTypeVariableBinding) + 9238
20 swift                    0x0000000110b645c2 swift::TypeChecker::typeCheckExpressionImpl(swift::Expr*&, swift::DeclContext*, swift::TypeLoc, swift::ContextualTypePurpose, swift::OptionSet<swift::TypeCheckExprFlags, unsigned int>, swift::ExprTypeCheckListener&, swift::constraints::ConstraintSystem*) + 1042
21 swift                    0x0000000110c15e66 swift::ASTVisitor<(anonymous namespace)::StmtChecker, void, swift::Stmt*, void, void, void, void>::visit(swift::Stmt*) + 20678
22 swift                    0x0000000110c17001 bool (anonymous namespace)::StmtChecker::typeCheckStmt<swift::Stmt>(swift::Stmt*&) + 129
23 swift                    0x0000000110c16a93 swift::ASTVisitor<(anonymous namespace)::StmtChecker, void, swift::Stmt*, void, void, void, void>::visit(swift::Stmt*) + 23795
24 swift                    0x0000000110c10d41 bool (anonymous namespace)::StmtChecker::typeCheckStmt<swift::BraceStmt>(swift::BraceStmt*&) + 129
25 swift                    0x0000000110c10840 swift::TypeChecker::typeCheckAbstractFunctionBodyUntil(swift::AbstractFunctionDecl*, swift::SourceLoc) + 5456
26 swift                    0x0000000110c189a1 swift::TypeChecker::typeCheckAbstractFunctionBody(swift::AbstractFunctionDecl*) + 561
27 swift                    0x0000000110c354a2 swift::performTypeChecking(swift::SourceFile&, swift::TopLevelContext&, swift::OptionSet<swift::TypeCheckingFlags, unsigned int>, unsigned int, unsigned int, unsigned int, unsigned int, unsigned int) + 2082
28 swift                    0x000000011033158b swift::CompilerInstance::parseAndCheckTypesUpTo(swift::CompilerInstance::ImplicitImports const&, swift::SourceFile::ASTStage_t)::$_0::operator()(swift::SourceFile&) const + 91
29 swift                    0x0000000110330338 swift::CompilerInstance::performSemaUpTo(swift::SourceFile::ASTStage_t) + 5448
30 swift                    0x0000000110025b6f performCompile(swift::CompilerInstance&, swift::CompilerInvocation&, llvm::ArrayRef<char const*>, int&, swift::FrontendObserver*, swift::UnifiedStatsReporter*) + 815
31 swift                    0x0000000110022034 swift::performFrontend(llvm::ArrayRef<char const*>, char const*, void*, swift::FrontendObserver*) + 6820
32 swift                    0x000000010ffaf5a3 main + 1219
33 libdyld.dylib            0x00007fff59e423d5 start + 1
34 libdyld.dylib            0x0000000000000062 start + 2786843790
🌱  Encountered error during "swift build -c release -Xswiftc -target -Xswiftc x86_64-apple-macosx10.14". Use --verbose to see full output
🌱  Failed to build Carthage 0.33.0 with SPM
Xcode 11.0
Build version 11A420a

Apple Swift version 5.1 (swiftlang-1100.0.270.13 clang-1100.0.33.7)
Target: x86_64-apple-darwin18.7.0

@amine2233
Copy link

Seeing the following trace when building with mint / SPM:

<unknown>:0: error: fatal error encountered during compilation; please file a bug report with your project and the crash log
<unknown>:0: note: Type variable id overflow
Stack dump:
0.	Program arguments: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/swift -frontend -c /private/var/folders/48/sy74dwmd3_n9ym1dc0fh1fhhj37rwj/T/mint/github.com_Carthage_Carthage/Source/carthage/Archive.swift /private/var/folders/48/sy74dwmd3_n9ym1dc0fh1fhhj37rwj/T/mint/github.com_Carthage_Carthage/Source/carthage/Bootstrap.swift /private/var/folders/48/sy74dwmd3_n9ym1dc0fh1fhhj37rwj/T/mint/github.com_Carthage_Carthage/Source/carthage/Build.swift /private/var/folders/48/sy74dwmd3_n9ym1dc0fh1fhhj37rwj/T/mint/github.com_Carthage_Carthage/Source/carthage/Checkout.swift /private/var/folders/48/sy74dwmd3_n9ym1dc0fh1fhhj37rwj/T/mint/github.com_Carthage_Carthage/Source/carthage/CopyFrameworks.swift /private/var/folders/48/sy74dwmd3_n9ym1dc0fh1fhhj37rwj/T/mint/github.com_Carthage_Carthage/Source/carthage/Environment.swift /private/var/folders/48/sy74dwmd3_n9ym1dc0fh1fhhj37rwj/T/mint/github.com_Carthage_Carthage/Source/carthage/Extensions.swift /private/var/folders/48/sy74dwmd3_n9ym1dc0fh1fhhj37rwj/T/mint/github.com_Carthage_Carthage/Source/carthage/Fetch.swift /private/var/folders/48/sy74dwmd3_n9ym1dc0fh1fhhj37rwj/T/mint/github.com_Carthage_Carthage/Source/carthage/Formatting.swift /private/var/folders/48/sy74dwmd3_n9ym1dc0fh1fhhj37rwj/T/mint/github.com_Carthage_Carthage/Source/carthage/Outdated.swift /private/var/folders/48/sy74dwmd3_n9ym1dc0fh1fhhj37rwj/T/mint/github.com_Carthage_Carthage/Source/carthage/RemoteVersion.swift /private/var/folders/48/sy74dwmd3_n9ym1dc0fh1fhhj37rwj/T/mint/github.com_Carthage_Carthage/Source/carthage/Update.swift /private/var/folders/48/sy74dwmd3_n9ym1dc0fh1fhhj37rwj/T/mint/github.com_Carthage_Carthage/Source/carthage/Validate.swift /private/var/folders/48/sy74dwmd3_n9ym1dc0fh1fhhj37rwj/T/mint/github.com_Carthage_Carthage/Source/carthage/Version.swift /private/var/folders/48/sy74dwmd3_n9ym1dc0fh1fhhj37rwj/T/mint/github.com_Carthage_Carthage/Source/carthage/main.swift -supplementary-output-file-map /var/folders/48/sy74dwmd3_n9ym1dc0fh1fhhj37rwj/T/supplementaryOutputs-212b59 -target x86_64-apple-macosx10.14 -enable-objc-interop -sdk /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk -I /private/var/folders/48/sy74dwmd3_n9ym1dc0fh1fhhj37rwj/T/mint/github.com_Carthage_Carthage/.build/x86_64-apple-macosx/release -I /private/var/folders/48/sy74dwmd3_n9ym1dc0fh1fhhj37rwj/T/mint/github.com_Carthage_Carthage/.build/checkouts/swift-llbuild/products/libllbuild/include -I /private/var/folders/48/sy74dwmd3_n9ym1dc0fh1fhhj37rwj/T/mint/github.com_Carthage_Carthage/.build/checkouts/swift-llbuild/lib/BuildSystem/include -I /private/var/folders/48/sy74dwmd3_n9ym1dc0fh1fhhj37rwj/T/mint/github.com_Carthage_Carthage/.build/checkouts/swift-llbuild/lib/Core/include -I /private/var/folders/48/sy74dwmd3_n9ym1dc0fh1fhhj37rwj/T/mint/github.com_Carthage_Carthage/.build/checkouts/swift-llbuild/lib/Basic/include -I /private/var/folders/48/sy74dwmd3_n9ym1dc0fh1fhhj37rwj/T/mint/github.com_Carthage_Carthage/.build/checkouts/swift-llbuild/lib/llvm/Support/include -I /private/var/folders/48/sy74dwmd3_n9ym1dc0fh1fhhj37rwj/T/mint/github.com_Carthage_Carthage/.build/checkouts/swift-llbuild/lib/llvm/Demangle/include -I /private/var/folders/48/sy74dwmd3_n9ym1dc0fh1fhhj37rwj/T/mint/github.com_Carthage_Carthage/.build/checkouts/swift-package-manager/Sources/clibc/include -F /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/Library/Frameworks -module-cache-path /private/var/folders/48/sy74dwmd3_n9ym1dc0fh1fhhj37rwj/T/mint/github.com_Carthage_Carthage/.build/x86_64-apple-macosx/release/ModuleCache -swift-version 4 -O -D SWIFT_PACKAGE -Xcc -fmodule-map-file=/private/var/folders/48/sy74dwmd3_n9ym1dc0fh1fhhj37rwj/T/mint/github.com_Carthage_Carthage/.build/checkouts/swift-llbuild/products/libllbuild/include/module.modulemap -Xcc -fmodule-map-file=/private/var/folders/48/sy74dwmd3_n9ym1dc0fh1fhhj37rwj/T/mint/github.com_Carthage_Carthage/.build/x86_64-apple-macosx/release/llbuildBuildSystem.build/module.modulemap -Xcc -fmodule-map-file=/private/var/folders/48/sy74dwmd3_n9ym1dc0fh1fhhj37rwj/T/mint/github.com_Carthage_Carthage/.build/x86_64-apple-macosx/release/llbuildCore.build/module.modulemap -Xcc -fmodule-map-file=/private/var/folders/48/sy74dwmd3_n9ym1dc0fh1fhhj37rwj/T/mint/github.com_Carthage_Carthage/.build/x86_64-apple-macosx/release/llbuildBasic.build/module.modulemap -Xcc -fmodule-map-file=/private/var/folders/48/sy74dwmd3_n9ym1dc0fh1fhhj37rwj/T/mint/github.com_Carthage_Carthage/.build/x86_64-apple-macosx/release/llvmSupport.build/module.modulemap -Xcc -fmodule-map-file=/private/var/folders/48/sy74dwmd3_n9ym1dc0fh1fhhj37rwj/T/mint/github.com_Carthage_Carthage/.build/x86_64-apple-macosx/release/llvmDemangle.build/module.modulemap -Xcc -fmodule-map-file=/private/var/folders/48/sy74dwmd3_n9ym1dc0fh1fhhj37rwj/T/mint/github.com_Carthage_Carthage/.build/checkouts/swift-package-manager/Sources/clibc/include/module.modulemap -module-name carthage -num-threads 12 -o /private/var/folders/48/sy74dwmd3_n9ym1dc0fh1fhhj37rwj/T/mint/github.com_Carthage_Carthage/.build/x86_64-apple-macosx/release/carthage.build/Archive.swift.o -o /private/var/folders/48/sy74dwmd3_n9ym1dc0fh1fhhj37rwj/T/mint/github.com_Carthage_Carthage/.build/x86_64-apple-macosx/release/carthage.build/Bootstrap.swift.o -o /private/var/folders/48/sy74dwmd3_n9ym1dc0fh1fhhj37rwj/T/mint/github.com_Carthage_Carthage/.build/x86_64-apple-macosx/release/carthage.build/Build.swift.o -o /private/var/folders/48/sy74dwmd3_n9ym1dc0fh1fhhj37rwj/T/mint/github.com_Carthage_Carthage/.build/x86_64-apple-macosx/release/carthage.build/Checkout.swift.o -o /private/var/folders/48/sy74dwmd3_n9ym1dc0fh1fhhj37rwj/T/mint/github.com_Carthage_Carthage/.build/x86_64-apple-macosx/release/carthage.build/CopyFrameworks.swift.o -o /private/var/folders/48/sy74dwmd3_n9ym1dc0fh1fhhj37rwj/T/mint/github.com_Carthage_Carthage/.build/x86_64-apple-macosx/release/carthage.build/Environment.swift.o -o /private/var/folders/48/sy74dwmd3_n9ym1dc0fh1fhhj37rwj/T/mint/github.com_Carthage_Carthage/.build/x86_64-apple-macosx/release/carthage.build/Extensions.swift.o -o /private/var/folders/48/sy74dwmd3_n9ym1dc0fh1fhhj37rwj/T/mint/github.com_Carthage_Carthage/.build/x86_64-apple-macosx/release/carthage.build/Fetch.swift.o -o /private/var/folders/48/sy74dwmd3_n9ym1dc0fh1fhhj37rwj/T/mint/github.com_Carthage_Carthage/.build/x86_64-apple-macosx/release/carthage.build/Formatting.swift.o -o /private/var/folders/48/sy74dwmd3_n9ym1dc0fh1fhhj37rwj/T/mint/github.com_Carthage_Carthage/.build/x86_64-apple-macosx/release/carthage.build/Outdated.swift.o -o /private/var/folders/48/sy74dwmd3_n9ym1dc0fh1fhhj37rwj/T/mint/github.com_Carthage_Carthage/.build/x86_64-apple-macosx/release/carthage.build/RemoteVersion.swift.o -o /private/var/folders/48/sy74dwmd3_n9ym1dc0fh1fhhj37rwj/T/mint/github.com_Carthage_Carthage/.build/x86_64-apple-macosx/release/carthage.build/Update.swift.o -o /private/var/folders/48/sy74dwmd3_n9ym1dc0fh1fhhj37rwj/T/mint/github.com_Carthage_Carthage/.build/x86_64-apple-macosx/release/carthage.build/Validate.swift.o -o /private/var/folders/48/sy74dwmd3_n9ym1dc0fh1fhhj37rwj/T/mint/github.com_Carthage_Carthage/.build/x86_64-apple-macosx/release/carthage.build/Version.swift.o -o /private/var/folders/48/sy74dwmd3_n9ym1dc0fh1fhhj37rwj/T/mint/github.com_Carthage_Carthage/.build/x86_64-apple-macosx/release/carthage.build/main.swift.o 
1.	While type-checking 'evaluate(_:)' (at /private/var/folders/48/sy74dwmd3_n9ym1dc0fh1fhhj37rwj/T/mint/github.com_Carthage_Carthage/Source/carthage/Update.swift:64:10)
2.	While type-checking statement at [/private/var/folders/48/sy74dwmd3_n9ym1dc0fh1fhhj37rwj/T/mint/github.com_Carthage_Carthage/Source/carthage/Update.swift:64:103 - line:77:3] RangeText="{
			let buildDescription = "skip the building of dependencies after updating\n(ignored if --no-checkout option is present)"

			let dependenciesUsage = "the dependency names to update, checkout and build"

			return curry(self.init)
				<*> mode <| Option(key: "checkout", defaultValue: true, usage: "skip the checking out of dependencies after updating")
				<*> mode <| Option(key: "build", defaultValue: true, usage: buildDescription)
				<*> mode <| Option(key: "verbose", defaultValue: false, usage: "print xcodebuild output inline (ignored if --no-build option is present)")
				<*> mode <| Option(key: "log-path", defaultValue: nil, usage: "path to the xcode build output. A temporary file is used by default")
				<*> mode <| Option(key: "new-resolver", defaultValue: false, usage: "use the new resolver codeline when calculating dependencies. Default is false")
				<*> BuildOptions.evaluate(mode, addendum: "\n(ignored if --no-build option is present)")
				<*> CheckoutCommand.Options.evaluate(mode, dependenciesUsage: dependenciesUsage)
		"
3.	While type-checking statement at [/private/var/folders/48/sy74dwmd3_n9ym1dc0fh1fhhj37rwj/T/mint/github.com_Carthage_Carthage/Source/carthage/Update.swift:69:4 - line:76:84] RangeText="return curry(self.init)
				<*> mode <| Option(key: "checkout", defaultValue: true, usage: "skip the checking out of dependencies after updating")
				<*> mode <| Option(key: "build", defaultValue: true, usage: buildDescription)
				<*> mode <| Option(key: "verbose", defaultValue: false, usage: "print xcodebuild output inline (ignored if --no-build option is present)")
				<*> mode <| Option(key: "log-path", defaultValue: nil, usage: "path to the xcode build output. A temporary file is used by default")
				<*> mode <| Option(key: "new-resolver", defaultValue: false, usage: "use the new resolver codeline when calculating dependencies. Default is false")
				<*> BuildOptions.evaluate(mode, addendum: "\n(ignored if --no-build option is present)")
				<*> CheckoutCommand.Options.evaluate(mode, dependenciesUsage: dependenciesUsage"
4.	While type-checking expression at [/private/var/folders/48/sy74dwmd3_n9ym1dc0fh1fhhj37rwj/T/mint/github.com_Carthage_Carthage/Source/carthage/Update.swift:69:11 - line:76:84] RangeText="curry(self.init)
				<*> mode <| Option(key: "checkout", defaultValue: true, usage: "skip the checking out of dependencies after updating")
				<*> mode <| Option(key: "build", defaultValue: true, usage: buildDescription)
				<*> mode <| Option(key: "verbose", defaultValue: false, usage: "print xcodebuild output inline (ignored if --no-build option is present)")
				<*> mode <| Option(key: "log-path", defaultValue: nil, usage: "path to the xcode build output. A temporary file is used by default")
				<*> mode <| Option(key: "new-resolver", defaultValue: false, usage: "use the new resolver codeline when calculating dependencies. Default is false")
				<*> BuildOptions.evaluate(mode, addendum: "\n(ignored if --no-build option is present)")
				<*> CheckoutCommand.Options.evaluate(mode, dependenciesUsage: dependenciesUsage"
0  swift                    0x00000001143d6eb3 PrintStackTraceSignalHandler(void*) + 51
1  swift                    0x00000001143d6686 SignalHandler(int) + 358
2  libsystem_platform.dylib 0x00007fff5a02db5d _sigtramp + 29
3  libsystem_platform.dylib 0x0000000118c72b76 _sigtramp + 3200536630
4  libsystem_c.dylib        0x00007fff59ee76a6 abort + 127
5  swift                    0x0000000110025330 std::__1::unique_ptr<swift::DiagnosticConsumer, std::__1::default_delete<swift::DiagnosticConsumer> > llvm::function_ref<std::__1::unique_ptr<swift::DiagnosticConsumer, std::__1::default_delete<swift::DiagnosticConsumer> > (swift::InputFile const&)>::callback_fn<createSerializedDiagnosticConsumerIfNeeded(swift::FrontendInputsAndOutputs const&)::$_15>(long, swift::InputFile const&) + 0
6  swift                    0x000000011434fcd6 llvm::report_fatal_error(llvm::Twine const&, bool) + 278
7  swift                    0x000000011434fbbb llvm::report_fatal_error(char const*, bool) + 43
8  swift                    0x0000000110a60778 swift::constraints::ConstraintSystem::createTypeVariable(swift::constraints::ConstraintLocator*, unsigned int) + 408
9  swift                    0x0000000110ac764c swift::constraints::ConstraintSystem::openGeneric(swift::DeclContext*, swift::DeclContext*, swift::GenericSignature*, bool, swift::constraints::ConstraintLocatorBuilder, llvm::DenseMap<swift::GenericTypeParamType*, swift::TypeVariableType*, llvm::DenseMapInfo<swift::GenericTypeParamType*>, llvm::detail::DenseMapPair<swift::GenericTypeParamType*, swift::TypeVariableType*> >&, bool) + 412
10 swift                    0x0000000110ac8596 swift::constraints::ConstraintSystem::openFunctionType(swift::AnyFunctionType*, unsigned int, swift::constraints::ConstraintLocatorBuilder, llvm::DenseMap<swift::GenericTypeParamType*, swift::TypeVariableType*, llvm::DenseMapInfo<swift::GenericTypeParamType*>, llvm::detail::DenseMapPair<swift::GenericTypeParamType*, swift::TypeVariableType*> >&, swift::DeclContext*, swift::DeclContext*, bool, bool) + 182
11 swift                    0x0000000110ac98e9 swift::constraints::ConstraintSystem::getTypeOfReference(swift::ValueDecl*, swift::FunctionRefKind, swift::constraints::ConstraintLocatorBuilder, swift::DeclContext*) + 1097
12 swift                    0x0000000110acc172 swift::constraints::ConstraintSystem::resolveOverload(swift::constraints::ConstraintLocator*, swift::Type, swift::constraints::OverloadChoice, swift::DeclContext*) + 802
13 swift                    0x0000000110a5fa24 swift::constraints::ConstraintSystem::simplifyConstraint(swift::constraints::Constraint const&) + 804
14 swift                    0x0000000110a600a9 swift::constraints::ConstraintSystem::simplifyDisjunctionChoice(swift::constraints::Constraint*) + 25
15 swift                    0x0000000110a7c529 swift::constraints::DisjunctionStep::attempt(swift::constraints::DisjunctionChoice const&) + 185
16 swift                    0x0000000110a7bd73 swift::constraints::BindingStep<swift::constraints::DisjunctionChoiceProducer>::take(bool) + 595
17 swift                    0x0000000110a66e74 swift::constraints::ConstraintSystem::solve(llvm::SmallVectorImpl<swift::constraints::Solution>&) + 276
18 swift                    0x0000000110a6bef4 swift::constraints::ConstraintSystem::solve(swift::Expr*, llvm::SmallVectorImpl<swift::constraints::Solution>&, swift::FreeTypeVariableBinding) + 52
19 swift                    0x0000000110a6b746 swift::constraints::ConstraintSystem::solve(swift::Expr*&, swift::Type, swift::ExprTypeCheckListener*, llvm::SmallVectorImpl<swift::constraints::Solution>&, swift::FreeTypeVariableBinding) + 9238
20 swift                    0x0000000110b645c2 swift::TypeChecker::typeCheckExpressionImpl(swift::Expr*&, swift::DeclContext*, swift::TypeLoc, swift::ContextualTypePurpose, swift::OptionSet<swift::TypeCheckExprFlags, unsigned int>, swift::ExprTypeCheckListener&, swift::constraints::ConstraintSystem*) + 1042
21 swift                    0x0000000110c15e66 swift::ASTVisitor<(anonymous namespace)::StmtChecker, void, swift::Stmt*, void, void, void, void>::visit(swift::Stmt*) + 20678
22 swift                    0x0000000110c17001 bool (anonymous namespace)::StmtChecker::typeCheckStmt<swift::Stmt>(swift::Stmt*&) + 129
23 swift                    0x0000000110c16a93 swift::ASTVisitor<(anonymous namespace)::StmtChecker, void, swift::Stmt*, void, void, void, void>::visit(swift::Stmt*) + 23795
24 swift                    0x0000000110c10d41 bool (anonymous namespace)::StmtChecker::typeCheckStmt<swift::BraceStmt>(swift::BraceStmt*&) + 129
25 swift                    0x0000000110c10840 swift::TypeChecker::typeCheckAbstractFunctionBodyUntil(swift::AbstractFunctionDecl*, swift::SourceLoc) + 5456
26 swift                    0x0000000110c189a1 swift::TypeChecker::typeCheckAbstractFunctionBody(swift::AbstractFunctionDecl*) + 561
27 swift                    0x0000000110c354a2 swift::performTypeChecking(swift::SourceFile&, swift::TopLevelContext&, swift::OptionSet<swift::TypeCheckingFlags, unsigned int>, unsigned int, unsigned int, unsigned int, unsigned int, unsigned int) + 2082
28 swift                    0x000000011033158b swift::CompilerInstance::parseAndCheckTypesUpTo(swift::CompilerInstance::ImplicitImports const&, swift::SourceFile::ASTStage_t)::$_0::operator()(swift::SourceFile&) const + 91
29 swift                    0x0000000110330338 swift::CompilerInstance::performSemaUpTo(swift::SourceFile::ASTStage_t) + 5448
30 swift                    0x0000000110025b6f performCompile(swift::CompilerInstance&, swift::CompilerInvocation&, llvm::ArrayRef<char const*>, int&, swift::FrontendObserver*, swift::UnifiedStatsReporter*) + 815
31 swift                    0x0000000110022034 swift::performFrontend(llvm::ArrayRef<char const*>, char const*, void*, swift::FrontendObserver*) + 6820
32 swift                    0x000000010ffaf5a3 main + 1219
33 libdyld.dylib            0x00007fff59e423d5 start + 1
34 libdyld.dylib            0x0000000000000062 start + 2786843790
🌱  Encountered error during "swift build -c release -Xswiftc -target -Xswiftc x86_64-apple-macosx10.14". Use --verbose to see full output
🌱  Failed to build Carthage 0.33.0 with SPM
Xcode 11.0
Build version 11A420a

Apple Swift version 5.1 (swiftlang-1100.0.270.13 clang-1100.0.33.7)
Target: x86_64-apple-darwin18.7.0

i have the same issue, do you find any solution for resolve this issue ?

@samira469
Copy link

Is there any update for this issue? Carthage still not building custom frameworks written with Xcode 11.2 and Swift 5.2

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants