Skip to content
This repository was archived by the owner on Aug 31, 2021. It is now read-only.

Commit 056d819

Browse files
committed
[[ Bug 22167 ]] Fix iOS standalone engine link issue
This patch fixes an issue where an extension with a module file in its code resources for iOS was causing an empty argument to be added to the iOS link script.
1 parent eb7f300 commit 056d819

File tree

2 files changed

+8
-7
lines changed

2 files changed

+8
-7
lines changed
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
# [22167] Fix issue building an app for iOS device

ide-support/revsaveasiosstandalone.livecodescript

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -311,20 +311,20 @@ private command revSaveAsMobileStandaloneMain pStack, pAppBundle, pTarget, pSett
311311
set the itemDelimiter to "."
312312
put item 1 to -2 of tSourceFile into tSourceName
313313

314-
if there is a file tLib then
315-
put tSourceFile into tCopiedExternals[tSourceName]["location"]
316-
else
317-
create folder (pAppBundle & "/Frameworks")
318-
put "Frameworks/" & tSourceFile into tCopiedExternals[tSourceName]["location"]
319-
end if
320-
321314
-- hack to uniquify modules
322315
-- tCopiedExternals should be changed to be keyed on file path
323316
-- however that has consequences for external mappings
324317
if tSourceFile ends with ".lcm" then
325318
put uuid() into tSourceName
326319
end if
327320

321+
if there is a file tLib then
322+
put tSourceFile into tCopiedExternals[tSourceName]["location"]
323+
else
324+
create folder (pAppBundle & "/Frameworks")
325+
put "Frameworks/" & tSourceFile into tCopiedExternals[tSourceName]["location"]
326+
end if
327+
328328
if pTarget is "Device" then
329329
put "extension-code-resource" into tCopiedExternals[tSourceName]["type"]
330330
put tLib into tCopiedExternals[tSourceName]["arm"]

0 commit comments

Comments
 (0)