periphery: unable to build a release from the latest master on Xcode 13.3.1

hi I was trying to clone and run make build_release it get broken due to duplicate symbols for on Xcode 13.3.1 ?

duplicate symbol '_swiftparse_syntax_structure_versioning_identifier' in:
    periphery/.build/apple/Products/Release/SwiftSyntaxParser.o
    /periphery/.build/apple/Products/Release/lib_InternalSwiftSyntaxParser.framework/lib_InternalSwiftSyntaxParser

ld: 14 duplicate symbols for architecture arm64

About this issue

  • Original URL
  • State: closed
  • Created 2 years ago
  • Comments: 15 (1 by maintainers)

Most upvoted comments

Thank you all for handling this. I will get a new release out later today!

one thing i noticed with the latest periphery build on my local machine is the time taken for the periphery scan is kind of doubled. will check this again and let you know.

yes this is true @liamnichols verified it twice 😦.

@ayyappa-s: To confirm, how did you compare? Are you able to share a small sample project that we can use to compare together?

Am I right in assuming that you are seeing this difference between the last official release and building master? Do you still see the issue if you use Xcode 13.2.1 to build periphery instead of Xcode 13.3?

Ahh ok, understood 🙂 fix is in https://github.com/peripheryapp/periphery/pull/493 👍

sure i will use that but i still need it for package distribution, will wait for you 😃. until then I will use the local way for now. thanks

Ah, I never checked the Makefile when working on apple/swift#473, we can use a workaround similar to this:

https://github.com/krzysztofzablocki/Sourcery/blob/9616fade78c7a79f257c7b9b401a71820b501101/Rakefile#L66-L74

I’ll try and work on a patch tomorrow 🤞

@ayyappa-s You can try the master branch. It should work. Therefor needs a new release.