Updating the SDK for iOS
You can easily update the Instabug SDK for each platform by following the instructions outlined below. If you wish to update to a specific version (for example, 14.0.0), ensure that your configuration files (Podfile, Cartfile, or Package.swift) reflect this version accordingly.
CocoaPods
To update to the latest version of Instabug, use the following command:
pod update Instabug
If you need to update to a specific version (e.g., 14.0.0), specify it in your Podfile like this:
pod 'Instabug', '14.0.0'
After making the change, run:
pod install
Carthage
To update to the latest version of Instabug, execute:
carthage update
For a specific version, indicate it in your Cartfile as follows:
github "Instabug/Instabug-iOS" == 14.0.0
Then, run:
carthage update
Swift Package Manager (SPM)
Updating via Xcode Interface:
- Open your Xcode project.
- In the Project Navigator on the left, select your project.
- Navigate to the Package Dependencies tab under your project settings.
- To update all packages to their latest compatible versions, go to File > Swift Packages > Update to Latest Package Versions.
- To update only Instabug:
- Select the Instabug package from the list of dependencies.
- Click the gear icon next to it.
- Choose Update Package to fetch and use the latest version that meets your version requirements.
Updating via Command Line
To Update to the Latest Compatible Version:
- In your Package.swift, add:
.package(url: "<https://github.com/Instabug/Instabug-iOS">, from: "14.0.0")
- Then, run:
swift package update
To Update to a Specific Version (e.g., 14.0.0):
- In your Package.swift, specify:
.package(url: "<https://github.com/Instabug/Instabug-iOS">, .exact("14.0.0"))
- Finally, execute:
swift package update
Updated 11 days ago