Carthage install fails with ARCHIVE FAILED: VerifyModule in target 'CropViewController' from project 'TOCropViewControllerExample'
Describe the bug When trying to use Carthage to fetch TOCropViewController it fails to compile the project.
To Reproduce Steps to reproduce the behavior:
- Fresh repo
- Cartfile:
github "TimOliver/TOCropViewController"
- Run
carthage update --use-xcframeworks --verbose - Fetch is successful, but project fails to build with the following output:
** ARCHIVE FAILED **
The following build commands failed:
VerifyModule /Users/user/Library/Caches/org.carthage.CarthageKit/DerivedData/16.2_16C5032a/TOCropViewController/2.7.4/Build/Intermediates.noindex/ArchiveIntermediates/CropViewController/BuildProductsPath/Release-iphoneos/CropViewController.framework (in target 'CropViewController' from project 'TOCropViewControllerExample')
Archiving project TOCropViewControllerExample with scheme CropViewController
(2 failures)
Build Failed
Task failed with exit code 65:
/usr/bin/xcrun xcodebuild -project /Users/user/test-cropviewcontroller-carthage/Carthage/Checkouts/TOCropViewController/TOCropViewControllerExample.xcodeproj -scheme CropViewController -configuration Release -derivedDataPath /Users/user/Library/Caches/org.carthage.CarthageKit/DerivedData/16.2_16C5032a/TOCropViewController/2.7.4 ONLY_ACTIVE_ARCH=NO CODE_SIGNING_REQUIRED=NO CODE_SIGN_IDENTITY= SUPPORTS_MACCATALYST=NO CARTHAGE=YES archive VALIDATE_WORKSPACE=NO -archivePath /var/folders/j4/63v7kdss7rs4d8c15h3n1bh80000gn/T/TOCropViewController SKIP_INSTALL=YES GCC_INSTRUMENT_PROGRAM_FLOW_ARCS=NO CLANG_ENABLE_CODE_COVERAGE=NO STRIP_INSTALLED_PRODUCT=NO (launched in /Users/user/test-cropviewcontroller-carthage/Carthage/Checkouts/TOCropViewController)
This usually indicates that project itself failed to compile.
I also tried dropping the --use-xcframeworks flag, but same result.
Expected behavior Project should build successfully.
Hi @wrutkowski-blinq!
Thanks for letting me know. Admittedly the extent of my testing Carthage is usually ensuring the dynamic framework targets in the Xcode project build without issue.
I'm not too sure how to fix this. Any help would be appreciated!
Same issue here:
The following build commands failed:
VerifyModule /Users/user/Library/Caches/org.carthage.CarthageKit/DerivedData/26.0_17A324/TOCropViewController/3.0.0/Build/Intermediates.noindex/ArchiveIntermediates/CropViewController/BuildProductsPath/Release-iphoneos/CropViewController.framework (in target 'CropViewController' from project 'TOCropViewControllerExample')
Archiving project TOCropViewControllerExample with scheme CropViewController
(2 failures)
Built using carthage update --platform iOS --no-use-binaries. I could not resolve it so far, but it indicates a possible compatibility issue with Carthage and Xcode 26.