Where can I find previous / older versions of Dart? - dart

Where can I find previous older versions of the Dart SDK?
Is there an official archive?

Maybe here you find what you are looking for:
http://gsdview.appspot.com/dart-archive/channels/stable/release/
http://gsdview.appspot.com/dart-editor-archive-trunk/
Please also star https://code.google.com/p/dart/issues/detail?id=18323

Related

How to change the version of library in Swift Package Manager?

I used some libraries in my swiftUI project with help of Swift Package Manager.
But I want to use some previous version of one library.
What I am tried:
If I change here it nothing reflects.
Can anyone suggest how to change the version of particular library?
You can use an exact version of the package that you want.
Just select the drop down beside Up to next major and choose Exact.
Then insert the exact version that you wish to use.

I have a Swift Package and I want to know how to get the current version of this package

Similar to how you get your apps version kCFBundleVersionKey how does one get the version of the package you are working in?
I don't think it's possible at the moment to get the value easily.
You can either read the Package.resolved file or you can set up a public constant where you would define the version of your library.
public let version = "0.0.1"
import MyLibrary
print(MyLibrary.version)
There isn't a standard way how to do this, every package could have a different constant (or not have it at all)
You can check package version rules in project package dependencies tab. Check screenshot below. Propably it would be sufficient for most use cases.
Edit: The context has changed, the question was to get the version of MyPackage I'm working on via code. There isn't any documented or recommended method as of now. Though this can be achieved by a hack through reading the Package.resolved file as mentioned by Malcolm.
I'm not deleting this answer for any future users who are looking for answer on how to get the exact latest version of a Package.
You can give the same major version number and give Update to latest package version option on Xcode. eg: If current version is 2.4.5 you just need to provide 2.0.0 and update. There is also an option to provide the exact version of swift package you need.

How to know which version of cocoapods suits my xcode

Sorry to bother with basic question.
would like to know which version of any cocoapods, suits particular xcode version. If I know the exact podfile version for my xcode directly can be used without any interruption
I would suggest to save everybody and yourself a lot of trouble and use a fairly recent verion of both xcode and cocoapods.

Run older iOS version XCode

There are several related posts here, but solutions provided is not available for now.
I discovered a bug, that is only occur on iOS 7 version. Unfortunately, i don't have device running on that version. I need to add a simulator that run on older version. Is there any way to achieve that? I did not find a solution (only download old XCode, but i hope there is a better way).
Unfortunately, there's no other solution than downloading older versions of Xcode.
I needed this a few months ago, and tried a lot of different things, but I didn't found a solution.
Only downloading old Xcode version...

adding libz.1.2.3.dylib vs libz.1.1.3.dylib or libz.1.2.5.dylib

I am following this tutorial
The tutorial states to add libz.1.2.3.dylib. library, but because I have downloaded newer or older library (I don't know exactly if my library is newer or older that the library in the tutorial, but 99% it is newer). So, when I tried to add the libz.1.2.3.dylib. library, I didn't find it. However, when I typed libz I found these choices:
which one should I choose please?
In using dynamic libraries the one you normally use is libX.major_version.dylib in this case libz.1.2.dylib. This is a link to a library libX.major_version.minor_version.dylib which here is libz.1.2.5.dylib
The rationale for this is that the major version is changed only when the API is changed, the minor version is updated when any change is made. Thus your program should work when it uses any of the same major version and so you want the latest version.
In this case the tutorial had an older install and so its libz.1.2.dylib. should have pointed to libz.1.2.3.dylib.
For you you should use libz.1.2.5.dylib which should be like the tutorials version but with bug fixes and possibly extra functions that don't matter here as the tutorial won't call the new functions.
Normally libX.1.x.dylib would be older than libX.2.y.dylib but the writers might produce bug fixes to the old API whilst also working on the new API
Following on from the rational I gave libz.dylib should be a link to the highest number library but I would not use it as you are writing to a particular API so I would use a version specific (In this case if missing a link the I would not trust what libz.dylib points to)

Resources