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

no such file no such file or directory: Introspect-Dynamic.framework/Introspect-Dynamic #318

Closed
staticdreams opened this issue Jul 20, 2023 · 6 comments

Comments

@staticdreams
Copy link

staticdreams commented Jul 20, 2023

I'm having trouble compiling application for device.
This is the exact 2 issues I'm having:

clang: no such file or directory: '/Users/peter/Library/Developer/Xcode/DerivedData/Cinepub- 
brqgtlkhcrcgxahldoskfqsuoqid/Build/Products/Debug-iphoneos/PackageFrameworks/Introspect-Dynamic.framework/Introspect- 
Dynamic'


clang: error: no such file or directory: '/Users/peter/Library/Developer/Xcode/DerivedData/Cinepub- 
brqgtlkhcrcgxahldoskfqsuoqid/Build/Products/Debug-iphoneos/PackageFrameworks/SwiftUIIntrospect- 
Dynamic.framework/SwiftUIIntrospect-Dynamic'``

And if inside SwiftUIIntrospect-Dynamic.framework it confirms it: no such file SwiftUIIntrospect-Dynamic or Introspect-
Dynamic

Simulator run the application without any issues.

FYI I'm using latest Xcode 15 beta 4, running iOS 17 simulator

My device is iPhone 14 Pro iOS 16.5.1

SwiftUI-introspect: 0.9.4

@davdroman
Copy link
Collaborator

Can you please share a small reproducible project that I can debug? Otherwise this is hard to replicate. Thanks in advance.

@davdroman
Copy link
Collaborator

davdroman commented Jul 20, 2023

Okay I think I might've narrowed it down to this needing to be checked:

CleanShot 2023-07-20 at 15 17 49@2x

Let me know if it helped.

@davdroman
Copy link
Collaborator

davdroman commented Jul 20, 2023

Also as a tip, unless you really need the dynamic version of the module it's probably best to just depend on SwiftUIIntrospect and let SPM figure out the linking mode for you.

@staticdreams
Copy link
Author

Thanks for the tip @davdroman !
The dynamic version was already Embed & Signed.
However, everything worked when I got rid of dynamic and static versions, leaving just Introspect.

@DuncanMC
Copy link

Thanks for the tip @davdroman ! The dynamic version was already Embed & Signed. However, everything worked when I got rid of dynamic and static versions, leaving just Introspect.

@staticdreams how did you "[get] rid of dynamic and static versions? Did you update introspect's Package.swift file and comment out the .libary() declarations for the static and dynamic versions, or something else?

@staticdreams
Copy link
Author

@DuncanMC If I recall correctly, it is during the package installation it asks you what do you want to include. Like main library, dynamic and static. I just unchecked everything a part from the main one.

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

No branches or pull requests

3 participants