Avatar
norio_nomura 6/26/2024 1:20 AM
bashで動くスクリプトに.bashとつけてるところで変に感心してしまった。 $ ./repro.bash + pwd /Users/norio/ghq/github.com/omochi/swift-deps-rebuild-bug + swift package --package-path AppPackage clean + swift build --package-path AppPackage Building for debugging... [24/24] Applying codegen Build complete! (0.84s) + sed -i -e 's/a: Int = 0/a: Int = 0, b: Int = 0/' ToyboxPackage/Sources/ToyboxCore/Debug.swift + swift build --package-path AppPackage Building for debugging... error: link command failed with exit code 1 (use -v to see invocation) Undefined symbols for architecture arm64: "ToyboxCore.toyDebug(a: Swift.Int) -> ()", referenced from: AppModule.App.main() -> () in App.swift.o ld: symbol(s) not found for architecture arm64 clang: error: linker command failed with exit code 1 (use -v to see invocation) error: fatalError [10/14] Linking codegen