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

PreparedGeometry branch Library Not Loaded #266

Open
Awesomeplayer165 opened this issue Jul 10, 2023 · 9 comments
Open

PreparedGeometry branch Library Not Loaded #266

Awesomeplayer165 opened this issue Jul 10, 2023 · 9 comments

Comments

@Awesomeplayer165
Copy link

Awesomeplayer165 commented Jul 10, 2023

When using the PreparedGeometry branch, my macOS Terminal app has a runtime error. This only happens using the PreparedGeometry branch and not the main branch. I am not sure why this is happening although some people are referencing Framework A relying on B without it properly loading in, which could seem like the case with geos and GEOSwift.

Sorry if this seems like a dumb question, but how can I solve this error? I've made sure of the following:

  • clearing cache
  • signing in my Project for Development instead of Signing to Run Locally (Both don't work)
  • Doesn't just occur with Xcode 15.0 beta 3 (although that is what I am using)

Any help would be greatly appreciated!

image
@Awesomeplayer165
Copy link
Author

dyld[89126]: Library not loaded: @rpath/geos.framework/Versions/A/geos
  Referenced from: <FF65E51C-C154-3E3C-94AF-4F26998BF0D4> /Users/jacobtrentini/Library/Developer/Xcode/DerivedData/Fume-Swift-Server-cneazzpejyqvevgttfpbpmxaeqvc/Build/Products/Debug/Fume-Swift-Server
  Reason: tried: '/Users/jacobtrentini/Library/Developer/Xcode/DerivedData/Fume-Swift-Server-cneazzpejyqvevgttfpbpmxaeqvc/Build/Products/Debug/geos.framework/Versions/A/geos' (no such file), '/Users/jacobtrentini/Library/Developer/Xcode/DerivedData/Fume-Swift-Server-cneazzpejyqvevgttfpbpmxaeqvc/Build/Products/Debug/PackageFrameworks/geos.framework/Versions/A/geos' (code signature in <3ADD73CB-8F16-310C-9FDF-02D86624C1B7> '/Users/jacobtrentini/Library/Developer/Xcode/DerivedData/Fume-Swift-Server-cneazzpejyqvevgttfpbpmxaeqvc/Build/Products/Debug/PackageFrameworks/geos.framework/Versions/A/geos' not valid for use in process: mapping process and mapped file (non-platform) have different Team IDs), '/Users/jacobtrentini/Library/Developer/Xcode/DerivedData/Fume-Swift-Server-cneazzpejyqvevgttfpbpmxaeqvc/Build/Products/Debug/PackageFrameworks/geos.framework/Versions/A/geos' (code signature in <3ADD73CB-8F16-310C-9FDF-02D86624C1B7> '/Users/jacobtrentini/Library/Developer/Xcode/DerivedData/Fume-Swift-Server-cneazzpejyqvevgttfpbpmxaeqvc/Build/Products/Debug/PackageFrameworks/geos.framework/Versions/A/geos' not valid for use in process: mapping process and mapped file (non-platform) have different Team IDs), '/System/Volumes/Preboot/Cryptexes/OS/Users/jacobtrentini/Library/Developer/Xcode/DerivedData/Fume-Swift-Server-cneazzpejyqvevgttfpbpmxaeqvc/Build/Products/Debug/PackageFrameworks/geos.framework/Versions/A/geos' (no such file), '/Users/jacobtrentini/Library/Developer/Xcode/DerivedData/Fume-Swift-Server-cneazzpejyqvevgttfpbpmxaeqvc/Build/Products/Debug/PackageFrameworks/geos.framework/Versions/A/geos' (code signature in <3ADD73CB-8F16-310C-9FDF-02D86624C1B7> '/Users/jacobtrentini/Library/Developer/Xcode/DerivedData/Fume-Swift-Server-cneazzpejyqvevgttfpbpmxaeqvc/Build/Products/Debug/PackageFrameworks/geos.framework/Versions/A/geos' not valid for use in process: mapping process and mapped file (non-platform) have different Team IDs), '/System/Volumes/Preboot/Cryptexes/OS/Users/jacobtrentini/Library/Developer/Xcode/DerivedData/Fume-Swift-Server-cneazzpejyqvevgttfpbpmxaeqvc/Build/Products/Debug/PackageFrameworks/geos.framework/Versions/A/geos' (no such file)

@Awesomeplayer165
Copy link
Author

Awesomeplayer165 commented Jul 10, 2023

I also tried the following solutions:

image

@Awesomeplayer165
Copy link
Author

Let me know if you want me to submit a sample project like in the past. Thanks!

@macdrevx
Copy link
Member

Thanks for reporting this! A sample project would be most helpful. I'll take a look after you share it.

@Awesomeplayer165
Copy link
Author

Sorry for the late response, here's a sample project.

geos-prepared-geometry.zip

@macdrevx
Copy link
Member

Not sure of the best solution yet, but I can say that this is a problem with code signing. Following the example from this Stack Overflow question & answers, I was able to resign both the executable binary and the binary inside of geos.framework to my personal development identity and successfully run without building in xcode.

@macdrevx
Copy link
Member

This seems like a problem with the Xcode build system to me. Have you tried building your project with SPM directly instead of through an Xcode project? I wonder if that would make any difference.

I recommend reporting this example to Apple via https://feedbackassistant.apple.com/

@Awesomeplayer165
Copy link
Author

Awesomeplayer165 commented Jul 22, 2023

Got it — I missed the last part. Maybe that should be mentioned in the README. Thanks for the clarification!

@macdrevx
Copy link
Member

macdrevx commented Jul 22, 2023

I was able to resign both the executable binary and the binary inside of geos.framework to my personal development identity and successfully run without building in xcode.

To be clear — I don't think these steps would be necessary if Xcode were working properly. It seems to me like Xcode is just doing something incorrectly with this project and dependency structure.

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

2 participants