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
When having your package added to my project, everything works out fine and also builds, but:
When I try to export localized resources (the new SwiftUI feature) via Product->Export Localizations... in Xcode, the project won't build and logs say "Command CompileSwiftSources failed". If I remove the PSActivityImageViewController dependency, everything works fine (when exporting). For my project in general I had to set Use compiler to Extract Swift Strings to YES in order to get this export process to work (the default value is NO). Maybe, there is some misconfiguration for your package? To be honest, I can't find it at the moment. Compiler complains about multiple issues in ActivityImageView.swift file. Errors like Cannot find View in scope in line 13. Could this belong to the #if canImport(SwiftUI) line? Really, I'm not sure.
Note/EDIT: The problem seems to be independent of the https://github.com/SwiftUI-Plus/ActivityView package because it builds (when exporting localizations as described above) without issues. Just when adding the PSActivityImageViewController package, I get problems as described. Hmm...
Thomas
The text was updated successfully, but these errors were encountered:
tomsun3
changed the title
Command CompileSwiftSources failed
Command CompileSwiftSources failed when exporting localizations in XCode
Feb 17, 2022
I figured out that seems to be a strange bug in XCode 13 when a package/library used sets its minimum to iOS 10. This can be read e.g. here or here
I fixed this strange issue by setting the minimum iOS version to 11 in the package definition file, as you can see in my fork.
I'm not quite sure about this issue yet, just doing my research. But maybe, and I think so, that also affects other users. Nevertheless, it works now using my fork.
thanks so much for figuring this out because I had no idea how to tackle this, could not even reproduce it. Feel free to merge your fix since I guess it's safe to raise the minimum target to iOS 11.
Hi Peter,
It's me again.
When having your package added to my project, everything works out fine and also builds, but:
When I try to export localized resources (the new SwiftUI feature) via Product->Export Localizations... in Xcode, the project won't build and logs say "Command CompileSwiftSources failed". If I remove the
PSActivityImageViewController
dependency, everything works fine (when exporting). For my project in general I had to setUse compiler to Extract Swift Strings
to YES in order to get this export process to work (the default value is NO). Maybe, there is some misconfiguration for your package? To be honest, I can't find it at the moment. Compiler complains about multiple issues inActivityImageView.swift
file. Errors likeCannot find View in scope
in line 13. Could this belong to the#if canImport(SwiftUI)
line? Really, I'm not sure.Note/EDIT: The problem seems to be independent of the https://github.com/SwiftUI-Plus/ActivityView package because it builds (when exporting localizations as described above) without issues. Just when adding the PSActivityImageViewController package, I get problems as described. Hmm...
Thomas
The text was updated successfully, but these errors were encountered: