![]() ![]() But it is generally ill advised to try and directly publish things before trying them out in your local environment. Once you have your app working, you can upload the content to some external server environment that’s live on a network where others can hit it. Generally speaking, you want to run some kind of a server environment locally which can execute Python or Ruby code and render out HTML, if you’re using these languages for “web” development. Unfortunately, calling Python and Ruby “web languages” in this case is both disingenuous and demonstrates a lack of understanding of how Python and Ruby development work.Ĭredible development in these languages strongly requires an IDE (or an editor and a command line) and an execution environment, and both of these would be problematic to deliver on the iPad (especially the latter, since Apple forbids interpreters and virtual machine implementations per its App Store restrictions). Via Scratch Forums / Apple hurt me right in the heart. Of course, they can take all the hate from developers because the mindless Apple legions will still love them. Apple wants to be in complete control of what can make apps for their machines so they ban all app creators except their own. Flash CS5’s biggest feature was the ability to make flash programs for the iphone and because Apple has banned this the usefulness of flash CS5 has gone down a lot. What they did to scratch was nothing compared to what they did to Adobe. Apple has banned all third party software from creating ipod apps. Want to be truly computing literate, where you write as well as read? There’s no app for that. Why? Discussion on the Scratch forums suggests that it’s because Apple wants to focus on consuming media using these devices, not producing media. Okay, I finally find a good answer and the job is done, thank to this answer.Apple removes Scratch from iPad/iPhone/iTouchĪ real bummer - Apple removed Scratch from the iTunes store, so it’s no longer available for iPad, iPhone, or iTouch. ![]() Sorry for the blah, so the question is: how do I do the "require" decently in iOS environment? ![]() I noticed "./?.lua" inside package.path variable, I just wonder why a can't be found, isn't it for files within the same directory? One way to solve this problem is to provide lua a function from c, which returns the full path of lua file in ipa bundle at runtime to lua script, and concatenate the package.path with that path, but I think that shouldn't be the "official" way of doing this. " /var/mobile/Applications/C6CEF090-B99A-4B9B-ADAC-F0BEF46B6EA4/LuaThirdTry.app/?.lua"īut this is an absolute path, which should definitely be avoided. When I add a line modifying package.path, I got it running correctly: a modified No file '/usr/local/lib/lua/5.2/loadall.so' No file '/usr/local/lib/lua/5.2/mylib.so' No file '/usr/local/share/lua/5.2/mylib/a' PANIC: unprotected error in call to Lua API (.090-B99A-4B9B-ADAC-F0BEF46B6EA4/LuaThirdTry.app/a:5: module 'mylib' not found: Obviously I want to use code from a, however, I got error from lua vm: /usr/local/share/lua/5.2/?.lua /usr/local/share/lua/5.2/?/a /usr/local/lib/lua/5.2/?.lua /usr/local/lib/lua/5.2/?/a. Say I have two script files (a, a) in the same folder, I put them in my Xcode project, organized like this: somefolder I printed out the bundle path:īundle directory /var/mobile/Applications/C6CEF090-B99A-4B9B-ADAC-F0BEF46B6EA4/LuaThirdTry.app I'm trying to embed lua inside c++, and this program will run as part of an app on the iPhone, as we know, every iPhone app has a resource bundle, and the lua scripts are distributed with the bundle. I finally worked out a lame solution that i'm not happy with, so I'm here to ask for help. I did all night search, read some posts here, but are not quite what I'm looking for. I'm new to lua, this might be something quite simple, but I couldn't figure it out. ![]()
0 Comments
Leave a Reply. |