Monotouch and Hackintosh - iphone

I have developed an app on monotouch-5.2.5 evaluation version.
Now i want to deploy on Apple Store and to do it i have bought a full monotouch version (5.2.10) and i have installed all certificate and provisioning profile.
When try to build my app i have the following problem:
mtouch exited with code 99
i have this configuration:
monodevelop 2.8.6.5
mac os x version 10.6.7 (is an HACKINTOSH)
Do could it be a incompatibity problem beetween HACKINTOSH and MonoTouch?
...This it'll seem strange because i've develop on it without problems.

The Xamarin.Mac / Xamarin.Ios licencing does some kind of hash of the Mac hardware to give your machine a unique ID. This locks the MonoTouch licence to your machine.
I know previously when people have changed hard drives etc. it has broken the key, this is because they use the Hard drives serial number as part of the hash. They may also use hardware MAC addresses and other IDs.
I imagine something they use in a Genuine Mac is not available in your Hackintosh.

Xamarin states on their website they do not support Hackintosh. They claim it is too hard to ensure their compiler works properly in such a system, but they do not stop there. They also make it impossible to install a key on a Hackintosh or on a Mac running in a VM!
I can understand they wont provide support for issues happening in such an environment, but to force developers to buy a Mac is a bad move. Especially considering a lot of their customers choose Monotouch exactly because they are comfortable with Windows/.net already and are not eager to migrate 100% to Mac OS, it is pretty obvious many prefer to work in a VM or use their existing PC hardware.
I used the trial version in a VM without any issues whatsoever, so whatever technical issues they might be worried about seems irrelevent. So I think this is more a political issue than a technical one.
I can only hope they will change their policy, or that someone gets annoyed enough to crack their compiler so that we can all use it the way we prefer.

I have a Hackintosh, I just encountered the same problem, and I also can not login app store, because ethernet card not built-in, I modified the DSDT to complete built-in, it is OK.

It is obvious that you need to contact Xamarin Support because they know better whether this is the exact problem or not. but....
A Statement in Xamarin Page demonstrated that it is impossible to use MonoDevelop/MonoTouch on Hackintosh.
I have some misunderstands that I need to know:
1. What do you mean building? (Bundle/Deploy to device/Build on Simulator)
2. Did you tried deploying to device?
I googled this issue and there are many that had this error code, but their problem was MonoTouch Activation, I think you can reactivate MonoTouch to make sure. (if you want to build on device)
But I do not attribute this error code to Hackintosh, because one of my friends-who is working with Unity (Mono) on Hackintosh, can easily build on device.
Regards,
Peyman Mortazavi

Related

Viewing application in simulator

I need to show my app to customer but without sending sources codes to him.
He does not own any iDevice at the moment, but only a Xcode installed on his host with iPhone simulator.
So my question is there a "normal/official" way I can pass him the application binary so he can test it on his simulator ? Probably using xcode archiving ?
PLEASE NOTE : I know what is ad-hoc distribution, please do not suggest this, he does not own a device.
NO. You cannot give him the ipa to launch it in simulator. Only the source code. (If he is smart enough to launch it, I think you guess how confused will the client be when you try to explain him stuff around the provisioning profiles and certificates and keys to pair them) ....
I see your problem - however, if this is just about a small tour through the app and not a long time testing, might I suggest another way around this:
Why not using a screensharing app like TeamViewer, which has a version that works without installation and is quite hassle free. And then let him play with the App running on your computer?
Sorry for not having an answer on the question, but that would be an alternative route to take.
Very simple solution:
Set up a contract with penalty fee if he copy's the code or distributes the code that'll settle you for life.
If he doens't own a device, you could also loan him one with the app installed. Just do an iphone without a sim card or an ipod
Creating an ipa file and run on the simulator is not possible. We can run the simulator using Xcode only. (means by sharing the code). If you are not interested, ask him to buy device.

Could SqueakNOS or PharoNOS made to run an iPhone or iPad to Form a DynaBook?

