Nintendo actually doesn't get enough credit for some of the 3rd party monster moves they did make with the GameCube. They cut a deal for the entire freaking Resident Evil franchise to be exclusive. At the time, Resident Evil was probably like the 2nd or 3rd biggest 3rd party IP ... maybe even first? That would be like Nintendo getting I dunno, Call of Duty exclusive today. They also cut deals for Metal Gear Solid Remake, got a Final Fantasy game, repaired their relationship with Namco to the point where Namco would work on Nintendo games, Capcom 5 to go with the Resident Evil games, EA would even market with the GameCube logo and Mario characters in games like SSX and what not.
They did quite a bit. It just wasn't enough. Because Sony had a huge headstart, they could leverage better deals with 3rd parties and Nintendo was kind of in a weird awkward spot where MS probably would also offer more money than Nintendo.
The goal shouldn't have been the beat Sony, Sony was too much of a juggernaut, the goal should have been to bury the XBox before it could get momentum (the same way the PS2 shit on the GCN with its headstart). If they could have carved out their place as the no.2 console they probably could have hit their sales target for the GameCube which Nintendo stated was somewhere in the range of 40-50 million units.
The Wii U analogy doesn't really work because the Wii U was a full generation behind the PS4 in tech without the fancy gimmick of a controller craze it was a very unappealing, outdated system next to the much more appealing PS4. The GameCube was better hardware than the PS2 though. Unfortunately the XBox was even better hardware than probably the both of them (PS2 and GCN) and was easy to develop for also, so it stole a lot of the GCN's thunder. If it was just PS2 vs GCN, I think over time people would have been more appreciative of the GameCube's strengths versus the PS2.
I don't think Apple gave two shits about gaming when designing the iPhone honestly. They didn't even highlight gaming at all when they unveiled it. Gaming is just something that developed on the iPhone later on as it made sense in the App ecosystem and developers themselves kinda took the intiative to start making games, not really something Apple themselves was pushing for. Once they realized it was a revenue source, of course they were fine with it. In fact one of the most famous moments in Jobs' iconic iPhone reveal event in 2007 was taking a giant shit on resistive touchscreen devices (which is what PDAs and the DS were) by saying basically "you don't need that stupid touch pen".
If the iPhone had been designed for gaming, really a trackball (small one) in place of the home button would've been much better for gaming. The main thing that sucks about smartphone gaming is the lack of a physical directional input. On-screen buttons are OK (not ideal, but you can get used to that) ... but a touchscreen really can't replace a physical directional input for character controls.
Nintendo didn't cut a deal Shinji Mikami decided to exclusively switch to Nintendo's platform if Nintendo cut a deal do you think RE4 would have gotten a PS2 version? People are still waiting for the mythical Bayonetta 2 on other platforms Mikami had grievances with Sony, RE wasn't the second biggest franchise the series at that point was in decline that's probably why Capcom didn't bat an eye at all with Mikami's decision because they thought RE was on it's way out even watch the RE4 developers interview Capcom developers didn't even want to work on the games anymore RE4 is what turned the series around and saved it.
Apple very much did as the DS execution showed them something that is standard for all smart phones, versatile user friendly interface, it gave apple a tried and tested foundation for their own concepts as before the iPhone their smart phone attempts were a collaboration with Motorola in the iTunes Phone released in 2005 and was no different from other phones in design the DS' success caught everyone's eye with it's screen usage due to it's interface which inspired a rethink they then employed the new concept on the iPod with the iPod Touch and iPhone this is what setting the groundwork does as you don't have to be aiming at the same market to be inspired by an idea Nintendo weren't thinking about phones but inadvertently set the tone for a new era to come in as they had even created the template for the tech and also the perfect market for it.