Skip to content

Commit

Permalink
Use xcodproj not xcworkspace in build script
Browse files Browse the repository at this point in the history
  • Loading branch information
dfed committed Oct 30, 2024
1 parent aaea11a commit 1d118cf
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 11 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,10 @@
buildForAnalyzing = "YES">
<BuildableReference
BuildableIdentifier = "primary"
BlueprintIdentifier = "3BBDCF40C2737919EB5CFEC512245B07"
BuildableName = "Paralayout.framework"
BlueprintIdentifier = "Paralayout"
BuildableName = "Paralayout"
BlueprintName = "Paralayout"
ReferencedContainer = "container:Pods/Pods.xcodeproj">
ReferencedContainer = "container:..">
</BuildableReference>
</BuildActionEntry>
</BuildActionEntries>
Expand All @@ -28,6 +28,16 @@
selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB"
shouldUseLaunchSchemeArgsEnv = "YES">
<Testables>
<TestableReference
skipped = "NO">
<BuildableReference
BuildableIdentifier = "primary"
BlueprintIdentifier = "3D0BEED02604854C00C728FA"
BuildableName = "ParalayoutSnapshotTests.xctest"
BlueprintName = "ParalayoutSnapshotTests"
ReferencedContainer = "container:ParalayoutDemo.xcodeproj">
</BuildableReference>
</TestableReference>
</Testables>
</TestAction>
<LaunchAction
Expand All @@ -50,10 +60,10 @@
<MacroExpansion>
<BuildableReference
BuildableIdentifier = "primary"
BlueprintIdentifier = "3BBDCF40C2737919EB5CFEC512245B07"
BuildableName = "Paralayout.framework"
BlueprintIdentifier = "Paralayout"
BuildableName = "Paralayout"
BlueprintName = "Paralayout"
ReferencedContainer = "container:Pods/Pods.xcodeproj">
ReferencedContainer = "container:..">
</BuildableReference>
</MacroExpansion>
</ProfileAction>
Expand Down
10 changes: 5 additions & 5 deletions Scripts/build.swift
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ enum Task: String, CustomStringConvertible {
case spm
case xcode

var workspace: String? {
var xcodeproj: String? {
switch self {
case .spm:
return nil
Expand All @@ -88,7 +88,7 @@ enum Task: String, CustomStringConvertible {
case .spm:
return "Paralayout"
case .xcode:
return "ParalayoutDemo"
return "Paralayout"
}
}

Expand Down Expand Up @@ -126,9 +126,9 @@ guard let platform = Platform(rawValue: rawPlatform) else {

var xcodeBuildArguments: [String] = []

if let workspace = task.workspace {
xcodeBuildArguments.append("-workspace")
xcodeBuildArguments.append(workspace)
if let xcodeproj = task.xcodeproj {
xcodeBuildArguments.append("-project")
xcodeBuildArguments.append(xcodeproj)
}

if let configuration = task.configuration {
Expand Down

0 comments on commit 1d118cf

Please sign in to comment.