diff --git a/templates/Package.swift b/templates/Package.swift index 13c1f82..029e4c1 100644 --- a/templates/Package.swift +++ b/templates/Package.swift @@ -21,14 +21,13 @@ let package = Package( .binaryTarget(name: "RustFramework", path: "./RustFramework.xcframework"), .target( name: "{{ package_name }}", - {% if !enable_warnings %} - swiftSettings: [ - .unsafeFlags(["-suppress-warnings"]), - ], - {%- endif %} dependencies: [ .target(name: "RustFramework") + ]{% if !enable_warnings %}, + swiftSettings: [ + .unsafeFlags(["-suppress-warnings"]), ] + {%- endif %} ), ] )