Skip to content

Fix Apple packaging when sdk_url is empty - #489

Merged
CaiYiPing merged 1 commit into
mainfrom
fix/ios-published-sdk-selection
Dec 3, 2026
Merged

CaiYiPing merged 1 commit into
mainfrom
fix/ios-published-sdk-selection

Conversation

@CaiYiPing

Copy link
Copy Markdown
Collaborator

Change Contract

  • Requirement or issue: Jenkins ApiExample/build_ios #930 fails at SimpleFilter/ExtensionVideoFilter.hpp:8 because AgoraRtcKit/NGIAgoraMediaNode.h cannot be found. The build supplies no sdk_url, but the packaging helper leaves the local sdk.podspec selected while the SDK download hook is commented out. CocoaPods installs sdk (1.0) without the required framework assets.
  • Shared behavior: When no SDK archive is supplied, select the published Agora pod and version already declared in each project's Podfile and remove the local SDK dependency. When an archive is supplied, retain the existing ../../sdk.podspec package integration. Preserve CocoaPods sources, other dependencies and disabled download hooks.
  • SDK/API changes: Dependency selection in packaging copies only. Retain iOS SDK 4.7.1 and macOS SDK 4.7.0. Checked-in project Podfiles, SDK API usage, sources and signing configuration are unchanged.
  • Non-goals: SDK publication, release artifact publication, signing changes, runtime behavior changes, or merging this PR.
  • Reference: Failure logs from build #930; .github/ci/build/build_ios.sh and build_mac.sh call the shared helper. Follow-up to merged PR Dev/4.7.1 #488, based on 77e2a38d8bfde1b52cd84d63fe1f37b7401b940f.

Project Scope

Project Decision Change or reason
Android Views full NOT_APPLICABLE CocoaPods packaging helper is not used.
Android Views audio NOT_APPLICABLE CocoaPods packaging helper is not used.
Android Compose NOT_APPLICABLE CocoaPods packaging helper is not used.
iOS UIKit full REQUIRED Correct the failed no-archive mode and verify supplied-archive mode.
iOS UIKit audio REQUIRED Shared helper; preserve the declared voice SDK and both modes.
iOS SwiftUI REQUIRED Shared helper; verify published and local SDK selection.
iOS Objective-C REQUIRED Shared helper; verify published and local SDK selection.
macOS AppKit REQUIRED Shared helper; preserve SDK 4.7.0 and both modes.
Windows MFC NOT_APPLICABLE CocoaPods packaging helper is not used.

Cross-Platform Review

  • Intentional differences: iOS full projects retain AgoraRtcEngine_iOS; the audio project retains AgoraAudio_iOS; macOS retains AgoraRtcEngine_macOS. Tests read the version from each project's actual Podfile so future upgrades do not require duplicate version pins in the tests.
  • Lifecycle, threading, registration, resources and permissions: No application implementation changes. The helper changes only which existing SDK declaration is active in the packaging copy.
  • Remaining validation: Actual CocoaPods dependency resolution and Xcode archive/export must be checked in Jenkins. Helper tests and Ruby syntax checks do not establish SDK binary compatibility or successful IPA signing.

Validation

Project or check Command or behavioral check Status Evidence / remaining validation
iOS UIKit full regression No-archive dependency selection against the actual Podfile PASS Test fails before the fix by selecting local sdk; after the fix it selects the declared published AgoraRtcEngine_iOS version.
All five Apple projects Published/local SDK selection and preservation of unrelated configuration PASS Both modes tested against all five actual project Podfiles.
All five Apple projects Ruby syntax of transformed Podfiles PASS All ten project/mode combinations pass ruby -c.
Packaging helper suite PYTHONDONTWRITEBYTECODE=1 .venv/bin/python -m unittest discover --start-directory .github/ci/build/tests --pattern 'test_*.py' PASS 13 tests passed: 5 dependency-selection tests plus 8 existing signing-helper tests.
Repository hooks Diff whitespace, staged Gitleaks and English commit-message checks PASS Passed for commit 0a82053a1e8ca9f5f430558ddf34efde86387057.
Remote content Compare remote commit and tree to verified local commit PASS Both match; exactly three changed files, 92 insertions and 5 deletions.
Full Apple package builds CocoaPods installation followed by each selected project's cloud_build.sh in the Jenkins environment NOT_RUN Local CocoaPods and Jenkins release assets are unavailable. Run a compile-only/non-publishing verification from the fix branch after it is available to Jenkins; successful archive/export remains outstanding.

Repository Checks

  • Helper behavior matches the shared contract across the five Apple projects.
  • Every required build validation is PASS; full Jenkins package verification remains outstanding.
  • SDK versions and dependency sources match docs/ai/project-matrix.md.
  • Gitleaks and English commit-message hooks passed; no credentials or binary assets were added.
  • No application source files or checked-in Podfiles changed.
  • Actual Jenkins packaging was verified separately from compile-only CI.

This PR remains a draft pending build verification.

Select the declared published Agora pod when sdk_url is empty instead of retaining an empty local sdk pod. Keep injected package selection for supplied archives and cover all five Apple Podfiles in regression checks.

@CaiYiPing CaiYiPing left a comment

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fix Apple packaging when sdk_url is empty

@CaiYiPing
CaiYiPing marked this pull request as ready for review December 3, 2026 02:25
@CaiYiPing
CaiYiPing merged commit 07856f8 into main Dec 3, 2026
28 of 41 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant