Skip to content

Can't build Xamarin.ios with Xcode 15.1 and SDK 17 #2621

Open
@victorbeltranpinol

Description

@victorbeltranpinol

Describe the solution you'd like
I would like to build the iOS Xamarin Forms using Xamarin.iOS 16.4 and Xcode 15.0.1 Preview

Additional context
When I try to build my app in the App Center using:
SDK version: Xamarin.iOS 16.4
Xcode version: 15.0.1 Preview

I have many errors like this:

/Users/runner/work/1/s/MyProject/obj/iPhone/Release/netstandard2.0/.NETStandard,Version=v2.0.AssemblyAttributes.cs(4,20): error CS0400: The type or namespace name 'System' could not be found in the global namespace (are you missing an assembly reference?) [/Users/runner/work/1/s/MyProject/MyProject.csproj]
/Users/runner/work/1/s/MyProject/obj/iPhone/Release/netstandard2.0/MyProject.AssemblyInfo.cs(14,55): error CS0518: Predefined type 'System.String' is not defined or imported [/Users/runner/work/1/s/MyProject/MyProject.csproj]

However, if I run the build using:
SDK version: Xamarin.iOS 16.2
Xcode version: 14.2

It works like a charm

I received this email from Apple, therefore I must build the APP using SDK iOS 17 and Xcode 15

ITMS-90725: SDK version issue - This app was built with the iOS 16.2 SDK. Starting April 29, 2024, all iOS and iPadOS apps must be built with the iOS 17 SDK or later, included in Xcode 15 or later, in order to be uploaded to App Store Connect or submitted for distribution.

Is there something not ready in the ios build machines of the App Center? Does somebody have success using xcode 15?

Thanks in advance

Metadata

Metadata

Assignees

No one assigned

    Labels

    buildRelated to App Center's Build servicefeature requestNew feature request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions