News for hackers. Stuff that matters.
Re:Apple Starts to Woo Its App Developers by msie on Friday June 10, 2016 @09:28PM (#11881507)
So what? I have to build a Windows app on Windows, most likely using Visual Studio.
Re:Apple Starts to Woo Its App Developers by justabystander on Friday June 10, 2016 @09:59PM (#11881610)
Cross-compiling Windows apps from Linux using Mingw has been a thing for a very long time. Mingw itself is 18 years old. There are also options for using LLVM or compatibility layers like Midipix. So, no, Windows is not required and hasn't been for a long time.

As far as Visual Studio, it's not required, either. 3rd party compilers have always been a thing for MS operating systems. In fact, for a long time, you weren't even able to use VS to build drivers for Windows. Microsoft is also currently going out of its way to create neutral tools to enable developers to use the workflow and tools they desire. Omnisharp exists for providing intellisense to editors and IDEs. VS Code is a new, cross-platform IDE that works for both node and C#, among other languages. MonoDevelop still exists and can be used to write Windows-compatible applications.

But for Apple, you have to own a mac or, as is common, lease a mac to build and sign on. So, no, these things aren't even in the same realm of control. MS treats Windows as its primary platform for innovation. Apple treats OSX as the only platform in existence.

Re:Apple Starts to Woo Its App Developers by sjtgraham on Saturday June 11, 2016 @06:32AM (#11882944)
I have a feeling it wouldn't be that difficult to do codesigning on another platform. It's a case of sha all the things, encrypt the sha with the cert private key, and render a plist with the signatures. IIRC there is a code signature load command in the Mach-O headers too?
Re:Apple Starts to Woo Its App Developers by steeve on Saturday June 11, 2016 @10:44AM (#11883599)
The issue is not so much technical as it is about legality. Codesign is itself open source (Darwin), but Apple TOS forbids you from building OSX/IOS apps to be distributed on the App Store on non Apple Hardware. I guess you could do it anyway, but I don't think people would risk it for the price of a mac mini...
Re:Apple Starts to Woo Its App Developers by msie on Saturday June 11, 2016 @02:33AM (#11882354)
> Cross-compiling Windows apps from Linux using Mingw has been a thing for a very long time. Mingw itself is 18 years old. There are also options for using LLVM or compatibility layers like Midipix. So, no, Windows is not required and hasn't been for a long time.

Sure, develop for Windows without using Windows. But why spend time developing for a platform that you don't use regularly? What about testing? How far can you go without Windows?

> As far as Visual Studio, it's not required... VS or Windows is not required but the majority of developers develop using VS on Windows. You could cheap-out by avoiding these but you're being penny-wise and pound-foolish.

> But for Apple, you have to own a mac But for Windows/Linux you still have to buy an Intel machine. You just don't want to buy another machine to develop iOS or OSX apps.

Anyhow, I think Windows/Linux owners are complaining they have to spend more money to develop on a different platform. You never hear this from Mac owners who want to develop for Windows or Linux.[Edit: Not trying to start a flame war. I'm really trying to understand the outrage...]

Re:Apple Starts to Woo Its App Developers by Tiksi on Saturday June 11, 2016 @04:52PM (#11885261)
Because neither windows or linux restrict which hardware or vms you can install them on like osx does? Obviously you won't hear it from Mac owners, because they can still develop for windows or linux, the inverse isn't true thanks to Apple's artificial restrictions.
Re:Apple Starts to Woo Its App Developers by kartickv on Friday June 10, 2016 @10:40PM (#11881735)
If your OS of choice is OS X or Linux, you can set up a Windows VM on it. But not the other way around.

Besides, Windows machines are much cheaper, so if you're from a developing country or a student, you have access to a Windows machine, not a Mac.

Re:Apple Starts to Woo Its App Developers by msie on Saturday June 11, 2016 @01:55AM (#11882286)
Ok, you can't setup an OSX VM on Windows but don't ignore the cost of that computer you are developing Windows software on.

I am developing iOS apps on a 2012 Macbook Pro. Those aren't expensive nowadays.

Re:Apple Starts to Woo Its App Developers by quanticle on Saturday June 11, 2016 @05:26AM (#11882793)
>I am developing iOS apps on a 2012 Macbook Pro. Those aren't expensive nowadays.

I would be willing to bet that a used Thinkpad is even cheaper, and has the benefit of having more upgrade options.

To make a car analogy, your argument boils down to, "Well, you need a car anyway, so why not buy a Lexus?" I think a lot of the people replying to your posts are arguing that requiring luxury hardware (and, let's face it, Macs are luxury hardware) adds a pretty huge barrier to entry for software development. Trying to argue that the price difference between Apple hardware and Windows/Linux hardware is "insignificant" in the long run just doesn't cut it. Even the cheapest Apple laptop is a thousand dollars in the US. It costs even more overseas. Meanwhile, you can get similarly spec'd Windows machines for a half to three quarters of the price.

There is a Mac premium, and it is a barrier to entry for developers. You can't make that barrier disappear by blindly asserting that it doesn't matter.

Re:Apple Starts to Woo Its App Developers by joshmn on Saturday June 11, 2016 @01:33AM (#11882231)
I've never had a problem setting up an OS X VM. Just need to look in the right places.

Linux VM on a Windows machine was a thing in the early 2000s.

Re:Apple Starts to Woo Its App Developers by enobrev on Saturday June 11, 2016 @02:21AM (#11882332)
I'd like to hear more about this. Are you saying you've set up an OSX VM on non-apple hardware? I haven't tried in at least a year, so maybe things have changed, but I have put a significant amount of effort in trying to get an OSX VM running on non-apple hardware and was not even close to successful.
Re:Apple Starts to Woo Its App Developers by sigjuice on Saturday June 11, 2016 @02:27AM (#11882341)
Re:Apple Starts to Woo Its App Developers by enobrev on Saturday June 11, 2016 @02:42AM (#11882383)
Thanks for this. Searching around for the title of that article[1] opened up plenty more resources as well. I ended up grabbing a refurb'd Mini last time I needed to do OSX-specific testing locally, but it's great to know progress is being made to open the possibilities on non-Apple hardware.

1: "Running Mac OS X as a QEMU/KVM Guest"

Re:Apple Starts to Woo Its App Developers by derefr on Saturday June 11, 2016 @04:18AM (#11882631)
I've gone down that path; it was a big pain—Apple just doesn't bother to make drivers for what most hypervisors consider "generic" hardware. You basically need to do the same stuff Hackintosh builders do, to your VM, to get even some of the features working.

By contrast, you can just create an OSX VM in VMWare Fusion in OSX and then copy it over to VMWare Workstation on Windows (or an ESXi server, or whatever else) and it'll work fine after being convinced[1] that it's allowed to try.

[1] http://www.insanelymac.com/forum/files/file/339-unlocker/

Re:Apple Starts to Woo Its App Developers by mtrpcic on Friday June 10, 2016 @09:53PM (#11881591)
You can set up build servers for your app on Microsoft Azure, or AWS' Windows Server instances. Microsoft produces articles on how to do Windows development on a Mac (Bootcamp, Parallels, etc.) [1]. Microsoft has shown commitment to bringing it's core offerings to other platforms. Apple has in no way done that. You literally, absolutely need an Apple computer for every step of the development process for iOS. Your comparison is not valid.

[1] https://blogs.msdn.microsoft.com/interoperability/2012/12/21...

Re:Apple Starts to Woo Its App Developers by jboles on Friday June 10, 2016 @10:46PM (#11881759)
And Windows used to be considered the more closed platform. How times change.
Re:Apple Starts to Woo Its App Developers by msie on Saturday June 11, 2016 @03:03AM (#11882430)
Is it really developer hostile that Apple is not bending over backwards to provide free tools to Windows and Linux users? I think it's prudent of them not to waste money on such a small segment, some of which vehemently hate Apple. And when you talk about build servers you are still spending money on some machine to build your iOS app. You can get pretty good used Mac hardware if you really want to. For all those developers sitting on the sidelines refusing to develop iOS apps because they can't setup a build server on Azure, etc. Well, you're just making excuses.
Re:Apple Starts to Woo Its App Developers by WayneBro on Saturday June 11, 2016 @11:20AM (#11883726)
I've been in computers since the early 90's and as far as I can see, Apple has always been hostile towards developers (and users).

> For all those developers sitting on the sidelines refusing to develop iOS apps...

I've made a ton of money building Ionic and Xamarin apps and recommend those to anybody building for iOS because both of them will let you spend as little time using OS X as possible. The way my workflow is now, I could totally rent a cloud Mac and just compile and publish stuff from there.

Anyway, even though I think OS X and iOS are quite possibly the worst operating systems I've ever had the displeasure of using and even though I know for a fact that Apple is hostile to developers and users, I don't mind making apps for them because I figure anyone who uses there stuff must not care about wasting money and it should be easy for me to grab some...and it is :)

And, like Spotify, all of my apps are subscription based with out-of-app signup, so Apple doesn't get 30% of my money. I also only buy used Macs because Apple doesn't get your money that way either. Right now I'm running a Mid-2012 Mac Pro with 32GB RAM that I got for ~$1,200. It was about double the money that I spent for a similar PC server, but I made all that back by taking money out of Apple's ecosystem and not putting it back in, so I feel like that's a win for everybody (except Apple of course, but hey - fuck them - if they're going to be hostile to me, I'm going to be hostile to them.)

Re:Apple Starts to Woo Its App Developers by cptskippy on Friday June 10, 2016 @10:51PM (#11881780)
I think his point, and one I agree with, is that the tool chain is incredibly expensive, obsoleted frequently, and requires lots of maintenance.

If you used Microsoft's tool chain to build Windows apps, you can do so with a VM under the Dream Spark license for free.

The barrier to entry for OSX/iOS development is hundreds to thousands of dollars.

Re:Apple Starts to Woo Its App Developers by msie on Saturday June 11, 2016 @01:52AM (#11882283)
Well, Xcode is free. Apple Dev membership is free. You need a computer to develop software on. Windows machines aren't free. A legit Windows OS license is more expensive than OSX.
Re:Apple Starts to Woo Its App Developers by cptskippy on Saturday June 11, 2016 @10:50AM (#11883622)
Oh so you can buy the OSX upgrade and install it on any x86 hardware? No? Then it's not comparable to the retail Windows License.

You can pickup a Windows PC and an Android phone for half the cost of just a Mac Mini that still requires a display.

Re:Apple Starts to Woo Its App Developers by smt88 on Saturday June 11, 2016 @03:44AM (#11882533)
Is a Dev membership free, or is it $99/year?
Re:Apple Starts to Woo Its App Developers by JimDabell on Saturday June 11, 2016 @05:27AM (#11882795)
A developer account is free, the $99 is to publish in the App Store, receive technical support, and receive free versions of various things (e.g. OS X Server).
Re:Apple Starts to Woo Its App Developers by bitserf on Saturday June 11, 2016 @05:21AM (#11882778)
$99 is when you want to distribute via App Store. You don't need that to do the development or use the tools.
Re:Apple Starts to Woo Its App Developers by JimDabell on Saturday June 11, 2016 @05:35AM (#11882816)
> the tool chain is incredibly expensive, obsoleted frequently, and requires lots of maintenance.

The toolchain isn't expensive or obsoleted frequently. A new Mac mini is $499 and can last more than five years. When you consider a professional iOS developer can easily make $100/hr, a cost of $100/yr for equipment is beyond negligible.

Not sure where you get "requires lots of maintenance" from – he doesn't seem to have said anything about that?

Obviously in rich Western country terms.

Re:Apple Starts to Woo Its App Developers by cptskippy on Saturday June 11, 2016 @07:56AM (#11883128)
$499 is a big investment for the majority of the population and assumes you have a monitor and an iOS device already. It's not a sum many people will drop just to try it out. For a lot of people it means completely adopting the platform.

A new Apple device could potentially last you 5 years but Apple has also been known to obsolete hardware in as little as a year.

The majority of developers making iOS apps do not make $100 and that's not assured income, its potential.

If you happen to work for a professional shop with a team, chances are you want to do CI or automation. It's a pain. If your IT department manages your machines then they need someone dedicated to maintaining enterprise security policies on your Macs, it's a pain for the user and the admin.

Re:Apple Starts to Woo Its App Developers by JimDabell on Saturday June 11, 2016 @08:43AM (#11883253)
> $499 is a big investment for the majority of the population

I think labelling a $499 computer as "incredibly expensive" isn't accurate when you're talking about typical Western countries. That's a pretty normal cost for a computer.

> and assumes you have a monitor and an iOS device already.

Most platforms require you to have an instance of the platform available to you. Yes, people who want to develop for iOS should reasonably be expected to have an iOS device, just like people who want to develop for Android should reasonably be expected to have an Android device, and people who want to develop for BlackBerry should reasonably be expected to have a BlackBerry device. Apple are not unusual in this respect – you appear to be holding them to a different standard to other platforms here.

> Apple has also been known to obsolete hardware in as little as a year.

I can't think of a case where this has happened – can you give an example?

> The majority of developers making iOS apps do not make $100 and that's not assured income, its potential.

I'm trying to put the cost/benefit into perspective. The cost of iOS development is minuscule in context.

> If you happen to work for a professional shop with a team, chances are you want to do CI or automation. It's a pain. If your IT department manages your machines then they need someone dedicated to maintaining enterprise security policies on your Macs, it's a pain for the user and the admin.

Again, you seem to be holding Apple to different standards than other platforms. If you have employees using computers, then IT needs to manage them. Yes, of course – but this is true for Windows developers, Android developers, and all other developers as well.

Re:Apple Starts to Woo Its App Developers by cptskippy on Saturday June 11, 2016 @10:45AM (#11883603)
> That's a pretty normal cost for a computer.

That might be the normal cost of one of 50 different Dell laptops but for Apple it's their lowest end unit and it lacks a display.

> Most platforms require you to have an instance of the platform available to you.

Nope they don't, but it is better if you do. It's also considerably cheaper.

> I can't think of a case where this has happened – can you give an example?

The PPC MacBook after the Intel Switch, the first gen Core Duo MacBook after the 32-64bit switch, non-retina iDevices... I'm on a phone or I'd keep going.

> I'm trying to put the cost/benefit into perspective. The cost of iOS development is minuscule in context.

If your context is "successful developer with a hit app" then yes, but the reality is that the majority of devs won't be anywhere near that successful.

> Again, you seem to be holding Apple to different standards than other platforms.

See that's where you're confused. I'm holding them to the same standards. Microsoft offers tons of free tools for managing large pools of enterprise machines, maintaining their patch levels, group policies, access control, etc. Linux has similar support.

Apple on the other hand makes you invest in countless 3rd party tools to achieve the same level of control. And at the end of the day it's still Flaky and error prone.

Re:Apple Starts to Woo Its App Developers by JimDabell on Saturday June 11, 2016 @11:30AM (#11883779)
> That might be the normal cost of one of 50 different Dell laptops but for Apple it's their lowest end unit and it lacks a display.

Now you're shifting the goal from the cost of the toolchain to the cost of Apple's lineup as a whole. It doesn't matter what the top of the range Apple lineup costs, to get started with iOS development, you just need the cheapest Mac mini.

You can pick up a monitor for next to nothing. Here's a Dell monitor for under $40: https://www.amazon.co.uk/DELL-Monitor-Computer-Screen-Inch/d...

> The PPC MacBook after the Intel Switch, the first gen Core Duo MacBook after the 32-64bit switch, non-retina iDevices... I'm on a phone or I'd keep going.

Wait, you've moved the goalposts again. We're talking about the ability to buy a computer and continue to use it for development for a reasonable period of time. We're not talking about your computer not being the latest model. Just because Apple introduced retina screens on the iPhone 4, it doesn't mean that you had to go out and buy a new Mac to develop for it.

> If your context is "successful developer with a hit app" then yes, but the reality is that the majority of devs won't be anywhere near that successful.

I'm talking about typical professional iOS developers. The majority of them are successful. I suspect you're talking about app entrepreneurs, which is a whole different ballgame. Most iOS developers aren't making their own applications, they are making applications for other people. And yes, the cost of iOS development is trivial for them.

It's true, lots of applications don't make money – that's because they fit into the business in other ways. For instance, your bank's application is free, but I can assure you that the developers who built it aren't worried about the cost of an entry-level Mac mini.

The context is this: If you do this professionally, then you can afford the developer toolchain easily. If you're not employed as an iOS developer and you're just making applications for yourself? Sure, I can see how you'd consider it a moderately expensive hobby if you didn't already own a Mac. But we're really talking about two different things there.

> I'm holding them to the same standards. Microsoft offers tons of free tools for managing large pools of enterprise machines, maintaining their patch levels, group policies, access control, etc. Linux has similar support.

You've shifted the goalposts again. You were talking about having to hire somebody to manage Apple computers. IT manpower is required for any platform, so singling Apple out as special for requiring IT manpower is holding them to a different standard.

I really don't think the enterprise is relevant to your argument here. If a company employs enough iOS developers to require large pools of machines and more than a basic $2/month MDM solution, then they really aren't going to consider a $499 machine "incredibly expensive", whether it comes with or without a monitor.

Re:Apple Starts to Woo Its App Developers by blisterpeanuts on Friday June 10, 2016 @10:08PM (#11881642)
Wouldn't it be a more fair comparison with Android? You can develop Android apps on Windows, Mac, and Linux (though in my experience the Mac is the best supported of the three).