Skip to content

iOS Simulator build fails: 'arm64-apple-ios-sim' target invalid #761

@gezihuzi

Description

@gezihuzi

Problem:

Unable to build aws-lc-sys on iOS Simulator due to bindgen failing to recognize the iOS simulator architecture. Build succeeds on physical iOS devices but fails on simulators with "version 'sim' in target triple 'arm64-apple-ios-sim' is invalid" error.

Relevant details

AWS-LC for Rust versions or commit: aws-lc-sys v0.28.0
System information:

CPU architecture: ARM64 (Apple Silicon)
CPU name: Apple M-series
OS: macOS 15.4 (24E248) (with Xcode 16.3 (16E140) for iOS development)

Additional information:

  • Rust version: rustc 1.85.1 (4eb161250 2025-03-15)
  • Cargo version: cargo 1.85.1 (d73d2caf9 2024-12-31)

Installed targets

  • aarch64-apple-ios
  • aarch64-apple-ios-sim

Build log:

warning: [email protected]: Building with: CMake
warning: [email protected]: Symbol Prefix: Some("aws_lc_0_28_0")
warning: [email protected]: CMAKE environment variable set: cmake
warning: [email protected]: Clang version: Apple clang version 17.0.0 (clang-1700.0.13.3)
warning: [email protected]: Generating bindings - internal bindgen. Platform: aarch64-apple-ios-sim
error: failed to run custom build command for `aws-lc-sys v0.28.0`

Caused by:
  process didn't exit successfully: [build script path removed] (exit status: 101)

  --- stderr
  thread 'main' panicked at [path removed]/aws-lc-sys-0.28.0/builder/sys_bindgen.rs:106:10:
  Unable to generate bindings.: ClangDiagnostic("error: version 'sim' in target triple 'arm64-apple-ios-sim' is invalid\n")

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions