Comments (9)
Hey @khoogheem, thank you for reporting this. Could you please post your full Package.swift
file contents? This sounds like you're trying to build a framework which uses iOS 10.0 APIs but didn't have the deployment target set to iOS 10 properly. Could you please also copy more of the output here? Especially it's interesting to know, which framework Accio was trying to build when this error appeared and also which version of it.
from accio.
Here is the projects Package
// swift-tools-version:5.0
import PackageDescription
let package = Package(
name: "MyTarget",
products: [],
dependencies: [
// add your dependencies here, for example:
.package(url: "https://github.com/SwiftyBeaver/SwiftyBeaver.git", from: "1.6.2"),
.package(url: "https://github.com/FitnessKit/BluetoothMessageProtocol", from: "0.19.1"),
.package(url: "https://github.com/FitnessKit/FitDataProtocol", from: "0.40.2")
],
targets: [
.target(
name: "MyTarget",
dependencies: [
"SwiftyBeaver",
"BluetoothMessageProtocol",
"FitDataProtocol",
],
path: "Source"
),
]
)
It will choke trying to get: https://github.com/FitnessKit/FitnessUnits
which is a dependent of the Bluetooth and Fit packages...
Both the the packages inside of FitnessKit are still 4.X so they don't have the platforms defined
from accio.
Okay, there you have it:
FitnessUnits .podspec
file makes it clear that iOS 10 is the minimum required target.
But FitnessUnits Package.swift
file doesn't state that fact. Note that specifying minimum required versions are only possible starting with Swift 5, it was introduced just recently with SE-236. But Accio allows you to add it to Swift 4 projects as well by simply commenting that line out, Accio will take care of setting the target correctly then.
So, the fix for you is to fork FitnessUnits and add this line to the Package.swift file:
// platforms: [.iOS("10.0"), .macOS("10.12"), .tvOS("10.0"), .watchOS("3.0")],
For a full example of what such a Package.swift might look like and for further explanations, please read the "Adding support for Accio" section in the README.
I hope this helps.
from accio.
ok... it was unclear that the commented out line actually would work...
still in the process of moving things over to swift5
from accio.
You mean, even after reading the docs it was unclear? Do you have a suggestion on how we could make it clearer? Feel free to post a PR with the text change. Also good luck with the move to Swift 5! :)
from accio.
ok.. not sure If I still have something screwed up.. but two of my packages bring in this package https://github.com/FitnessKit/DataDecoder
which I have set to iOS 10.. but it complains that it was built for 12.2
from accio.
Again, please provide full output of both your manifest file and output. This sounds like the project already has a Xcode project file with a shared scheme whose target is set to 12.2.
Accio only uses the „platforms“ specified in the manifest if it needs to generate the Xcode project using SwiftPM for non-Carthage compatible frameworks. But if a framework has an Xcode project with a shared scheme, it is technically Carthage compatible and the existing scheme will be used as is. But Carthage users should actually come across the same issue in that case as you have, so its basically a project not properly conforming to Carthage and by that also to Accio.
I hope this info helps.
from accio.
ok... I know where the problem is then thanks again
from accio.
Sure, glad I could help.
from accio.
Related Issues (20)
- Leverage Swift 5.1 module stability HOT 4
- Dependencies cannot be resolved when the target is in the same Package.swift HOT 5
- 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.