Skip to content

The RuntimeIdentifier 'ios-arm64' is invalid. #7765

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
Symbai opened this issue Jun 5, 2022 · 8 comments
Closed

The RuntimeIdentifier 'ios-arm64' is invalid. #7765

Symbai opened this issue Jun 5, 2022 · 8 comments
Labels
area-publishing Issues with the app packaging/publishing process (ipk/apk/msix/trimming) platform/ios s/needs-attention Issue has more information and needs another look t/bug Something isn't working

Comments

@Symbai
Copy link
Contributor

Symbai commented Jun 5, 2022

Description

On Windows trying to publish my app using a mac host fails with The RuntimeIdentifier 'ios-arm64' is invalid. I've followed the documentation. I'm using MAIN branch.

Steps to Reproduce

in csproj file:

  <PropertyGroup Condition="$(TargetFramework.Contains('-ios')) and '$(Configuration)' == 'Release'">
    <RuntimeIdentifier>ios-arm64</RuntimeIdentifier>
    <CodesignKey>iPhone Distribution: XXX XXX (XXX)</CodesignKey>
    <CodesignProvision>XXXXXX</CodesignProvision>
    <ArchiveOnBuild>true</ArchiveOnBuild>
    <TcpPort>58181</TcpPort>
  </PropertyGroup>

in windows terminal:
dotnet publish -f:net6.0-ios -c:Release /p:RuntimeIdentifier=ios-arm64 /p:ServerAddress=192.168.178.54 /p:ServerUser=xxxxxx /p:ServerPassword=xxxxxxx /p:TcpPort=58181 /p:ArchiveOnBuild=true /p:_DotNetRootRemoteDirectory=/Users/xxxxx/Library/Caches/Xamarin/XMA/SDKs/dotnet/

Version with bug

6.0 (current)

Last version that worked well

Unknown/Other

Affected platforms

iOS

Affected platform versions

iOS

Did you find any workaround?

No response

Relevant log output

C:\Program Files\dotnet\packs\Microsoft.MacCatalyst.Sdk\15.4.303\targets\Xamarin.Shared.Sdk.targets(1739,3): error : Th
e RuntimeIdentifier 'ios-arm64' is invalid.
@Symbai Symbai added s/needs-verification Indicates that this issue needs initial verification before further triage will happen t/bug Something isn't working labels Jun 5, 2022
@jfversluis
Copy link
Member

Could you try dotnet publish MyProject.csproj and then add the additional parameters?

@jfversluis jfversluis added platform/ios s/needs-info Issue needs more info from the author area-publishing Issues with the app packaging/publishing process (ipk/apk/msix/trimming) and removed s/needs-verification Indicates that this issue needs initial verification before further triage will happen labels Jun 5, 2022
@ghost
Copy link

ghost commented Jun 5, 2022

Hi @Symbai. We have added the "s/needs-info" label to this issue, which indicates that we have an open question for you before we can take further action. This issue will be closed automatically in 7 days if we do not hear back from you by then - please feel free to re-open it if you come back to this issue after that time.

@Symbai
Copy link
Contributor Author

Symbai commented Jun 5, 2022

Thanks but unfortunately it results in the same error:

C:\Users\xxxx\source\repos\xxxx\xxxx>dotnet publish xxxx.csproj -f:net6.0-ios -c:Release  /p:RuntimeIdentifier=ios-arm64 /p:ServerAddress=192.168.178.54 /p:ServerUser=xxxx /p:ServerPassword=xxxx /p:TcpPort=58181 /p:ArchiveOnBuild=true /p:_DotNetRootRemoteDirectory=/Users/xxxx/Library/Caches/Xamarin/XMA/SDKs/dotnet/
Microsoft (R)-Build-Engine, Version 17.2.0+41abc5629 for .NET
Copyright (C) Microsoft Corporation. All rights reserved.

  Projects to be restored are identified...
C:\Program Files\dotnet\packs\Microsoft.MacCatalyst.Sdk\15.4.303\targets\Xamarin.Shared.Sdk.targets(1739,3): error : Th
e RuntimeIdentifier 'ios-arm64' is invalid. [C:\Users\xxxx\source\repos\xxxx\xxxx\xxxx
xxxx.csproj]

C:\Users\xxxx\source\repos\xxxx\xxxx>

@ghost ghost added s/needs-attention Issue has more information and needs another look and removed s/needs-info Issue needs more info from the author labels Jun 5, 2022
@fatb0tlp
Copy link

fatb0tlp commented Jul 21, 2022

I am having the same exact error. Extreme difficulty in publishing anything meaningful for IOS and Maui. Has there been any additional insight into this issue?

The only article I can find about publishing an iOS app is here: https://docs.microsoft.com/en-us/dotnet/maui/ios/deployment/overview

Though I have followed the steps, I have had no success.

dotnet publish -c:Release /p:ServerAddress=10.xx.xx.xx /p:ServerUser=xxxxx/p:ServerPassword=xxxxxxx /p:TcpPort=58181 /p:ArchiveOnBuild=true /p:CodesignKey="iPhone Distribution: &&&&& *****(xxxxxxx)" /p:CodesignProvision="AdsDevId" /p:RuntimeIdentifier="ios-arm64" /p:_DotNetRootRemoteDirectory=/Users/xxxx/Library/Caches/Xamarin/XMA/SDKs/dotnet/

@Orgbrat
Copy link

Orgbrat commented Jul 24, 2022

I am having this same exact error (error : The RuntimeIdentifier 'ios-arm64' is invalid.) when trying to publish my MAUI iOS application from command line. I have watched @jfversluis video at Release Your .NET MAUI iOS App to the Apple App Store and also followed the Microsoft docs at Publish a .NET MAUI app for iOS.

After trying both set of instructions multiple times, I have had no success.

dotnet publish -f:net6.0-ios -c:Release /p:RuntimeIdentifier=ios-arm64 /p:ServerAddress=192.xx.xx.xx /p:ServerUser=xxxxx /p:ServerPassword=xxxxx /p:TcpPort=58181 /p:ArchiveOnBuild=true /p:_DotNetRootRemoteDirectory=/Users/xxxxxx/Library/Caches/Xamarin/XMA/SDKs/dotnet/

Has anyone found a solution for this issue?

@Symbai
Copy link
Contributor Author

Symbai commented Jul 24, 2022

Has anyone found a solution for this issue?

I copied the project to the Mac and published it there using dotnet publish -f:net6.0-ios -c:Release. I dont think we will see a fix for this problem in the near future.

@jfversluis
Copy link
Member

Looks like this is a bug in the .NET SDK as seen in this issue: dotnet/sdk#21877

Please add your details there. Seems a workaround could be to add --no-restore

@jfversluis jfversluis closed this as not planned Won't fix, can't repro, duplicate, stale Jul 25, 2022
@fatb0tlp
Copy link

I was able to publish working through this thread:
dotnet/docs-maui#681 (comment)

@ghost ghost locked as resolved and limited conversation to collaborators Aug 24, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
area-publishing Issues with the app packaging/publishing process (ipk/apk/msix/trimming) platform/ios s/needs-attention Issue has more information and needs another look t/bug Something isn't working
Projects
None yet
Development

No branches or pull requests

4 participants