Skip to content

Xcode 14 fails to compile using SwiftUI Previews #5

@javiermorgaz

Description

@javiermorgaz

Describe the bug

Using the Xcode 14 final version my app that uses Apptimize-iOS-Kit (via SPM) will not compile using SwiftUI Preview's.
I've checked in a new simple project and still not compiling.

Steps To Reproduce

  1. Open Xcode 14.0.1
  2. Include a Swift Package that depends on [apptimize-ios-kit]
  3. Open a SwiftUI View file and compile the Preview
  4. Notice the error that returns from the SwiftUI Preview

Expected behavior

SwiftUI Preview should compile/run

Apptimize Framework Version

3.5.16

Dependency manager

Swift Package Manager

Swift version

5.7

Xcode version

14.0.1 (14A400)

Relevant log output

HumanReadableSwiftError

SettingsError: noExecutablePath(<IDESwiftPackageStaticLibraryProductBuildable:ObjectIdentifier(0x00006000102c65e0):'Apptimize'>)

Link with same problem and possible solution in Amplify sdk:
https://github.com/aws-amplify/amplify-ios/issues/1874

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