You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Empty Build Settings Error When Building Swift Package Library Products
Description
When attempting to build a library product from a Swift Package with multiple targets using sweetpad (v0.1.42), I encounter an "Empty build settings" error. This occurs because sweetpad doesn't automatically configure build settings for SPM library products, unlike Xcode which handles this configuration automatically.
Current Behavior
Attempting to build a library product results in error:
Currently requires manual configuration through Xcode for each library product
Need to add executable target in build settings for each package target manually
Expected Behavior
Automatic configuration of build settings for SPM library products (similar to Xcode)
Ability to build library products without manual configuration
Support for multi-target Swift packages out of the box
Steps to Reproduce
Create a Swift package with multiple targets
Define library products in Package.swift
Attempt to build one of the package library products using sweetpad
Observe "Empty build settings" error
Environment
sweetpad version: 0.1.42
Editor: Cursor
OS: macOS
Swift Package Manager: Multiple targets configuration
Suggested Solution
Implement automatic build settings configuration for SPM library products:
Detect all library products in Package.swift
Auto-configure build settings for each library product
Support different library types (static, dynamic)
Provide fallback configuration similar to Xcode's default behavior
Additional Context
This is particularly important for workflow automation as currently developers need to switch to Xcode for initial configuration, which defeats the purpose of using an IDE extension for Swift development. Library products are especially important as they're commonly used as dependencies in larger projects.
Impact
This issue affects development workflow by:
Requiring manual Xcode configuration
Breaking CI/CD pipelines
Increasing project setup time
Making it difficult to work with multi-target packages and their library products
Would you like me to:
Add more detailed logging for build settings
Support automatic library product configuration
Provide CLI fallback when build settings are missing
Add documentation for manual configuration workarounds
The text was updated successfully, but these errors were encountered:
Empty Build Settings Error When Building Swift Package Library Products
Description
When attempting to build a library product from a Swift Package with multiple targets using sweetpad (v0.1.42), I encounter an "Empty build settings" error. This occurs because sweetpad doesn't automatically configure build settings for SPM library products, unlike Xcode which handles this configuration automatically.
Current Behavior
Expected Behavior
Steps to Reproduce
Environment
Suggested Solution
Implement automatic build settings configuration for SPM library products:
Additional Context
This is particularly important for workflow automation as currently developers need to switch to Xcode for initial configuration, which defeats the purpose of using an IDE extension for Swift development. Library products are especially important as they're commonly used as dependencies in larger projects.
Impact
This issue affects development workflow by:
Would you like me to:
The text was updated successfully, but these errors were encountered: