News for hackers. Stuff that matters.
Re:Xcode 14 deprecates bitcode for watchOS and tvOS by danpalmer on Friday July 01, 2022 @05:51AM (#31944288)
Does anyone know why this is changing? I thought Bitcode provided some useful flexibility for Apple and that they'd be moving in the direction of more dynamism in apps in this way, rather than removing it.

Is this already gone for iOS, or is it sticking around longer for iOS?

Re:Xcode 14 deprecates bitcode for watchOS and tvOS by pdpi on Friday July 01, 2022 @05:59AM (#31944340)
AIUI the point of bitcode was that you submit one bitcode app, and Apple then compiles that down to per-model native apps. The last Apple Watch without 64-bit support was the gen 3, and that is no longer supported, so the use case for bitcode is gone. I expect they'll be happy to sunset that whole chunk of infra on their end.
Re:Xcode 14 deprecates bitcode for watchOS and tvOS by 0x0 on Friday July 01, 2022 @06:15AM (#31944457)
Even the newer apple watches aren't fully 64bit, instead they run an architecture called "arm64_32" which uses 32bit pointers (which is probably why bitcode worked for this transition, I don't think 32bit bitcode could be used to produce a 64bit native binary)
Re:Xcode 14 deprecates bitcode for watchOS and tvOS by plorkyeran on Friday July 01, 2022 @11:39AM (#31947957)
Xcode 14 introduces real arm64 for watchOS, and it runs on current watches. arm64_32 appears to have been just a transitionary thing (specifically so that existing apps could be recompiled to it via bitcode).
Re:Xcode 14 deprecates bitcode for watchOS and tvOS by blackoil on Friday July 01, 2022 @06:34AM (#31944571)
Does that mean someone with gen 3 watch will not be able to download any new app?
Re:Xcode 14 deprecates bitcode for watchOS and tvOS by selykg on Friday July 01, 2022 @07:18AM (#31944822)
That model is not getting the latest watchOS update this fall. So it’s effectively end of life going forward.
Re:Xcode 14 deprecates bitcode for watchOS and tvOS by iasay on Friday July 01, 2022 @07:22AM (#31944850)
That's crap. They still sell it.
Re:Xcode 14 deprecates bitcode for watchOS and tvOS by theplumber on Friday July 01, 2022 @08:00AM (#31945195)
So what? People buy more useless stuff all the time
Re:Xcode 14 deprecates bitcode for watchOS and tvOS by nindalf on Friday July 01, 2022 @08:30AM (#31945505)
Apple takes great pride in supporting their iPhones for years after they stop selling them. This is the exact opposite.
Re:Xcode 14 deprecates bitcode for watchOS and tvOS by memsom on Friday July 01, 2022 @10:42AM (#31947044)
Not really true. The Apple Watch series 3 was released 2017, so it got 4.5 - 5 years of support. I don't think that is bad. It will still work, it will just not get any more OS updates.

I sport an iPhone 6s. I guess it is unsupported from this year, but I have owned it since the December after it was launched. So it was supported for circa 6 years, give or take a few months. That was absolutely the longest any Apple iPhone was ever supported. Most get less (I want to say up to 4 years, but I have no actual figures to hand.) I'm not unhappy with the length it was supported to be honest. My previous phone was a Nexus 4 and that got way less, I don't think it was more then 3.

The length the Apple Watch series 3 was supported it perfectly acceptable, and I bet few bough outside of the last 2 years still have great battery life anyway.

Re:Xcode 14 deprecates bitcode for watchOS and tvOS by plorkyeran on Friday July 01, 2022 @11:44AM (#31948043)
The relevant thing is how long they support it from when they stop selling a device, not from when they started selling a device. You can still buy a brand new series 3 Watch from Apple _today_. Those devices are getting zero years of support.
Re:Xcode 14 deprecates bitcode for watchOS and tvOS by hnaccount_rng on Friday July 01, 2022 @12:46PM (#31949142)
In principle I strongly agree, but I have yet to find a single third party app that I want on my watch. And as long as the watch is still able to do notifications, pinging, podcasts and unlocking of my MacBook, I wouldn't consider this too bad. But let's see how this shakes out in practice
Re:Xcode 14 deprecates bitcode for watchOS and tvOS by joe5150 on Saturday July 02, 2022 @05:47AM (#31957586)
bought mine in October 2017 and still wear it daily to this day. it easily goes the full day and usually most of the next if I forget to charge it. it might last longer if I turned off the cellular antenna, but I've never needed to.
Re:Xcode 14 deprecates bitcode for watchOS and tvOS by tinus_hn on Saturday July 02, 2022 @08:51AM (#31958600)
They will probably keep supporting it with security updates for quite a while, I don’t think they can get away with selling a device and then immediately pulling support.
Re:Xcode 14 deprecates bitcode for watchOS and tvOS by theplumber on Friday July 01, 2022 @08:57AM (#31945739)
That's the PR. The reality is more nuanced #Batterygate
Re:Xcode 14 deprecates bitcode for watchOS and tvOS by mastercheif on Friday July 01, 2022 @09:23AM (#31945995)
#batterygate was an attempt to extend the life of iPhone 6 and iPhone 6s models with aged batteries by preventing unexpected shutdowns which were caused by the CPU pulling to much current when operating at high frequencies.

Apple should have been more transparent about what they were doing, but it’s difficult to argue that they were operating in bad faith. I’d wager unexpected shutdowns would result in more aggregate “unwanted” upgrades versus degraded peak performance.

Re:Xcode 14 deprecates bitcode for watchOS and tvOS by gumby on Friday July 01, 2022 @09:36AM (#31946147)
I agree completely. Sadly, the reality doesn’t generate clicks, so pseudo-scandal it is.
Re:Xcode 14 deprecates bitcode for watchOS and tvOS by Dylan16807 on Friday July 01, 2022 @02:40PM (#31950868)
It was a workaround for a problem they caused with the phone design.

I won't cry bad faith, exactly, but it was bad that the phones would lose performance after a couple years without this being properly explained up front. Their battery replacement program also helped mitigate the issue, but now newer phones cost more to replace batteries on, also because of design decisions...

Re:Xcode 14 deprecates bitcode for watchOS and tvOS by jamesrom on Friday July 01, 2022 @09:28AM (#31946052)
> The reality is more nuanced

> #Batterygate

Pick one.

Re:Xcode 14 deprecates bitcode for watchOS and tvOS by danpalmer on Friday July 01, 2022 @06:06AM (#31944394)
Thanks. I had remembered that Bitcode was architecture specific and couldn't remember if that applied down to the 32/64 transition.
Re:Xcode 14 deprecates bitcode for watchOS and tvOS by yoz-y on Friday July 01, 2022 @12:23PM (#31948781)
Afaik Craig said (probably in The Talkshow) that bitcode is not useful to do a 64bit transition as it is still specific to an architecture. It only allows for micro-optimisations.
Re:Xcode 14 deprecates bitcode for watchOS and tvOS by lstamour on Friday July 01, 2022 @05:59AM (#31944341)
Seems it’s being deprecated as the relevant platforms are unifying on arm64: https://www.runway.team/blog/wwdc-2022-highlights
Re:Xcode 14 deprecates bitcode for watchOS and tvOS by trollied on Friday July 01, 2022 @05:57AM (#31944334)
I guess it was an interim measure as part of the x86_64->arm transition. Now that everything targets arm, there's no need for an intermediate representation.
Re:Xcode 14 deprecates bitcode for watchOS and tvOS by plorkyeran on Friday July 01, 2022 @11:43AM (#31948026)
It was an interm measure for the armv7 -> arm64 transition, where they used it to convert armv7 binaries to a wacky 32-bit version of arm64.

It was also used for a few misguided things over the years, like force-enabling Swift Concurrency backdeployment for apps submitted to the app store, which mostly just introduced bugs that only happened on app store/test flight installs for zero benefit.

Re:Xcode 14 deprecates bitcode for watchOS and tvOS by 0x0 on Friday July 01, 2022 @06:00AM (#31944355)
Bitcode wouldn't help with the x86-arm transition because bitcode is still architecture specific.

My guess is that maybe they don't want to maintain multiple old toolchains to provide the on-demand bitcode->native build step on the app store servers?

Re:Xcode 14 deprecates bitcode for watchOS and tvOS by pjmlp on Friday July 01, 2022 @06:02AM (#31944367)
That is the case for standard LLVM bitcode, Apple's own version is more finetuned and probably a reason why they are moving away from it, no longer willing to keep maintaining their fork.
Re:Xcode 14 deprecates bitcode for watchOS and tvOS by trollied on Friday July 01, 2022 @06:15AM (#31944451)
>bitcode is still architecture specific

Ah, I didn't know that. Thank you

Re:Xcode 14 deprecates bitcode for watchOS and tvOS by 0x0 on Friday July 01, 2022 @06:28AM (#31944538)
Even if bitcode was fully architecture independent, you would immediately hit a wall with various framework constants having different #defined integer values. For example, https://developer.apple.com/documentation/apple-silicon/addr... talks about how the NSTextAlignment enum has diverging definitions between archs.

By the way something similar happens on Linux where kernel syscalls have different numbers between archs, for example. (Although on mac/ios, syscalls aren't guaranteed to be stable even across minor macos versions; the only officially supported interface to the kernel is libc)

Re:Xcode 14 deprecates bitcode for watchOS and tvOS by skissane on Friday July 01, 2022 @07:04AM (#31944730)
> talks about how the NSTextAlignment enum has diverging definitions between archs

I wonder why: was there some benefit for Apple in doing this?

Re:Xcode 14 deprecates bitcode for watchOS and tvOS by plorkyeran on Friday July 01, 2022 @11:48AM (#31948117)
That specific change is possibly just a mistake. They take advantage of architecture transitions to do cleanup which they couldn't do normally because it's an ABI-breaking change. In that specific case, I'd guess they removed the enum values which were no longer actually supported and (accidentally?) renumbered the rest.
Re:Xcode 14 deprecates bitcode for watchOS and tvOS by DaiPlusPlus on Friday July 01, 2022 @07:08AM (#31944756)
> the only officially supported interface to the kernel is libc

aka "no fun allowed"

Re:Xcode 14 deprecates bitcode for watchOS and tvOS by pdpi on Friday July 01, 2022 @06:01AM (#31944363)
bitcode predates that transition (which is very much still in play). watchOS and tvOS never had (consumer?) x86 versions, the bitcode thing was a workaround to having to build fat (multi-arch) binaries for more space-constrained devices like the Apple Watch and Apple TV.