mikecann / mikecann.co.uk

next-mikecann
next-mikecann.vercel.app
2 stars 0 forks source link

Game of Life HaXe & NME on iOS #95

Open mikecann opened 1 year ago

mikecann commented 1 year ago

Game of Life HaXe & NME on iOS

http://mikecann.co.uk/personal-project/game-of-life-haxe-nme-on-ios/

mikecann commented 1 year ago

imported Disqus comment by 'Joshua Granick' @2011-10-14 08:01:57_

If you would like to build and run your project using a single command, you can use:

haxelib run nme test nmebuild.nmml flash
haxelib run nme test nmebuild.nmml ios -simulator

:)

mikecann commented 1 year ago

imported Disqus comment by 'mikeysee' @2011-10-14 02:51:14_

Aye :) Really handy commands those. Is there any reason why you couldnt use "haxelib run nme test nmebuild.nmml ios" which would then cause xcode to fireup and launch to the iphone?

mikecann commented 1 year ago

imported Disqus comment by 'Joshua Granick' @2011-10-14 03:43:01_

Going to a device requires provisioning and certificates, unlike the simulator. Most people I ask say that going straight to the device from the command-line cannot be done, but I'm sure it can. If anyone has tips (or wants to hack the install tool code) to support a device install and run, I'd love to hear it :)

mikecann commented 1 year ago

imported Disqus comment by 'mikeysee' @2011-10-14 04:03:07_

Well the question is, do you go to the device via xcode or via some manual mechanism that xcode must use behind the scenes. Is it possible to execute functionality in xcdode externally? "xcode MyApplication.xcodeproj -launch iPhone" ?

I would offer my assistance with this however I have very little xcode or osx experience :(

mikecann commented 1 year ago

imported Disqus comment by 'Joshua Granick' @2011-10-14 04:20:54_

It is calling xcodebuild to compile the project on the command line. Maybe there are options there for installing to a device? (not on a Mac right now)

mikecann commented 1 year ago

imported Disqus comment by 'mikeysee' @2011-10-14 04:32:17_

Oh it is? In which case there may well be then :) As I say I dont know much about osx, but are there any other tools out there that already do it? A quick google looks promising: http://stackoverflow.com/qu...

mikecann commented 1 year ago

imported Disqus comment by 'Stefan Richter' @2011-10-21 03:04:41_

Have not used nme myself before - do you end up with an .ipa file that you want to sync to the device via iTunes? If yes then that step should be automatable (if that's a word :-) via osascript

Something like
osascript -e 'tell application "iTunes" to update "myappname"'

Not sure if that helps but there you go :-/

mikecann commented 1 year ago

imported Disqus comment by 'Stefan Richter' @2011-10-21 03:06:43_

Ok, reading more closely to the comments I think you may not be able to add to iTunes and run on device unless you do compile with a provisioning cert in some way. Maybe the simulator is the way to go until you are ready for (manual) on device deployment/testing.

mikecann commented 1 year ago

imported Disqus comment by 'mikeysee' @2011-10-21 03:24:06_

It creates an xcode project which it then compiles and runs on the device. It seems like you could script it indeed