View difference between Paste ID: jVcaQC39 and yi041mXN
SHOW: | | - or go back to the newest paste.
1
-- The "Penlight" folder is a git submodule located within
2
-- my Corona app's resource folder. Penlight modules are
3
-- lazily loaded when referenced by `pl`.
4
--
5
-- https://github.com/stevedonovan/Penlight
6
-- http://stevedonovan.github.io/Penlight/api/topics/01-introduction.md.html
7
package.path = "Penlight/lua/pl/?.lua;" .. package.path
8
local pl = require 'import_into' ()
9
10
-- When building the app for the iOS Simulator, the app is
11
-- unable to find "Penlight/lua/pl/import_into.lua", even though it exists
12
-- on disk. The warning that appears in the console suggests that the
13
-- Penlight folder is not being included with the rest of the app's source.
14
-- Any advice on how to sanely use Penlight with my project?
15
--
16
-- <Warning>: Runtime error
17
--   module 'import_into' not found:resource (import_into.lu) does not exist in archive
18
--     no field package.preload['import_into']
19
--     no file 'Penlight/lua/pl/import_into.lua'
20
--     no file '/Users/name/Library/Application Support/iPhone Simulator/7.1/Applications/CEE02776-DBCD-43EC-8F2C-317A69C3D57B/My.app/import_into.lua'