Accio: accio fails to install dependencies
I thought I give accio a try for a macOS project. I’ve created a simple Package.swift file:
// swift-tools-version:5.0
import PackageDescription
let package = Package(
name: "Demo",
products: [],
dependencies: [
.package(url: "https://github.com/filom/ASN1Decoder.git", .upToNextMajor(from: "1.3.1"))
],
targets: [
.target(
name: "Demo",
dependencies: [
"ASN1Decoder",
],
path: "Demo"
),
]
)
When trying to build the dependency
$ accio update
...
✨ Building library ASN1Decoder with Carthage ...
*** xcodebuild output can be found in /var/folders/pf/7vhqx5bn41qddypw08w9jc4w0000gn/T/carthage-xcodebuild.TzqLBH.log
*** Skipped building ASN1Decoder due to the error:
Dependency "ASN1Decoder" has no shared framework schemes for any of the platforms: Mac
cp: /Users/tcurdt/Desktop/StoreKitExample/.accio/checkouts/ASN1Decoder/Carthage/Build/Mac/ASN1Decoder.framework: No such file or directory
Error: The operation couldn’t be completed. (SwiftShell.CommandError error 0.)
Running xcodebuild myself it builds just fine.
$ xcodebuild
...
CreateUniversalBinary /Users/tcurdt/Downloads/ASN1Decoder-1.3.1/build/Release-iphoneos/ASN1Decoder.framework/ASN1Decoder normal armv7\ arm64 (in target: ASN1Decoder)
cd /Users/tcurdt/Downloads/ASN1Decoder-1.3.1
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/lipo -create /Users/tcurdt/Downloads/ASN1Decoder-1.3.1/build/ASN1Decoder.build/Release-iphoneos/ASN1Decoder.build/Objects-normal/armv7/ASN1Decoder /Users/tcurdt/Downloads/ASN1Decoder-1.3.1/build/ASN1Decoder.build/Release-iphoneos/ASN1Decoder.build/Objects-normal/arm64/ASN1Decoder -output /Users/tcurdt/Downloads/ASN1Decoder-1.3.1/build/Release-iphoneos/ASN1Decoder.framework/ASN1Decoder
CpHeader /Users/tcurdt/Downloads/ASN1Decoder-1.3.1/ASN1Decoder/ASN1Decoder.h /Users/tcurdt/Downloads/ASN1Decoder-1.3.1/build/Release-iphoneos/ASN1Decoder.framework/Headers/ASN1Decoder.h (in target: ASN1Decoder)
cd /Users/tcurdt/Downloads/ASN1Decoder-1.3.1
builtin-copy -exclude .DS_Store -exclude CVS -exclude .svn -exclude .git -exclude .hg -resolve-src-symlinks /Users/tcurdt/Downloads/ASN1Decoder-1.3.1/ASN1Decoder/ASN1Decoder.h /Users/tcurdt/Downloads/ASN1Decoder-1.3.1/build/Release-iphoneos/ASN1Decoder.framework/Headers
GenerateDSYMFile /Users/tcurdt/Downloads/ASN1Decoder-1.3.1/build/Release-iphoneos/ASN1Decoder.framework.dSYM /Users/tcurdt/Downloads/ASN1Decoder-1.3.1/build/Release-iphoneos/ASN1Decoder.framework/ASN1Decoder (in target: ASN1Decoder)
cd /Users/tcurdt/Downloads/ASN1Decoder-1.3.1
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/dsymutil /Users/tcurdt/Downloads/ASN1Decoder-1.3.1/build/Release-iphoneos/ASN1Decoder.framework/ASN1Decoder -o /Users/tcurdt/Downloads/ASN1Decoder-1.3.1/build/Release-iphoneos/ASN1Decoder.framework.dSYM
Touch /Users/tcurdt/Downloads/ASN1Decoder-1.3.1/build/Release-iphoneos/ASN1Decoder.framework (in target: ASN1Decoder)
cd /Users/tcurdt/Downloads/ASN1Decoder-1.3.1
/usr/bin/touch -c /Users/tcurdt/Downloads/ASN1Decoder-1.3.1/build/Release-iphoneos/ASN1Decoder.framework
** BUILD SUCCEEDED **
Now I am wondering how to track this down. Is this a Carthage issue? Any pointers?
I am using:
$ accio version
Version: 0.6.3
$ carthage version
0.33.0
$ sw_vers
ProductName: Mac OS X
ProductVersion: 10.14.6
BuildVersion: 18G87
About this issue
- Original URL
- State: closed
- Created 5 years ago
- Comments: 23 (23 by maintainers)
As #77 is merged, I guess this can be closed now.
Yes, but I either need to fork it or have the author merge it. Always a hassle. Not the first time 😉
Seems like the Xcode project isn’t really setup to support macOS and iOS yet.
I guess Accio inherits the same pain from Carthage - having to bug project authors to fix their Xcode projects. I guess cocoapods conveniently hides that 😕
I guess I can close this here.