mirror of
https://github.com/yonaskolb/XcodeGen.git
synced 2024-11-24 09:52:48 +03:00
Add copying bundles phase to trigger building Bundle
This commit is contained in:
parent
e336f56093
commit
7669d60d66
@ -763,12 +763,21 @@ public class PBXProjGenerator {
|
||||
|
||||
buildPhases += try target.postCompileScripts.map { try generateBuildScript(targetName: target.name, buildScript: $0) }
|
||||
|
||||
let resourcesBuildPhaseFiles = getBuildFilesForPhase(.resources) + copyResourcesReferences
|
||||
let resourcesBuildPhaseFiles = getBuildFilesForPhase(.resources)
|
||||
if !resourcesBuildPhaseFiles.isEmpty {
|
||||
let resourcesBuildPhase = addObject(PBXResourcesBuildPhase(files: resourcesBuildPhaseFiles))
|
||||
buildPhases.append(resourcesBuildPhase)
|
||||
}
|
||||
|
||||
if !copyResourcesReferences.isEmpty {
|
||||
let copyBundlesPhase = addObject(PBXCopyFilesBuildPhase(
|
||||
dstSubfolderSpec: .resources,
|
||||
name: "Copy Bundles to Resources directory",
|
||||
files: copyResourcesReferences
|
||||
))
|
||||
buildPhases.append(copyBundlesPhase)
|
||||
}
|
||||
|
||||
let swiftObjCInterfaceHeader = project.getCombinedBuildSetting("SWIFT_OBJC_INTERFACE_HEADER_NAME", target: target, config: project.configs[0]) as? String
|
||||
|
||||
if target.type == .staticLibrary
|
||||
|
Loading…
Reference in New Issue
Block a user