Not considering legal issues I would be very interested if it would be possible to run one of those on the bare metal of the iPad/Phone ARM-Architecture.
Squeak is running on the iPad as of today!
Considering that iPad has already been jail-broken, I think it's really possible. Also, being made with an ARM processor makes it even more plausible, you already got compilers for that architecture and there seem to be ports of squeakvm to it. It would require some work though.
I know how to get it done, if that helps: send an iPad and a million bucks to Tim Rowledge!
Edit: Someone's got Android working on an iPhone, which is a pretty big step towards a SqueakNOS. In particular, I imagine if you figure out how they do the bootloading, and how to get the image on the phone, you're pretty much there?
Edit #2: Andreas Raab's ported Squeak to Android, so as an interim step one could always run Squeak on Android on the iPhone.
I think it's a silly attempt. The charm of an iPhone, the thing that distinguishes it from Android is that it's a controlled environment. John Gruber calls it an app console. You can find that silly if you want, but remind me again why out of the two major mobile platforms, you choose to breach and extend the one that does NOT brag about its openness and clear documentation and freedom for third party developers. PharoNOS on Android sounds like fun, PharoNOS on the iPhone sounds like PharoNOS on a Wii. That is: You could do it, but why would you?

iPhone development on many machines

I have more than 1 Mac, and I would like to do development on all of them. I know I need to sync my phone on each machine, but that is the least of my problems. It looks like I am not able to run apps on my phone except apps that are developed on one of them.
Is there any (sensible) way to be able to use both my MacPro and MacBook Pro?
I use a MacPro and a MacBook Pro for development with no problems. Make sure you have the same certificates, mobileprovisions, and (obviously) code on both machines. I find it useful to use Keychain syncing via MobileMe.
have you installed the certificated needed from all machines, maybe you forgot to add the certificate from one.
You can copy your signing certificates from one machine to another (via Keychain).
You do not need to sync your iPhone to both machines; XCode can install and extract your app on any phone, not only the ones that sync to that machine.
As the others have already said make sure you have the same sure you have the same certificates and things on both machines.
Recently I stumbled across a great way of making sure you have the same code on both machines, use DropBox. Its free for the first 2GB and will keep your source code on both machines exactly the same, meaning no having to remember to copy work around. Its super simple and in my experience just works.

Develop iPhone app without a Mac? [duplicate]

