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 generating with the symbolgraph build tool, enum cases are listed out of order. The wrong order is consistently the same:
The above is generated for something like:
/// The fields represent individual days of the week.
///
/// Matches NSDateComponents.weekday index.
/// Refer to https://developer.apple.com/documentation/foundation/nsdatecomponents/1410442-weekday
public enum DayOfWeek: UInt {
case sunday = 1
case monday = 2
case tuesday = 3
case wednesday = 4
case thursday = 5
case friday = 6
case saturday = 7
}
The following command was used: jazzy --clean --sdk "iphoneos" --module GooglePlacesSwift --output jazzy_gen --swift-build-tool symbolgraph --build-tool-arguments -I,GooglePlacesSwift.xcframework/ios-arm64,-target,arm64-apple-ios17.4
where the ios-arm64 directory in the xcframework contains a .a and a .swiftmodule
Any ideas where the problem might lie?
I'm open to investigating / creating a PR.
Thanks!
The text was updated successfully, but these errors were encountered:
Symbolgraph sometimes does not give us source location info -- in that case jazzy has to fall back to some kind of default sort order. I've never really looked into what causes this but I can make it happen artificially by deleting the <mod>.swiftsourceinfo file that accompanies the .swiftmodule when you do a straight swiftc -emit-module.
If I paste your code into a file & do that basic thing to build it, I get source declaration order but if I delete the .swiftsourceinfo I get your version.
When generating with the
symbolgraph
build tool, enum cases are listed out of order. The wrong order is consistently the same:The above is generated for something like:
The following command was used:
jazzy --clean --sdk "iphoneos" --module GooglePlacesSwift --output jazzy_gen --swift-build-tool symbolgraph --build-tool-arguments -I,GooglePlacesSwift.xcframework/ios-arm64,-target,arm64-apple-ios17.4
where the
ios-arm64
directory in the xcframework contains a.a
and a.swiftmodule
Any ideas where the problem might lie?
I'm open to investigating / creating a PR.
Thanks!
The text was updated successfully, but these errors were encountered: