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

Command CompileSwiftSources failed with a nonzero exit code #239

Closed
valentary opened this issue Jan 15, 2022 · 7 comments
Closed

Command CompileSwiftSources failed with a nonzero exit code #239

valentary opened this issue Jan 15, 2022 · 7 comments

Comments

@valentary
Copy link

I'm trying to include this as a package in an iOS project (Or rather this PR : #228)

But it won't build , I get errors like :
`
▸ Linking geos.o
▸ Processing empty-geos.plist
▸ Linking geos
❌ Undefined symbols for architecture x86_64

Symbol: ___llvm_profile_runtime
Referenced from: ___llvm_profile_runtime_user in geos.o
❌ ld: symbol(s) not found for architecture x86_64
❌ clang: error: linker command failed with exit code 1 (use -v to see invocation)`

@macdrevx
Copy link
Member

macdrevx commented Jan 16, 2022

Have you tried explicitly including geos as a dependency too? https://github.com/GEOSwift/GEOSwift#swift-package-manager

Can you reproduce in a sample project that you could attach here?

What version of Xcode are you using?

What version of GEOSwift and geos?

@valentary
Copy link
Author

I'll see if I can try these things over this week

XCode version is currently 13.1 I'm updating to the latest version now but it takes several hours....

For the GEOSwift version, I'm pulling from directly from the branch in the PR

@valentary
Copy link
Author

I tried adding the geos package as a seperate dependency, it required an older version to be compatible with GEOSwift fro the packages to resolve, I used 6.0.1 -> To next major version
Unfortunately it did not solve the problem

@romnes
Copy link

romnes commented Jan 21, 2022

Attached is a sample project reproducing this issue. It started out as a vanilla iOS app using the "App" template in Xcode. I then converted the tests to use a test plan and in the GeoSwiftSample.xctestplan file I turned on Code Coverage. This triggers the issue.

Turning off "Code Coverage" in the test plan is a work-around for this issue.

Screenshot 2022-01-21 at 18 30 15

GeoSwiftSample.zip

@macdrevx
Copy link
Member

Okay, sounds like a duplicate of GEOSwift/geos#14. Sorry for not identifying that more quickly. We unfortunately don't know how to solve this at the moment.

@valentary
Copy link
Author

valentary commented Jan 21, 2022 via email

@macdrevx
Copy link
Member

Closing as a duplicate. Please add new info to GEOSwift/geos#14 if you have any.

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