Carthage build failed

Created on 27 Apr 2020  路  3Comments  路  Source: Carthage/Carthage

I am trying to build Carthage locally for https://github.com/mapp-digital/MappIntelligence-iOS-v5
via this command: carthage build --no-skip-current

* xcodebuild output can be found in /var/folders/mw/g629gkts25g00t_1c8d2v2xrljwr95/T/carthage-xcodebuild.IRPP96.log
*
Skipped building MappIntelligence-iOS-v5 due to the error:
Dependency "MappIntelligence-iOS-v5" has no shared framework schemes

But there is shared schemes selected into Xcode see image

Then as it suggested at link I run command xcodebuild -scheme SCHEME -workspace WORKSPACE build and it build successfully. Whole log you can se here

I don't know what I am missing, can anyone help me?

question

Most helpful comment

@faustperic Static frameworks are different from static libraries. You probably want to set up a framework target in Xcode, and set MACH_O_TYPE = staticlib in its build settings to link it as a static framework.

All 3 comments

Those schems are for static libraies (.a)/aggregate targets, not for framework targets. Carthage does not support static libraries.

But I read documentation : Additionally, since version 0.30.0 Carthage supports static frameworks.

@faustperic Static frameworks are different from static libraries. You probably want to set up a framework target in Xcode, and set MACH_O_TYPE = staticlib in its build settings to link it as a static framework.

Was this page helpful?
0 / 5 - 0 ratings