Skip to content

Commit 7926c31

Browse files
authored
Build input file cannot be found: '.../CAuditToken.o' (#908)
Resolves a build error in Xcode: > Build input file cannot be found: '.../CAuditToken.o'. Did you forget to declare this file as an output of a script phase or custom build rule which produces it?
1 parent d327a50 commit 7926c31

File tree

2 files changed

+21
-4
lines changed

2 files changed

+21
-4
lines changed

Package.swift

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -375,14 +375,14 @@ let package = Package(
375375
.define("RELEASE_VERSION", to: "\"\(releaseVersion)\""),
376376
.define("BUILDER_SHIM_VERSION", to: "\"\(builderShimVersion)\""),
377377
],
378-
linkerSettings: [
379-
.linkedLibrary("bsm")
380-
]
381378
),
382379
.target(
383380
name: "CAuditToken",
384381
dependencies: [],
385-
publicHeadersPath: "include"
382+
publicHeadersPath: "include",
383+
linkerSettings: [
384+
.linkedLibrary("bsm")
385+
]
386386
),
387387
]
388388
)

Sources/CAuditToken/AuditToken.c

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
//===----------------------------------------------------------------------===//
2+
// Copyright © 2025 Apple Inc. and the container project authors.
3+
//
4+
// Licensed under the Apache License, Version 2.0 (the "License");
5+
// you may not use this file except in compliance with the License.
6+
// You may obtain a copy of the License at
7+
//
8+
// https://www.apache.org/licenses/LICENSE-2.0
9+
//
10+
// Unless required by applicable law or agreed to in writing, software
11+
// distributed under the License is distributed on an "AS IS" BASIS,
12+
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13+
// See the License for the specific language governing permissions and
14+
// limitations under the License.
15+
//===----------------------------------------------------------------------===//
16+
17+
// This file is required for Xcode to generate `CAuditToken.o`.

0 commit comments

Comments
 (0)