Skip to content

Linker error with StoreKit2 on iPhone 16 Pro Max simulator (iOS 18.5) #1

@AntoninLolivier

Description

@AntoninLolivier

When trying to build and run my project on an iPhone 16 Pro Max simulator (iOS 18.5), the build fails with a clang++ linker error.
Here is the error output:

2>Xamarin.Shared.Sdk.targets(1837,3): Error : clang++ exit with code 1:
Undefined symbols for architecture x86_64:
  "_OBJC_CLASS_$__TtC18StoreKit2Framework14PaymentManager", referenced from:
      <initial-undefines>
  "_OBJC_CLASS_$__TtC18StoreKit2Framework14PaymentProduct", referenced from:
      <initial-undefines>
  "_OBJC_CLASS_$__TtC18StoreKit2Framework18PaymentTransaction", referenced from:
      <initial-undefines>
ld: symbol(s) not found for architecture x86_64
clang++: error: linker command failed with exit code 1 (use -v to see invocation)

Environment:

  • Target device: iPhone 16 Pro Max Simulator
  • iOS version: 18.5
  • Architecture: x86_64 (simulator)
  • **SDK : .NET MAUI 9.0

Steps to reproduce:

  1. Launch the project on an iPhone 16 Pro Max simulator (iOS 18.5).
  2. Build the project.
  3. Observe the linker error.

Notes:

  • Is StoreKit2 supported on simulators with x86_64 architecture in iOS 18.5?
  • Not yet tested on a physical device (ARM64), might only affect simulators.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingenhancementNew feature or requestwontfixThis will not be worked on

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions