Post

Replies

Boosts

Views

Activity

Reply to SwiftUI Previews in Xcode 14 failed to run with SettingsError: noExecutablePath(IDESwiftPackageStaticLibraryProductBuildable)
Update: Once I removed AppCenter from the project, Previews worked fine. After a series of attempts, I found that the problem only occurs with a specific project structure. // preview not work MyApp - MyLib (swift package) - Lib1 - Lib2 (add Lib1 as dependency) - AppCenterCrashes - AppCenterAnalytics - MainAppTarget (add Lib2 as dependency)
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Jun ’22
Reply to SwiftUI Previews in Xcode 14 failed to run with SettingsError: noExecutablePath(IDESwiftPackageStaticLibraryProductBuildable)
I finally solved the problem. I built binary XCFramework version of AppCenter, AppCenterAnalytics, AppCenterCrashes by myself. After using the XCFrameworks in Package.swift, SwiftUI Preview works properly. .binaryTarget(name: "AppCenter", path: "Carthage/Build/AppCenter.xcframework"), .binaryTarget(name: "AppCenterAnalytics", path: "Carthage/Build/AppCenterAnalytics.xcframework"), .binaryTarget(name: "AppCenterCrashes", path: "Carthage/Build/AppCenterCrashes.xcframework"),
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Aug ’22