# Build NetExperts Phone 1.0.0 build 26

Download the app source, SDK source, Swift wrapper, build materials, build tools and Swift package source archives from the build 26 source entry. Its SDK, build tool and Swift dependency links reuse the unchanged build 25 archives. Verify the files with `shasum -a 256 -c SHA256SUMS`. Extract the app archive into an empty directory. It creates `app/`. Set up the SDK under sibling directory `sdk/` so Xcode resolves `sdk/private-package/Package.swift` relative to the project.

## Build the app

Use Xcode 27.2 with an arm64 iOS Simulator. The app's `Package.resolved` names the exact AppAuth, Elegant Emoji Picker and PhoneNumberKit source revisions. Their source archives are included with the corresponding licence files. Let Xcode check out those pinned revisions, or use a previously resolved package cache. In Terminal, use

    xcodebuild -project app/LinphoneApp.xcodeproj -scheme Linphone -configuration Release -destination 'generic/platform=iOS Simulator' ARCHS=arm64 ONLY_ACTIVE_ARCH=YES CODE_SIGNING_ALLOWED=NO build

To run on a device, use your Apple team and assign your own bundle identifiers, App Groups, keychain and push entitlements to the app and extensions. Use credentials for a line and gateway you operate or are authorised to use. See the app's docs/RELEASE.md for the differences between this export and NetExperts’ signed build.

## Native iOS SDK

Each build uses Linphone SDK 5.5.39 at 4d00285c92511acbeba7b2c7c9c621599192584f. Select the variant recorded in the build JSON.

    mkdir -p sdk/source sdk/original-package
    tar -xzf linphone-sdk-5.5.39-ios-source.tar.gz -C sdk/source
    tar -xzf linphone-sdk-5.5.39-swift-wrapper.tar.gz -C sdk/original-package
    tar -xzf linphone-sdk-5.5.39-netexperts-build-materials.tar.gz -C sdk
    for patch_file in sdk/0[1-3]-*.patch; do patch -f -d sdk/source -p1 < "$patch_file"; done
    patch -f -d sdk/source/mediastreamer2 -p1 < sdk/04-turn-readiness.patch

The base includes the pinned recursive iOS source inputs. The four patches are required for build 26. The build-materials archive contains the original configuration, package assembly, Swift sources and guards for the reviewed SDK.

For the patched SDK toolchain use CMake 4.4.5, Ninja 1.13.2, Python 3.9.6, yasm 1.3.0 and Xcode 27.2. Have meson, nasm, autoconf, automake, perl and pkg-config on PATH. From the freshly prepared SDK directory, create tools-venv with the pinned Python and install pystache 0.6.8, six 1.17.0, importlib_metadata 8.7.1 and zipp 3.23.1. Put yasm and the xcrun launcher in tools/bin. Point both configure-ios.sh, build-ios.sh and that launcher at the selected Xcode installation. The per-architecture upstream builder clears the parent environment.

    bash configure-ios.sh
    bash build-ios.sh
    python3 assemble-private-package.py

The assembly step uses original-package and the 17 generated XCFrameworks for iOS arm64 and simulator arm64. For an unpatched upstream source build, use the source tree's ios-sdk CMake preset and the upstream wrapper. The historically distributed TURN package was created by rebuilding the changed media object and relinking the existing release inputs.

An independently compiled SDK can have different binary hashes. SDKPrivacy/verify-sdk.py checks the exact inventory reviewed for that app release, including its provenance file. To qualify a newly built SDK for your own fork, review its API and privacy usage, generate the inventory and checksums for that package, update the fork's SDKPrivacy lock accordingly and run its verification and regression tests. Signing, debug symbols and compiler metadata can differ between builds. A passing source hash comparison is distinct from a byte-identical rebuild.

The retained yasm source and xcrun wrapper are in ios-build-tools.tar.gz. In a fresh directory, unpack the yasm source, run its configure with --prefix pointing to the prepared SDK's tools directory, then make and make install. Copy the supplied xcrun wrapper into tools/bin and make it executable. 
