googlemaps / ios-places-sdk

Apache License 2.0
10 stars 5 forks source link

Xcode preview crash #24

Open ucerxxx opened 1 month ago

ucerxxx commented 1 month ago

Thanks for stopping by to let us know something could be better!


PLEASE READ

If you have a support contract with Google, please create an issue in the support console. This will ensure a timely response.

Discover additional support services for the Google Maps Platform, including developer communities, technical guidance, and expert support at the Google Maps Platform support resources page.

If your bug or feature request is not related to this particular library, please visit the Google Maps Platform issue trackers.

Check for answers on StackOverflow with the google-maps tag.


Please be sure to include as much information as possible:

Environment details

  1. iOS Places SDK
  2. iOS 18 and up
  3. Xcode 16+

Steps to reproduce

  1. Add places sdk in project via SPM
  2. Try swiftui preview - it crashed

Code example

# example

Stack trace

# example

Following these steps will guarantee the quickest resolution possible.

Thanks!

connorknfr commented 1 week ago

It's happening to me as well. Could you let me know if you found a solution to that?

ucerxxx commented 1 week ago

It's happening to me as well. Could you let me know if you found a solution to that?

no. tried few tricks, but no luck

leverglowh commented 1 week ago

Happening to me too, macOS sequoia, m1 MacBook Pro Here is the error log

I checked the path, GooglePlaces.a seems a valid archive file, no idea what's going on

Downgrading to Xcode 15.4 for now

== PREVIEW UPDATE ERROR:

    FailedToLaunchAppError: Failed to launch com.example.app

    ==================================

    |  [Remote] JITError
    |  
    |  ==================================
    |  
    |  |  [Remote] CouldNotLoadInputStaticArchiveFile: Could not load static archive during preview: /Users/username/Library/Developer/Xcode/DerivedData/projectname-emkxwslvdguchpeagflldxdtwkcx/Build/Products/Debug-iphonesimulator/GooglePlaces.a
    |  |  
    |  |  path: /Users/username/Library/Developer/Xcode/DerivedData/projectname-emkxwslvdguchpeagflldxdtwkcx/Build/Products/Debug-iphonesimulator/GooglePlaces.a
    |  |  
    |  |  ==================================
    |  |  
    |  |  |  [Remote] XOJITError
    |  |  |  
    |  |  |  XOJITError: arm64 slice of /Users/username/Library/Developer/Xcode/DerivedData/projectname-emkxwslvdguchpeagflldxdtwkcx/Build/Products/Debug-iphonesimulator/GooglePlaces.a does not contain an archive