Trying to use swift-asn1 as a SPM dependency in an iOS project.
What I’ve found so far:
From what I can tell, the issue seems related to the use of @inline on initializer functions. I’ve tried comparing build settings between the GUI and command line but couldn’t find any differences that explain the behavior.
Environment:
- Swift 6.0
- Xcode version: 16.2
- macOS version: 15.5
Command used:
xcodebuild build \
-configuration Release \
-scheme 'MyApp' \
-sdk iphoneos \
-destination 'generic/platform=iOS' \
-derivedDataPath "$(PWD)/.build" \
SKIP_INSTALL=NO \
BUILD_LIBRARY_FOR_DISTRIBUTION=YES
Question:
Do you have any insights into why this happens with xcodebuild but not when building through Xcode’s GUI?
Thanks for maintaining this repo, it's great!
Trying to use
swift-asn1as a SPM dependency in an iOS project.Using Xcode’s GUI: The project builds successfully.
Using
xcodebuild: The build fails with the following errors:What I’ve found so far:
From what I can tell, the issue seems related to the use of
@inlineon initializer functions. I’ve tried comparing build settings between the GUI and command line but couldn’t find any differences that explain the behavior.Environment:
Command used:
Question:
Do you have any insights into why this happens with xcodebuild but not when building through Xcode’s GUI?
Thanks for maintaining this repo, it's great!