krzysztofzablocki / Sourcery

Meta-programming for Swift, stop writing boilerplate code.
http://merowing.info
MIT License
7.65k stars 617 forks source link

Homebrew Latest Version Crash with latest Xcode 8.3 (8E162) #203

Closed robertjpayne closed 7 years ago

robertjpayne commented 7 years ago

I think Sourcery needs to release a new version to Homebrew due to ABI updates.

dyld: Symbol not found: __TWPVVs6Mirror14LegacyChildrens21RandomAccessIndexables
  Referenced from: /usr/local/bin/sourcery
  Expected in: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/libswiftCore.dylib
 in /usr/local/bin/sourcery
krzysztofzablocki commented 7 years ago

yeah we are aware, we don't have automated release process for it yet #15

Does it work if you install new one via one of the releases or pods ?

dagio commented 7 years ago

I checked with Swift Package Manager. I does not compile

~/Desktop
git clone https://github.com/CodelyTV/incomprehensible-finder-refactoring-kata incomprehensible-finder-refactoring-kata-java

~/Desktop
git clone git@github.com:krzysztofzablocki/Sourcery.git
Cloning into 'Sourcery'...
remote: Counting objects: 3943, done.
remote: Compressing objects: 100% (222/222), done.
remote: Total 3943 (delta 108), reused 0 (delta 0), pack-reused 3718
Receiving objects: 100% (3943/3943), 3.63 MiB | 685.00 KiB/s, done.
Resolving deltas: 100% (2416/2416), done.

~/Desktop 8s
swift --version
Apple Swift version 3.1 (swiftlang-802.0.48 clang-802.0.38)
Target: x86_64-apple-macosx10.9

~/Desktop
cd Sourcery

~/Desktop/Sourcery master
swift build
Fetching https://github.com/kylef/Stencil.git
Fetching https://github.com/kylef/Commander.git
Fetching https://github.com/kylef/PathKit.git
Fetching https://github.com/jpsim/SourceKitten.git
Fetching https://github.com/vknabel/SwiftTryCatch.git
Fetching https://github.com/IBM-Swift/CommonCrypto.git
Fetching https://github.com/SwiftGen/StencilSwiftKit.git
Fetching https://github.com/kylef/Spectre.git
Fetching https://github.com/Carthage/Commandant.git
Fetching https://github.com/drmohundro/SWXMLHash.git
Fetching https://github.com/jpsim/Yams.git
Fetching https://github.com/norio-nomura/Clang_C.git
Fetching https://github.com/norio-nomura/SourceKit.git
Fetching https://github.com/antitypical/Result.git
Cloning https://github.com/jpsim/SourceKitten.git
Resolving https://github.com/jpsim/SourceKitten.git at 0.15.3
Cloning https://github.com/jpsim/Yams.git
Resolving https://github.com/jpsim/Yams.git at 0.1.2
Cloning https://github.com/antitypical/Result.git
Resolving https://github.com/antitypical/Result.git at 3.2.1
Cloning https://github.com/kylef/Stencil.git
Resolving https://github.com/kylef/Stencil.git at 0.8.0
Cloning https://github.com/IBM-Swift/CommonCrypto.git
Resolving https://github.com/IBM-Swift/CommonCrypto.git at 0.1.4
Cloning https://github.com/norio-nomura/Clang_C.git
Resolving https://github.com/norio-nomura/Clang_C.git at 1.0.2
Cloning https://github.com/kylef/Commander.git
Resolving https://github.com/kylef/Commander.git at 0.6.1
Cloning https://github.com/kylef/PathKit.git
Resolving https://github.com/kylef/PathKit.git at 0.8.0
Cloning https://github.com/norio-nomura/SourceKit.git
Resolving https://github.com/norio-nomura/SourceKit.git at 1.0.1
Cloning https://github.com/SwiftGen/StencilSwiftKit.git
Resolving https://github.com/SwiftGen/StencilSwiftKit.git at 1.0.1
Cloning https://github.com/vknabel/SwiftTryCatch.git
Resolving https://github.com/vknabel/SwiftTryCatch.git at 1.1.0
Cloning https://github.com/kylef/Spectre.git
Resolving https://github.com/kylef/Spectre.git at 0.7.2
Cloning https://github.com/drmohundro/SWXMLHash.git
Resolving https://github.com/drmohundro/SWXMLHash.git at 3.0.3
Cloning https://github.com/Carthage/Commandant.git
Resolving https://github.com/Carthage/Commandant.git at 0.11.3
error: the package has an unsupported layout, modulemap (/Users/damiengavard/Desktop/Sourcery/.build/checkouts/SourceKitten.git-6484296299232452758/Source/SourceKittenFramework/clang-c/module.modulemap) is not allowed to be mixed with sources
fix: move the modulemap inside include directory
krzysztofzablocki commented 7 years ago

Use the binary release, master version is not released yet as we are working on some features right now