Lines Matching +full:build +full:- +full:swift
1 ---
3 title: Integrating a Swift project
7 permalink: /getting-started/new-project-guide/swift/
8 ---
10 # Integrating a Swift project
13 - TOC
15 ---
17 The process of integrating a project written in Swift with OSS-Fuzz is very similar
19 [Setting up a new project]({{ site.baseurl }}/getting-started/new-project-guide/)
20 process. The key specifics of integrating a Swift project are outlined below.
24 First, you need to write a Swift fuzz target that accepts a stream of bytes and
28 The structure of the project directory in OSS-Fuzz repository doesn't differ for
29 projects written in Swift. The project files have the following Swift specific
37 language: swift
44 [Example](https://github.com/google/oss-fuzz/blob/2a15c3c88b21f4f1be2a7ff115f72bd7a08e34ac/projects…
48 - libfuzzer
50 - address
51 - thread
56 The Dockerfile should start by `FROM gcr.io/oss-fuzz-base/base-builder-swift`
57 instead of using the simple base-builder
59 ### build.sh
62 This can then be used in the building command such as `swift build -c release $SWIFTFLAGS`
65 A usage example from swift-protobuf project is
69 # build project
71 swift build -c debug $SWIFTFLAGS
74 cd .build/debug/
75 find . -maxdepth 1 -type f -name "*Fuzzer" -executable | while read i; do cp $i $OUT/"$i"-debug; do…