Carthage: Unrecognized arguments: --use-xcframeworks (carthage update --use-xcframeworks)

Created on 24 Dec 2020  路  6Comments  路  Source: Carthage/Carthage

  • carthage install method: [ ] .pkg, [x] homebrew, [ ] source
  • which carthage: /usr/local/bin/carthage
  • carthage version: 0.36.0
  • xcodebuild -version: Xcode 12.3; Build version 12C33
  • 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
  • macOS version: Catalina 10.15.7

Cartfile

github "ReactiveX/RxSwift"
github "RxSwiftCommunity/RxDataSources"
github "SnapKit/SnapKit"
github "scenee/FloatingPanel"
github "pkluz/PKHUD"
github "layoutBox/PinLayout"

binary "https://dl.google.com/dl/firebase/ios/carthage/FirebaseAnalyticsBinary.json"
binary "https://dl.google.com/dl/firebase/ios/carthage/FirebaseCrashlyticsBinary.json"

github "yagiz/Bagel"

Carthage Output

$ carthage update --use-xcframeworks
Unrecognized arguments: --use-xcframeworks

Actual outcome
Unrecognized arguments: --use-xcframeworks

Expected outcome
Frameworks have been successfully pulled into the project

Most helpful comment

Someone needs to do a release with the new xcframeworks change!

All 6 comments

The same problem.
After update to Xcode 12.3 it refusing to link binaries with Error:

Building for iOS Simulator, but the linked and embedded framework '***.framework' was built for iOS + iOS Simulator.

But carthage update --use-xcframeworksdoesn't work, as there no such param.

I met the same problem, As 0.36.0 is out of date, I think this feature is on master only.

From source: If you鈥檇 like to run the latest development version (which may be highly unstable or incompatible), simply clone the master branch of the repository, then run make install. Requires Xcode 10.0 (Swift 4.2).

I met the same problem, As 0.36.0 is out of date, I think this feature is on master only.

From source: If you鈥檇 like to run the latest development version (which may be highly unstable or incompatible), simply clone the master branch of the repository, then run make install. Requires Xcode 10.0 (Swift 4.2).

yes, you are right, it is work well, I build it in Xcode Version 12.3 (12C33)

Someone needs to do a release with the new xcframeworks change!

I met the same problem, As 0.36.0 is out of date, I think this feature is on master only.

From source: If you鈥檇 like to run the latest development version (which may be highly unstable or incompatible), simply clone >the master branch of the repository, then run make install. Requires Xcode 10.0 (Swift 4.2).

@samchang8826 Thanks for info.
Just for anyone else who was coming across this issue, after looking at the Carthage code, I realized that this still works fine with build 0.36.0:

$ carthage update --create-xcframework

OR

$ carthage build --create-xcframework

still happens

Was this page helpful?
0 / 5 - 0 ratings