Comments (5)
I have same issues with accio on accio, or on https://github.com/IBDecodable/IBGraph/blob/master/Package.swift
(xcode 10.3, carthage 0.33.0)
I do not know how normally this could work but I try to make something
by excluding local package dependencies
But I do not thinks it is the solution, because target name could be different from product name
https://github.com/JamitLabs/Accio/compare/stable...phimage:fix/could_not_find_library?expand=1
ps: I make also comparing product name with ignore case, because I have an executable different case from target
from accio.
Could you please provide a complete Pakcage.swift
contents so we can better understand the issue?
from accio.
I have similar problem @Dschee:
import PackageDescription
let package = Package(
name: "DataStoreManager",
platforms: [
.iOS(.v8),
.macOS(.v10_10),
.watchOS(.v2),
.tvOS(.v9)
],
products: {
var products: [Product] = []
// Products define the executables and libraries produced by a package, and make them visible to other packages.
#if os(iOS)
products.append(contentsOf: [
.library(
name: "DataStoreManager",
targets: [
"DataStoreManager-iOS"
]
),
])
#elseif os(macOS)
products.append(contentsOf: [
.library(
name: "DataStoreManager",
targets: [
"DataStoreManager-macOS"
]
),
])
#elseif os(watchOS)
products.append(contentsOf: [
.library(
name: "DataStoreManager",
targets: [
"DataStoreManager-watchOS"
]
),
])
#elseif os(tvOS)
products.append(contentsOf: [
.library(
name: "DataStoreManager",
targets: [
"DataStoreManager-tvOS"
]
),
])
#endif
return products
}(),
dependencies: [
// add your dependencies here, for example:
// .package(url: "https://github.com/User/Project.git", .upToNextMajor(from: "1.0.0")),
],
targets: {
var targets: [Target] = []
#if os(iOS)
targets.append(contentsOf: [
.target(
name: "DataStoreManager-iOS",
dependencies: [
// add your dependencies scheme names here, for example:
// "Project",
],
path: "Sources/DataStoreManager"
),
.testTarget(
name: "DataStoreManagerTests-iOS",
dependencies: [
"DataStoreManager-iOS"
],
path: "Tests/DataStoreManagerTests"
),
])
#elseif os(macOS)
targets.append(contentsOf: [
.target(
name: "DataStoreManager-macOS",
dependencies: [
// add your dependencies scheme names here, for example:
// "Project",
],
path: "Sources/DataStoreManager"
),
.testTarget(
name: "DataStoreManagerTests-macOS",
dependencies: [
"DataStoreManager-macOS"
],
path: "Tests/DataStoreManagerTests"
),
])
#elseif os(watchOS)
targets.append(contentsOf: [
.target(
name: "DataStoreManager-watchOS",
dependencies: [
// add your dependencies scheme names here, for example:
// "Project",
],
path: "Sources/DataStoreManager"
),
])
#elseif os(tvOS)
targets.append(contentsOf: [
.target(
name: "DataStoreManager-tvOS",
dependencies: [
// add your dependencies scheme names here, for example:
// "Project",
],
path: "Sources/DataStoreManager"
),
.testTarget(
name: "DataStoreManagerTests-tvOS",
dependencies: [
"DataStoreManager-tvOS"
],
path: "Tests/DataStoreManagerTests"
),
])
#endif
return targets
}(),
swiftLanguageVersions: [.v5]
)
from accio.
@SentulAsia can you clarify where the problem is occurring for you, or what the error output looks like?
For me the Package.swift
looks like:
// swift-tools-version:5.0
import PackageDescription
let package = Package(
name: "MyProjectFramework",
products: [
.library(name: "MyProjectFramework", targets: ["MyProjectFramework"]),
],
dependencies: [
...
],
targets: [
.target(
name: "MyProjectFramework",
dependencies: [
...
],
path: "MyProjectFramework"
),
.testTarget(
name: "MyProjectFrameworkTests",
dependencies: [
"MyProjectFramework",
...
],
path: "MyProjectFrameworkTests"
),
]
)
The resulting error I get is:
❌ DependencyGraph: Could not find library product with name 'MyProjectFramework' in package manifest for project 'MyProjectFramework'.
from accio.
Closing this, as Accio is now deprecated.
from accio.
Related Issues (20)
- Leverage Swift 5.1 module stability HOT 4
- Accio is resetting the project it self when using local dependencies
- Missing CFBundleVersion in Info.plist of frameworks HOT 1
- Unable to successfully compile the sample project HOT 2
- No dependencies specified for target ... HOT 3
- Error: The file “Info.plist” couldn’t be opened HOT 2
- accio fails to install dependencies HOT 23
- Accio isn't compatible with certain Package.swift formats
- Add new "Xcode 11 Supplement" mode & Version 1.0.0 HOT 2
- Error installing Accio HOT 2
- Pick a less generic name than `Dependencies` for your folder HOT 9
- Error with dependencies with higher Swift tools version HOT 1
- Support shorthand Semantic Version Strings HOT 2
- $ accio install won't add build phase after re-generate Xcode project HOT 3
- Deprecate Accio in favor of SwiftPM starting with Xcode 12? HOT 7
- Unable to integrate Accio to support simple clone and build in Xcode IDE HOT 1
- Accio checking for wrong output name when copy framework (Facebook iOS SDK) HOT 2
- Homebrew installation broken HOT 4
- [Deleted Spam Title] HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from accio.