Skip to content

Commit 0f8e05f

Browse files
committed
Xcode fixes.
1 parent d1c4e17 commit 0f8e05f

File tree

3 files changed

+22
-21
lines changed

3 files changed

+22
-21
lines changed

src/actions/xcode/xcode8.lua

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -45,10 +45,11 @@
4545
options.CLANG_ENABLE_OBJC_ARC = "YES"
4646
end
4747

48-
local outdir = path.getdirectory(cfg.buildtarget.bundlepath)
49-
if outdir ~= "." then
50-
options.CONFIGURATION_BUILD_DIR = outdir
51-
end
48+
-- local outdir = path.getdirectory(cfg.buildtarget.directory)
49+
-- if outdir ~= "." then
50+
-- options.CONFIGURATION_BUILD_DIR = outdir
51+
-- end
52+
options.CONFIGURATION_BUILD_DIR = "$(SYSROOT)"
5253

5354
if tr.infoplist then
5455
options.INFOPLIST_FILE = tr.infoplist.cfg.name

src/actions/xcode/xcode_scheme.lua

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ local xcode = premake.xcode
1616
_p(indent + 0, '<BuildableReference')
1717
_p(indent + 1, 'BuildableIdentifier = "primary"')
1818
_p(indent + 1, 'BlueprintIdentifier = "%s"', prj.xcode.projectnode.targetid)
19-
_p(indent + 1, 'BuildableName = "%s"', cfg.buildtarget.name)
19+
_p(indent + 1, 'BuildableName = "%s.app"', cfg.buildtarget.name)
2020
_p(indent + 1, 'BlueprintName = "%s"', prj.name)
2121
_p(indent + 1, 'ReferencedContainer = "container:%s.xcodeproj">', prj.name)
2222
_p(indent + 0, '</BuildableReference>')
@@ -172,7 +172,7 @@ local xcode = premake.xcode
172172
_p(2, 'useCustomWorkingDirectory = "NO"')
173173
end
174174
_p(2, 'ignoresPersistentStateOnLaunch = "NO"')
175-
_p(2, 'debugDocumentVersioning = "YES"')
175+
_p(2, 'debugDocumentVersioning = "NO"')
176176
_p(2, 'debugServiceExtension = "internal"')
177177
_p(2, 'allowLocationSimulation = "YES">')
178178
if debugcfg.debugcmd then
@@ -201,7 +201,7 @@ local xcode = premake.xcode
201201
else
202202
_p(2, 'useCustomWorkingDirectory = "NO"')
203203
end
204-
_p(2, 'debugDocumentVersioning = "YES">')
204+
_p(2, 'debugDocumentVersioning = "NO">')
205205
_p(2, '<BuildableProductRunnable')
206206
_p(3, 'runnableDebuggingMode = "0">')
207207
buildableref(3, primary, releasecfg)

0 commit comments

Comments
 (0)