Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Xcode 16 build errors #787

Closed
dfeinzimer opened this issue Jul 1, 2024 · 7 comments
Closed

Xcode 16 build errors #787

dfeinzimer opened this issue Jul 1, 2024 · 7 comments
Labels
bug Something isn't working

Comments

@dfeinzimer
Copy link
Collaborator

dfeinzimer commented Jul 1, 2024

Using Xcode 16.0 Beta 2 with pre-built binaries targeting an iOS simulator.

These appear to be related to Sendable changes as these attribute dictionaries have changed from [String : Any] to [String : any Sendable].

1.

Undefined symbols for architecture arm64: "dispatch thunk of ArcGIS.GeoElement.attributes.getter : [Swift.String : Any]", referenced from: ... ArcGISToolkit.UtilityNetworkTrace.(startingPointDetail

ForEach(Array(selectedStartingPoint!.geoElement.attributes.sorted(by: { $0.key < $1.key})), id: \.key) { item in

2.

Undefined symbols for architecture arm64: "dispatch thunk of ArcGIS.Feature.attributes.getter : [Swift.String : Any]", referenced from: ArcGIS.ArcGISFeature.globalID.getter

if let id = attributes["globalid"] as? UUID {
return id
} else if let id = attributes["GLOBALID"] as? UUID {

3.

Undefined symbols for architecture arm64: "ArcGIS.GeocodeResult.attributes.getter : [Swift.String : Any]", referenced from: ... ArcGISToolkit.SearchResult.init(geocodeResult: ArcGIS.GeocodeResult, searchSource: ArcGISToolkit.SearchSource

let subtitle = geocodeResult.attributes["LongLabel"] as? String ??
"Match percent: \((geocodeResult.score / 100.0).formatted(.percent))"
self.init(
displayTitle: geocodeResult.label,
owningSource: searchSource,
displaySubtitle: subtitle,
geoElement: Graphic(
geometry: geocodeResult.displayLocation,
attributes: geocodeResult.attributes

@dfeinzimer dfeinzimer added the bug Something isn't working label Jul 1, 2024
@dfeinzimer
Copy link
Collaborator Author

Build errors are still present as of Beta 4.

Feedback FB14459597 submitted.

@dfeinzimer
Copy link
Collaborator Author

The issue does not appear to be limited to the Toolkit at this time.

Closing in deference to swift/5740 to centralize the discussion.

@dfeinzimer dfeinzimer closed this as not planned Won't fix, can't repro, duplicate, stale Jul 24, 2024
@sandeeps7
Copy link

Hi @dfeinzimer , any updates on this issue. I recently upgraded to Xcode 16 and facing this exact issue. Any help would be greatly appreciated. Thanks!

LOG:

Undefined symbols for architecture arm64:
  "dispatch thunk of ArcGIS.Feature.attributes.getter : [Swift.String : Any]", referenced from:
      (extension in ArcGISToolkit):ArcGIS.ArcGISFeature.globalID.getter : Foundation.UUID? in ArcGISToolkit.o
      (extension in ArcGISToolkit):ArcGIS.ArcGISFeature.globalID.getter : Foundation.UUID? in ArcGISToolkit.o
  "ArcGIS.Graphic.__allocating_init(geometry: ArcGIS.Geometry?, attributes: [Swift.String : Any], symbol: ArcGIS.Symbol?) -> ArcGIS.Graphic", referenced from:
      ArcGISToolkit.OverviewMap.(DataModel in _28865E661272E407DAB7FDFAE6449FDE).init() -> ArcGISToolkit.OverviewMap.(DataModel in _28865E661272E407DAB7FDFAE6449FDE) in ArcGISToolkit.o
      ArcGISToolkit.SearchResult.init(geocodeResult: ArcGIS.GeocodeResult, searchSource: ArcGISToolkit.SearchSource) -> ArcGISToolkit.SearchResult in ArcGISToolkit.o
      (1) suspend resume partial function for ArcGISToolkit.UtilityNetworkTraceViewModel.processAndAdd(startingPoint: ArcGISToolkit.UtilityNetworkTraceStartingPoint) async -> () in ArcGISToolkit.o
      (3) suspend resume partial function for ArcGISToolkit.UtilityNetworkTraceViewModel.processAndAdd(startingPoint: ArcGISToolkit.UtilityNetworkTraceStartingPoint) async -> () in ArcGISToolkit.o
      (4) suspend resume partial function for ArcGISToolkit.UtilityNetworkTraceViewModel.processAndAdd(startingPoint: ArcGISToolkit.UtilityNetworkTraceStartingPoint) async -> () in ArcGISToolkit.o
      closure #2 (ArcGIS.Geometry, ArcGIS.SimpleLineSymbol.Style, SwiftUI.Color) -> ArcGIS.Graphic in ArcGISToolkit.UtilityNetworkTraceViewModel.trace() async -> Swift.Bool in ArcGISToolkit.o
ld: symbol(s) not found for architecture arm64

@dfeinzimer
Copy link
Collaborator Author

dfeinzimer commented Sep 16, 2024

Hi @sandeeps7, yes, we're actively working on a fix and intend to release a patch shortly.

Please follow this thread for up to date information.

@sandeeps7
Copy link

Hi @sandeeps7, yes, we're actively working on a fix and intend to release a patch shortly.

Please follow this thread for up to date information.

Thank you David! this helps

@dfeinzimer
Copy link
Collaborator Author

Version 200.5.1 has been released which resolves the Xcode 16 build errors.

@sandeeps7
Copy link

sandeeps7 commented Sep 20, 2024 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants