[DEPRECATED] Experimental iOS port (LÖVE 0.9.2)

Discuss any ports of LÖVE to different platforms.
Locked
nasty
Prole
Posts: 8
Joined: Thu Dec 18, 2014 2:46 pm

Re: Experimental iOS port (LÖVE 0.9.x)

Post by nasty »

No one here?
Some advices or simple moral support? :)
Please write something ..
User avatar
undef
Party member
Posts: 438
Joined: Mon Jun 10, 2013 3:09 pm
Location: Berlin
Contact:

Re: Experimental iOS port (LÖVE 0.9.x)

Post by undef »

Nobody who tried putting AdMob in their app apparently.
twitter | steam | indieDB

Check out quadrant on Steam!
nasty
Prole
Posts: 8
Joined: Thu Dec 18, 2014 2:46 pm

Re: Experimental iOS port (LÖVE 0.9.x)

Post by nasty »

Ok sorry .. i change the question:
how can i add external library like a plugin?
Is possible with love?

For example in Gideros there is a function : REGISTER_PLUGIN("pluginName","pluginVersion")
can be done similar after setting some Lua states ?
Or the only solution, for now, is LuaJit (FFI library) for external library?

Thanks
User avatar
I~=Spam
Party member
Posts: 206
Joined: Fri Dec 14, 2012 11:59 pm

Re: Experimental iOS port (LÖVE 0.9.x)

Post by I~=Spam »

Lua can have external libraries that are loaded with "require" but because of apple's restrictions executables cannot be loaded dynamically on iOS so... they need to be built into the LOVE binary itself similar to how luasocket is done...

I see how Gideros does requires for the plugins to be written and I suggest you look at the LOVE source code (it is some of the easiest code to read that I have ever read) and see how they do it. Then you could add some of your own. LOVE doesn't need a read plugin system because it is open source. ;) If you really want an external plugin read about how to make a lua binary extension module: http://lua-users.org/wiki/CreatingBinar ... ionModules :)
My Tox ID: 0F1FB9170B94694A90FBCF6C4DDBDB9F58A9E4CDD0B4267E50BF9CDD62A0F947E376C5482610
nasty
Prole
Posts: 8
Joined: Thu Dec 18, 2014 2:46 pm

Re: Experimental iOS port (LÖVE 0.9.x)

Post by nasty »

Finally an aswer!
Thanks a lot I~=Spam very useful advices! :nyu:
User avatar
Fang
Prole
Posts: 9
Joined: Sat Apr 13, 2013 4:31 pm
Contact:

Re: Experimental iOS port (LÖVE 0.9.2)

Post by Fang »

Hey slime, great work! I was wondering, are you still maintaining this?

If so, I ran into an issue. When I build and run it for the iPhone 5 (simulator) it works fine, but when I select the iPhone 6 (simulator) instead, it throws an exception (EXC_BAD_ACCESS) and refuses to continue on, leaving the simulator displaying a black screen.

I've attached a screenshot of the exception and its location and, just in case you need it, the list of warnings I get when building.

Thanks for the great work, keep it up!
Attachments
love_ios_warnings.png
love_ios_warnings.png (114 KiB) Viewed 9218 times
love_ios_exception_iphone-6.png
love_ios_exception_iphone-6.png (33.44 KiB) Viewed 9218 times
~palfun-foslup
User avatar
slime
Solid Snayke
Posts: 3163
Joined: Mon Aug 23, 2010 6:45 am
Location: Nova Scotia, Canada
Contact:

q

Post by slime »

Fang wrote:If so, I ran into an issue. When I build and run it for the iPhone 5 (simulator) it works fine, but when I select the iPhone 6 (simulator) instead, it throws an exception (EXC_BAD_ACCESS) and refuses to continue on, leaving the simulator displaying a black screen.
So this is really weird. It's failing to create a new Lua state, but only on the 64-bit iOS Simulator, not on the 32-bit iOS Simulator or on any physical iOS device (I tested it on my real iPhone 6 and it works fine, but luaL_newstate returns a null pointer in the Simulator.)
The exact same build of LuaJIT also works fine in the 64-bit Simulator when I use love 0.10's code.

I'll keep debugging and see if I can figure out a fix...
nasty
Prole
Posts: 8
Joined: Thu Dec 18, 2014 2:46 pm

Re: Experimental iOS port (LÖVE 0.9.2)

Post by nasty »

Yeah!
Something i have too the same EXC_BAD_ACCESS randomly on iphone simulator with 0.9.2!
User avatar
Fang
Prole
Posts: 9
Joined: Sat Apr 13, 2013 4:31 pm
Contact:

Re: Experimental iOS port (LÖVE 0.9.2)

Post by Fang »

Well, good to know it's being looked at. Thanks for the update, looking forward to a fix!
~palfun-foslup
User avatar
slime
Solid Snayke
Posts: 3163
Joined: Mon Aug 23, 2010 6:45 am
Location: Nova Scotia, Canada
Contact:

Re: Experimental iOS port (LÖVE 0.9.2)

Post by slime »

The crash issue should be fixed with the latest commit to the iOS branch. You'll also have to replace the 'libraries' and 'include' folders in love/platform/ios/ with updated versions from https://dl.dropboxusercontent.com/u/421 ... raries.zip
Locked

Who is online

Users browsing this forum: No registered users and 2 guests