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

Xcode15 compile error #336

Closed
whuxujiyuan opened this issue Aug 23, 2023 · 9 comments · Fixed by #339
Closed

Xcode15 compile error #336

whuxujiyuan opened this issue Aug 23, 2023 · 9 comments · Fixed by #339

Comments

@whuxujiyuan
Copy link

image
@davdroman
Copy link
Collaborator

davdroman commented Aug 23, 2023

That looks like a very old version. Update to the latest version of SwiftUIIntrospect (0.11.0) and let me know if it works.

Also I'd appreciate something more than a screenshot as that gives me very little contextual information about how the error is occurring.

  • Is the library being linked in a project, SPM package, or are you just compiling from source?
  • Are you running on Intel or M1?
  • Which Xcode 15 beta are you using exactly?
  • Can you provide a relevant reproducible example?

@oscarkockum
Copy link

I have the same issue when installing using Cocoapods. When I install using SPM I get
Could not find module for target 'x86_64-apple-ios-simulator'... (works building on device but need simulator for SwiftUI previews)

M1
Xcode 15 Beta 6

@davdroman
Copy link
Collaborator

@oscarkockum could you provide a small reproducible example that showcases this issue please? I'm unable to reproduce in my M1 machine running Xcode 15 beta 7.

Also, feel free to file a separate issue about x86_64-apple-ios-simulator with a suitable reproducible example as I wasn't able to reproduce that one in #189 either but I'd really like to get to the bottom of it once and for all.

@oscarkockum
Copy link

Hi @davdroman !

I created a quick project but could not reproduce the error, and found out the issue comparing the build settings.
Had an EXCLUDED_ARCHS arm64 due to an old GoogleMaps SDK workaround. Removing it fixed the issue.

@davdroman
Copy link
Collaborator

@oscarkockum that's excellent news! I'll cross post this to #189 to help folks still struggling with this.

@davdroman
Copy link
Collaborator

@oscarkockum just to clarify, is this particular Protocol requirement ... cannot be declared '@_spi' ... issue fixed as well, or just the x86_64-apple-ios-simulator one?

@whuxujiyuan
Copy link
Author

whuxujiyuan commented Aug 24, 2023

  • using pod
  • Intel
  • Xcode 15 beta 6
  • Demo.zip

@whuxujiyuan
Copy link
Author

xcode15 beta7 is the same error

@davdroman
Copy link
Collaborator

davdroman commented Aug 24, 2023

@whuxujiyuan so it seems it's this line in your Podfile that's causing the issue:

config.build_settings['BUILD_LIBRARY_FOR_DISTRIBUTION'] = 'YES'

Now, I don't know exactly why that flag is set. I'd appreciate some more insight on that. But as far as the error goes, I should be able to work out a fix by adding a default conformance as suggested by the compiler.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants