Skip to content

Build error on version 3.6.9 - unsafe build flags #580

@SoKamil

Description

@SoKamil

Xcode 15.0.1
macOS 13.5.1

I updated library version to 3.6.9 and got the following error when building the project:

❌ the target 'ZXingObjC' in product 'ZXingObjC' contains unsafe build flags.

I believe this issue was introduced in PR #569 by those changes:

linkerSettings: [
.unsafeFlags(["-fprofile-instr-generate"])
]

Library is linked with the exact version.

.package(
    url: "https://github.com/zxingify/zxingify-objc",
    exact: "3.6.9"
)

I know there are some workarounds like providing commit hash but it doesn't cut it for me.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions