Open stevenen opened 2 years ago
What build errors are you seeing?
I think same issue here, a ton of "let" property... use self.init in the pod files, something like 50 errors in the various files
/and already did a complete reinstall of Xcode/
same errors as @Arnold75 shown in the comment above.
@Stevenen I tried all the solutions on the following page: https://stackoverflow.com/questions/46690619/build-fails-with-command-failed-with-a-nonzero-exit-code?page=1&tab=scoredesc#tab-top
Saw that one? maybe one of them helps you... no success for me ... still clueless, lost hours over this. Even uninstalled xcode, the derived data folder, ... no success
@Arnold75 or @stevenen were you able to fix this issue? I'm getting same error as above in Xcode 14.0!! Please let me know.
I think same issue here, a ton of "let" property... use self.init in the pod files, something like 50 errors in the various files /and already did a complete reinstall of Xcode/
If you use Cocoapods, try adding the following into post_install do |installer|
in Podfile so it looks like:
post_install do |installer|
installer.pods_project.targets.each do |target|
target.build_configurations.each do |config|
if target.name == "SwiftAlgorithms"
config.build_settings['BUILD_LIBRARY_FOR_DISTRIBUTION'] = 'NO'
end
end
end
end
and then run pod install. That might help
if target.name == "SwiftAlgorithms" config.build_settings['BUILD_LIBRARY_FOR_DISTRIBUTION'] = 'NO' end
That solved it for me! I use cocoaPod. Thanks!
Seeing these same errors as well when trying to pull in the Charts library (4.1.0) via Carthage. We're building this as part of an SDK we distribute, so we require BUILD_LIBRARY_FOR_DISTRIBUTION
to be enabled.
It seems that decorating the culprit Sequences and Collections (e.g. AdjacentPairsSequence
, AdjacentPairsCollection
, etc) with the @frozen
modifier fixes this. Alas, ABI Stability isn't quite my forte.
@natecook1000 @xwu and anyone else who may know, does application of the @frozen
decorator sound like the Correctâ„¢ approach here? If so, I'd be happy to follow up with a PR. Otherwise, I'll turn my attention to Charts.
Same issue here. Any update on this ?
Any update on this? We need to use this framework in our SDK. Please update it to support BUILD_LIBRARY_FOR_DISTRIBUTION = Yes.
Any update on this as we using framework in our SDK with BUILD_LIBRARY_FOR_DISTRIBUTION = Yes.
We are also using this library in SDK and we require BUILD_LIBRARY_FOR_DISTRIBUTION
option to be enabled.
Snippet to simulate this issue:
xcodebuild archive -scheme swift-algorithms -destination "generic/platform=iOS" -configuration Release -archivePath Archive SKIP_INSTALL=NO BUILD_LIBRARY_FOR_DISTRIBUTION=YES
output.txt
Bump; how can BUILD_LIBRARY_FOR_DISTRIBUTION
be enabled?
Please fix.
The libray doesn't compile under Xcode 14 and iOS 16 beta 4
Swift Algorithms version:
1.0.0
Checklist
main
branch of this package