-
Notifications
You must be signed in to change notification settings - Fork 24
fix: support iOS 26 #764
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
fix: support iOS 26 #764
Changes from all commits
20cb477
19a5d88
c268c59
ca983d8
b5ae4eb
405dfc9
cfef5e1
f870628
a7d6776
3031917
37ebbca
c85a865
c57de5e
a74a184
b12f1c9
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,94 @@ | ||
| name: Release Archive (Xcode 26.x) | ||
|
|
||
| on: | ||
| workflow_dispatch: | ||
| push: | ||
| branches: | ||
| - master | ||
| pull_request: | ||
| branches: | ||
| - master | ||
|
|
||
| jobs: | ||
| archive: | ||
| name: Archive Build | ||
| runs-on: macos-latest | ||
| timeout-minutes: 90 | ||
|
|
||
| steps: | ||
| - name: Checkout | ||
| uses: actions/checkout@v4 | ||
|
|
||
| - name: Select Xcode 26.x | ||
| uses: maxim-lobanov/setup-xcode@v1 | ||
| with: | ||
| xcode-version: "26.x" | ||
|
|
||
| - name: Verify Xcode version | ||
| run: | | ||
| mkdir -p build | ||
| xcodebuild -version | tee build/xcode-version.txt | ||
| if ! grep -Eq '^Xcode 26\.' build/xcode-version.txt; then | ||
| echo "Expected Xcode 26.x but got:" | ||
| cat build/xcode-version.txt | ||
| exit 1 | ||
| fi | ||
|
|
||
| - name: Setup CocoaPods | ||
| uses: maxim-lobanov/setup-cocoapods@v1 | ||
| with: | ||
| version: "1.15.2" | ||
|
Comment on lines
+37
to
+40
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 🧩 Analysis chain🌐 Web query:
💡 Result: The GitHub Action maxim-lobanov/setup-cocoapods sets up a specific version of CocoaPods in GitHub Actions workflows, primarily for macOS and Ubuntu runners. It supports specifying the version directly via the 'version' input (e.g., 'latest', '1.9.0') or dynamically parsing it from a Podfile.lock file using the 'podfile-path' input. Only one of these inputs should be used at a time. Key details: - Repository: https://github.com/maxim-lobanov/setup-cocoapods (31 stars, MIT license) - Latest release: v1.4.0 (November 27, 2023) - Last commit: November 27, 2023 (no updates since, as of 2026-04-20) - Available on GitHub Marketplace: https://github.com/marketplace/actions/setup-cocoapods Example usage: - name: Setup CocoaPods uses: maxim-lobanov/setup-cocoapods@v1 with: version: 1.9.0 or - name: Setup CocoaPods from Podfile.lock uses: maxim-lobanov/setup-cocoapods@v1 with: podfile-path: Example/Podfile.lock Status and considerations: - Open issues: 7 (e.g., caching requests, permission errors on Linux) - Security: StepSecurity rates it 2/10 due to 17 detected vulnerabilities in dependencies, no branch protection, no security policy. No published GitHub security advisories. - Maintenance: Inactive since late 2023 (0 commits in last 90 days per sources). - Alternative: step-security/setup-cocoapods (forked March 2026, actively maintained as a secure drop-in replacement, last push April 2026). Note: Not certified by GitHub; third-party action. Citations:
🏁 Script executed: #!/bin/bash
# Confirm the action is referenced consistently and check if resolvable via the GitHub API.
gh api repos/maxim-lobanov/setup-cocoapods 2>&1 | head -20Repository: dashpay/dashwallet-ios Length of output: 5922 Consider using the actively maintained The 🤖 Prompt for AI Agents |
||
|
|
||
| - name: Ensure fastlane is available | ||
| run: | | ||
| if ! command -v fastlane >/dev/null 2>&1; then | ||
| gem install fastlane -N | ||
| fi | ||
| fastlane --version | ||
|
|
||
| - name: Build release archive | ||
| run: fastlane ios release_archive_ci | ||
|
|
||
| - name: Prepare public-safe artifacts | ||
| if: always() | ||
| run: | | ||
| mkdir -p build/public-artifacts | ||
|
|
||
| if [ -f build/xcode-version.txt ]; then | ||
| cp build/xcode-version.txt build/public-artifacts/xcode-version.txt | ||
| fi | ||
|
|
||
| if [ -d build/logs ]; then | ||
| for src in build/logs/*; do | ||
| [ -f "$src" ] || continue | ||
| dst="build/public-artifacts/$(basename "$src")" | ||
| sed -E \ | ||
| -e 's/(Authorization: Bearer )[A-Za-z0-9._-]+/\1[REDACTED]/g' \ | ||
| -e 's/([?&](token|access_token|password|api_key|apikey|secret)=)[^&[:space:]]+/\1[REDACTED]/Ig' \ | ||
| -e 's/(APPLE_APP_SPECIFIC_PASSWORD=)[^[:space:]]+/\1[REDACTED]/g' \ | ||
| -e 's/(FASTLANE_APPLE_APPLICATION_SPECIFIC_PASSWORD=)[^[:space:]]+/\1[REDACTED]/g' \ | ||
| "$src" > "$dst" | ||
| done | ||
| fi | ||
|
|
||
| if [ -f fastlane/report.xml ]; then | ||
| cp fastlane/report.xml build/public-artifacts/fastlane-report.xml | ||
| fi | ||
|
|
||
| { | ||
| echo "Archive log summary" | ||
| echo "===================" | ||
| if [ -d build/public-artifacts ]; then | ||
| grep -R -n -E "ARCHIVE SUCCEEDED|ARCHIVE FAILED|BUILD SUCCEEDED|error:" build/public-artifacts || true | ||
| fi | ||
| } > build/public-artifacts/archive-summary.txt | ||
|
|
||
| - name: Upload build logs | ||
| if: always() | ||
| uses: actions/upload-artifact@v4 | ||
| with: | ||
| name: release-xcode26-logs-${{ github.run_number }} | ||
| retention-days: 3 | ||
| if-no-files-found: warn | ||
| path: | | ||
| build/public-artifacts/** | ||
Large diffs are not rendered by default.
| Original file line number | Diff line number | Diff line change | ||||
|---|---|---|---|---|---|---|
|
|
@@ -169,7 +169,8 @@ extension HomeViewController: DWLocalCurrencyViewControllerDelegate, ExploreView | |||||
|
|
||||||
| private func showSendToContact() { | ||||||
| #if DASHPAY | ||||||
| let controller = DWContactsViewController() | ||||||
| let controller = DWContactsViewController(payModel: payModel, dataProvider: dataProvider) | ||||||
| controller.intent = .payToSelector | ||||||
| controller.payDelegate = self | ||||||
| let navigationController = BaseNavigationController(rootViewController: controller) | ||||||
| present(navigationController, animated: true, completion: nil) | ||||||
|
|
@@ -311,3 +312,14 @@ extension HomeViewController: DWLocalCurrencyViewControllerDelegate, ExploreView | |||||
| showGiftCardDetails(txId: txId) | ||||||
| } | ||||||
| } | ||||||
| #if DASHPAY | ||||||
| // MARK: DWContactsViewControllerPayDelegate | ||||||
| extension HomeViewController: DWContactsViewControllerPayDelegate { | ||||||
| func contactsViewController(_ controller: DWContactsViewController, payTo item: DWDPBasicUserItem) { | ||||||
| dismiss(animated: true) { [weak self] in | ||||||
| self?.performPay(toUser: item) | ||||||
| } | ||||||
| } | ||||||
| } | ||||||
| #endif | ||||||
|
|
||||||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Fix trailing newline lint warning. SwiftLint reports the file ending does not satisfy the single trailing newline rule. ✂️ Minimal formatting fix-#endif
-
+#endifAs per coding guidelines: 📝 Committable suggestion
Suggested change
🧰 Tools🪛 SwiftLint (0.63.2)[Warning] 325-325: Files should have a single trailing newline (trailing_newline) 🤖 Prompt for AI Agents |
||||||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🧩 Analysis chain
🌐 Web query:
maxim-lobanov/setup-xcode action xcode-version input accepted formats💡 Result:
The xcode-version input for the maxim-lobanov/setup-xcode GitHub Action accepts the following formats: - latest (latest Xcode version including betas available on the runner) - latest-stable (latest stable Xcode version) - SemVer strings, such as: - 16 - 16.4 - 26.3 - ^16.2.0 (SemVer range) - SemVer string followed by -beta (e.g., 16-beta) to select among beta releases Specific versions should be wrapped in single quotes in YAML (e.g., '16.4') to preserve trailing zeros, as GitHub Actions trims them from numbers. Available versions depend on the macOS runner image (e.g., macos-latest, macos-15, macos-26); check the GitHub runner-images repository for the full list pre-installed on each image. Examples: - uses: maxim-lobanov/setup-xcode@v1 with: xcode-version: latest-stable - uses: maxim-lobanov/setup-xcode@v1 with: xcode-version: '16.4'
Citations:
Replace
xcode-version: "26.x"with a valid format — the "X.x" shorthand is not supported.The
setup-xcodeaction accepts SemVer strings (e.g.,26,26.3) or SemVer ranges (e.g.,^26.0.0), but not the26.xformat. This will likely fail or silently fall back to the runner's default Xcode. Usexcode-version: "26"for any 26.x version, or specify an exact version like"26.3".🤖 Prompt for AI Agents