This question already has answers here:
Closed 13 years ago.
Possible Duplicates:
How can I develop for iPhone using a Windows development machine?
I'm looking to build an iPhone app for my wife's phone, but am not interested in buying a Mac as a development platform for a one-off piece of work. The app:
should run standalone on the iPhone (i.e. without network connectivity)
would be perfectly acceptable with a GUI created using one of the iPhone Javascript libraries that are around
will do some database IO to read and update data
has no commercial value and will never be used by anyone else
Here's my thinking:
jailbreak the iPhone
install Ruby + Sinatra on the iPhone
write the app using Sinatra, hitting a database (SQLite?) on the iPhone
To access the app on the iPhone:
start the Sinatra app in the
background (is this possible?)
start a Safari browser session
navigate to the Sinatra app at e.g. http://localhost:12345
etc.
This seems like a strange approach, but I can't think of a simpler way of writing a standalone iPhone app without buying a Mac. Is there a better way of doing this?
The only reliable info I could find is at the always-excellent MetaFilter
http://ask.metafilter.com/110466/Anyway-to-develop-iPhoneiTouch-apps-without-investing-in-a-Mac
The answer is apparently no.
You absolutely need an Intel Mac of some description.
The entire iPhone build process is too deeply ingrained in XCode to build elsewhere; and the only other Objective-C compiler I know is gcc, which doesn't support any Apple's additions to the language (nor their libraries).
And, in direct opposition to what people are saying above, Objective-C is absolutely my favorite native, compiled language. Elegant, small (only a few changes from C), late-binding, dynamic, straightforward. It's what C++ should have been.
Lots of people recommend picking up a secondhand Intel (remember, must be Intel!) Mac Mini as the cheapest "port of entry".
What you have described is a viable solution, however you should consider using the open toolchain for the iphone.
You don't need a mac then, only need to jailbreak the phone to make sure your app will work.
For all those who say it can't be done, this was the only way to make Apps for the iphone before the SDK was out :)
Also if you are after a guide to using the open toolchain then I highly recomend this book
If you're considering creating a GUI using a javascript library anyway, why don't you just write a web app instead of an iPhone-native one? It seems like overkill to jailbreak the device just so that you can install a ruby + sinatra web app on it. Can't you just put the ruby web app on a server and create a Safari shortcut to it on the home screen? If you don't have a server, you could always run the website off a PC in your home...
Jailbreaking the OS and running a ruby app onto it would be technically cool, don't get me wrong - I just think it'd end up being a time sink.
Just my 2c!
Depends on what your time is worth, I guess. That seems like a terribly convoluted way to get what is otherwise a simple app on the phone to avoid the US$400 purchase of a used Mac Mini.
There is the hackintosh route, which may work on your existing hardware, but again one has to put a price on time. It's what got me started before I dropped big coin on a Macbook Pro, an MSI Wind then a home-built. It's of questionable legality (the right thing to do is fork over US$129 for Leopard regardless), but you are already talking about jailbreaking. :-)
Get someone else to do it, or rent the resources that you need.
Another option is to find nearby iPhone developer who has it all setup and either get him to write the app or do it together, he provides development environment you code the solution or code it together.
The only problem is that you wont be able to update maintain it.
I would still consider getting older gen Mac or Mac mini - all the other options sound more complicated.
If you are going to be stubborn about not using a mac, but you want an app that will work offline with the iPhone / iPod Touch and Android devices, then I would use HTML 5 to create an offline app.
You can do a lot now with HTML 5 - Google have an email client that uses HTML 5 for the iPhone now and it can work offline etc. If you do this and get the user to add a bookmark to their home screen for your app - it will be almost as good.
If I was you I'd fork out for a mac - or look to see if you could borrow one - or time-share with someone - you will not create a very good quality app without it.
You can jailbreak the phone and install Python. There are some sample applications in Cydia for it (it's called iPhone/Python. Search for Python in cydia).
Then you will have a "native" app, not a web application and you can use the entire iPhone UI library (the part of it that is accessible via py-objc anyway) and you don't need to run a web server in the background.
You can do your development on the phone itself via SSH or you can use an iPod Touch for it. Packaging is also easy (should you need it), just create your own Cydia repository and host your package(s) in there.
Look at iPhone applications in Python for more information.
Come on, just look on eBay for the cheapest intel mac mini you can find. Even a Mac laptop with a busted screen (that you could hook to an external display) would work. You're talking just a few hundred dollars probably and then you can maintain it as her phone/Touch is upgraded.
there's some special meta tags you can put in a webpage to make your web app savable and full screenable to the iphone hard drive. (so it can work offline) Here's an example : http://mrgan.tumblr.com/post/125490362/glyphboard2
There's also frameworks like phonegap that let you access cocoa apis from javascript, but it sounds like you don't need that.
Does your wife enrolled in any kind of data plan? If so, you can simply write a small webapp which runs on some cheap webspace and access it via MobileSafari.
If you need a full grown iPhone application, you better look after one of the first intel-based mac minis on eBay, should be to expensive, in my opinion. And as a plus you avoid the hassle of a jailbreak.

iPhone Development on Hackintosh

My question is in regards to developing code for the iPhone / iTouch.
What with Apple's transition to the Intel platform for their chip, it is obviously now possible to run their OS on a PC.
So, with that, and my inherently cheap nature, I was wondering if it was possible to bypass the purchase of a refurbished Mac by running the iPhone SDK on a Hackintosh?
As I am more of a hobbyist then a serious developer at present, I'd basically like to get my feet wet before fully committing to this endeavor. In the long term I know that it would be better to purchase a Mac...
Yes, it's totally possible. I developed my first app on a Dell running the iATKOS OSX patch.
Whether it's worth it or not really comes down to how difficult it is to get a hackintosh install (Kalyway / iATKOS) running on your PC. With some PCs it's trivial and everything works. For others it's a nightmare and your networking/audio/graphics will never work completely. If you need to run a patched kernel (e.g. you don't have an Intel Core 2 Duo chipset) things become really awkward.
Your best bet is to take a note of the hardware in your PC and do some research on the various OSX86 forums.
Assuming you get everything working the only future concern is software updates. iPhone SDKs generally require the very latest OSX update (e.g. 10.5.6), but installing updates on hackintoshes with patched kernels is a nightmare.
If you enjoy tinkering with this type of thing and are comfortable partitioning your HDD and playing with boot flags then I'd say go for it. If not, consider picking up a used Mac-Mini on eBay/craigslist or something. If you find out that iPhone development really isn't for you then you can resell it lose practically nothing.
Yes, you can, but save yourself some time and pain.
Pick up a Mac mini or an iMac.
It's possible. But you are restricted to the choice of hardware for the hackintosh. Even if you get it right, no one can guarantee everything will work (sound, lan, etc.). If you can run the OS, you can run xcode with the SDK. But I don't think you'll be 100% satisfied with the end result.
As I see it if you want to run os x it's better to invest in a mac mini than in hardware for a hackintosh. Asuming you'll be buying all the components for the hackintosh.
I was in this dilemma recently, and decided to go with a real Mac rather than a Hackintosh after hearing the stories of my friend (who is doing it specifically for iPhone development). He was able to get iPhone development working, but his hackintosh is always having one issue or another; the most recent one was a constant boot cycling, wherein the machine would immediately reboot after loading the OS.
Look on the bright side: Apple products are popular and easy to sell. If you get one and sell it before the next generation comes out you can get most of your money back - money that would have been spent anyways on a new hard drive (to quarantine your hackintosh, heh) or OSX (assuming you meant to get the software in at least a remotely legal fashion).
Yes, you can. I have. But is it worth it?
If you are doing it for fun it's worth it.
If you are doing it for a real, useable Mac it's not worth it.
Now you will have a billion guys come down on me for saying that because some guys have built some truly impressive rigs but they are missing the point of a Mac. Macs just work well and are a pleasure to use while PC's just get stuff done and you probably secretly hate it.
I did it just for fun but I ended up spending more on a Hackintosh than I would have if I just bought a Mac Mini. Of course my computer is 4x as fast but it's just not the same as a real Mac. On Mac's everything just works... it's really nice. But on my Hackintosh nothing works without direct intervention on my part... not very nice.
I always planned on using that computer for windows development anyway so it wasn't a waste but otherwise it would have been a HUGE waste.
You can do it. I have 3 hackintoshes that we develop on, but at the end of the day you will need a real mac to be an apple developer.
One problem I see with the Hackintosh approach is that if you get it working now, you are not guaranteed to have the same machine working when an update to Mac OS comes out in the future, and this could be especially important if the iPhone SDK and/or developer tools that you want to use are hosted only on the next generation of the system software.
In the long run, I think it'll be better to go with a cheap (and even a used) Mac of some kind, like a mini or a MacBook.
You can do it, I started learning iPhone/Objective-C/Cocoa development using a virtual machine and an image of OSX (it was a pain to setup though and I think I could only use OSX 10.5.2)
It's just not worth the hassle, in the end I just stumped up £365 or so for a second-hand 2007 model MacBook off eBay and it's been smooth sailing ever since.
On a $10 P4 2.4GHz, 1GB RAM, hackintosh works fine and xcode/iphone sdk works as well. Its a little slow, but stable, and a very viable option for someone looking to just test the water of iphone development, without committing the cash.
Yes you. right now I am learning iphone app development in a Hackintosh (iATKOS S3 version2).
See http://wiki.osx86project.org/ and http://insanelymac.com/ for any problem with installing hackintosh
Hackintoshes are a great value. You can spend anywhere from $400 to $4000 and get an extremely capable machine.
You want to go with a Gigabyte brand Z87 motherboard, Intel Core i CPUs, Nvidia graphics, and SSDs. Avoid budget hardware, it usually isn't compatible. Or you could go the Intel NUC route and get a NUC, a small PCIe SSD (32GB or 64GB should do the trick), and some laptop ram.
Do your research and you're good.
Current version of Visual Studio (2019) and Xamarin Forms will enable to develop IPhone apps by utilizing Xamarin Hot-Restart (Preview) feature without requiring a Mac.
In my case, I have an IPhone and would like to develop an IPhone app however I was being forced (until this day) to buy a Mac (or at least chosing the Hackintosh way) develop an IPhone App. Now I can write and debug my app directly on my IPhone (which is fair!).
Details here:
https://nicksnettravels.builttoroam.com/ios-dev-no-mac
If you have so little belief in yourself that you feel the need to save a couple of hundred dollars by hacking a pseudo-Mac together just don't bother trying in the first place.
Furthermore you will pretty certainly fail (or spend so much time trying to succeed you'll have wasted vastly more time getting things to work than you saved on cost). The two clinchers are
You have to run code on a iPhone or touch, because the emulator is not perfect and will mislead you without you even being aware of it - I have code that runs on the emulator but not as expected on hardware
Apple's key signing is hard enough to get working with the real thing, it took me a couple of hours and I'm not alone - there's a great many posts out there on development forums from people having difficulties managing it. Getting it working on a Hacked machine - well you may be lucky, but are you prepared to gamble?