You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
We'd need RID for arm7s too but I'd not bother with that one as Apple already abandoned it. I think we need new RID unless we'll always build fat like libraries which I am not sure it's even supported with arm64e. It'll also be required to link correct native libraries as I don't think you can link a mix of arm64e and arm64 libs.
@rolfbjarne my understanding is that Apple does not require apps to include arm7s slice and the benefits of compiling for this architecture are very limited (basically only floating-point-heavy applications could benefit).
you can build a fat library that contains native code for both arm64 and arm64e.
But you need to have 2 sets of all native libs for that, right?
But you need to have 2 sets of all native libs for that, right?
An arm64 process can load both arm64 and arm64e libraries but an arm64e process can only load arm64e libraries.
So basically it depends on the host app and the App Store doesn't accept arm64e apps yet.
Apple supports fat libraries everywhere so in theory we could ship one libmono.dylib that contains armv7+armv7s+arm64+arm64e (which is what we do in mono/mono today).
@akoeplinger are you suggesting that every ios-arm64 nuget with native bits have to have fat arm64+arm64e bits? How can we enforce that and what would be the benefits over a new RID deriving ios-arm64?
my understanding is that Apple does not require apps to include arm7s slice and the benefits of compiling for this architecture are very limited (basically only floating-point-heavy applications could benefit).
Both of these are true, but that doesn't mean it won't change in the future (Apple could remove support for armv7 while maintaining support for armv7s - in particular I believe that once Apple bumps their min OS version to iOS 10 (it's currently at iOS 7), all the remaining devices that can run iOS 10 have an armv7s CPU and thus armv7 isn't needed anymore).
An arm64 process can load both arm64 and arm64e libraries but an arm64e process can only load arm64e libraries.
@akoeplingerPretty sure it's the reverse. Recent phones have arm64e CPU and they run existing (arm64) apps. Important as Apple does not support submitting (and Xcode removes) arm64e slices.
There may be existing apps building only for armv7s, and if those apps depend on third-party libraries which are also only built for armv7s, then removing our support for armv7s will break those customers (they won't be able to use their third-party libraries anymore).
The App Store might not allow customers who have been shipping apps with armv7s slices to remove that slice (easily).
Activity
Dotnet-GitSync-Bot commentedon Mar 26, 2020
I couldn't figure out the best area label to add to this issue. Please help me learn by adding exactly one area label.
marek-safar commentedon Mar 26, 2020
/cc @akoeplinger
akoeplinger commentedon Mar 26, 2020
I'm not sure we need a new RID, this is pretty similar to the
armv7svariant that we build already in a fat binary: https://github.com/dotnet/runtime/blob/master/src/mono/mono.proj#L118-L119marek-safar commentedon Mar 26, 2020
We'd need RID for arm7s too but I'd not bother with that one as Apple already abandoned it. I think we need new RID unless we'll always build fat like libraries which I am not sure it's even supported with arm64e. It'll also be required to link correct native libraries as I don't think you can link a mix of arm64e and arm64 libs.
/cc @rolfbjarne
rolfbjarne commentedon Mar 26, 2020
Where did you see this?
armv7sisn't less applicable thanarmv7.Yes, you can build a fat library that contains native code for both
arm64andarm64e.marek-safar commentedon Mar 26, 2020
@rolfbjarne my understanding is that Apple does not require apps to include arm7s slice and the benefits of compiling for this architecture are very limited (basically only floating-point-heavy applications could benefit).
But you need to have 2 sets of all native libs for that, right?
akoeplinger commentedon Mar 26, 2020
An arm64 process can load both arm64 and arm64e libraries but an arm64e process can only load arm64e libraries.
So basically it depends on the host app and the App Store doesn't accept arm64e apps yet.
Apple supports fat libraries everywhere so in theory we could ship one libmono.dylib that contains armv7+armv7s+arm64+arm64e (which is what we do in mono/mono today).
marek-safar commentedon Mar 27, 2020
@akoeplinger are you suggesting that every ios-arm64 nuget with native bits have to have fat arm64+arm64e bits? How can we enforce that and what would be the benefits over a new RID deriving ios-arm64?
rolfbjarne commentedon Mar 27, 2020
Both of these are true, but that doesn't mean it won't change in the future (Apple could remove support for
armv7while maintaining support forarmv7s- in particular I believe that once Apple bumps their min OS version to iOS 10 (it's currently at iOS 7), all the remaining devices that can run iOS 10 have anarmv7sCPU and thusarmv7isn't needed anymore).spouliot commentedon Mar 27, 2020
@akoeplinger
Pretty sure it's the reverse. Recent phones havearm64eCPU and they run existing (arm64) apps. Important as Apple does not support submitting (and Xcode removes)arm64eslices.Missed the process. Need more ☕️
rolfbjarne commentedon Mar 27, 2020
Two more points:
There may be existing apps building only for
armv7s, and if those apps depend on third-party libraries which are also only built forarmv7s, then removing our support forarmv7swill break those customers (they won't be able to use their third-party libraries anymore).The App Store might not allow customers who have been shipping apps with
armv7sslices to remove that slice (easily).4 remaining items
marek-safar commentedon Apr 17, 2020
I guess we'll see after WWDC so moving out of net5 scope for now
ViktorHofer commentedon May 10, 2022
@marek-safar is this still required?
rolfbjarne commentedon May 10, 2022
It's not required yet, but it probably will sooner or later (maybe even this summer, we'll know more after WWDC in June).