krzyzanowskim / Natalie

Natalie - Storyboard Code Generator (for Swift)
http://blog.krzyzanowskim.com/2015/04/15/natalie-storyboard-code-generator/
MIT License
1.17k stars 74 forks source link

natalie binary of 0.6.5 does not work after updating to Xcode 9.3 #119

Closed Fab1n closed 6 years ago

Fab1n commented 6 years ago

Executing natalie, even with no arguments, in commandline throws an error like this: dyld: Symbol not found: __T0s11CommandLineO9argumentsSaySSGvZ.

swift --version outputs the following after switching command-line-tools back to 9.2 (9C40b): Apple Swift version 4.0.3 (swiftlang-900.0.74.1 clang-900.0.39.2) _Target: x8664-apple-macosx10.9

If I build the natalie project in Xcode 9.2 or 9.3 and execute the generated executable it just works fine.

Maybe the natalie executable is not compatible with the updated swift version in the system?

krzyzanowskim commented 6 years ago

the Swift ABI beauty. Need to rebuild with new Swift compiler version (then won't be compatible with the previous Swift version of course)

Fab1n commented 6 years ago

The fun part is, I switched command line tools back to 9.2 after installing 9.2 again in parallel. Then still does not work :/

krzyzanowskim commented 6 years ago

yeap. needs to rebuild and push. I'm guessing you installed via homebrew?

Fab1n commented 6 years ago

nope, we include it as submodule in our project

krzyzanowskim commented 6 years ago

(I forgot I added the binary to the repo)

The script to update the binary:

./scripts/build.sh

I'm pushing the updated binary now

Fab1n commented 6 years ago

Ah cool, ok. I built the binary with Xcode, didn't know of the script. Building it with Xcode somehow makes it work in both cases (systems with Xcode 9.3 and systems with 9.2).

Thanks for your work.

Fab1n commented 6 years ago

Verified, your newly pushed executable is compatible with 9.3 and 9.2 environments.

alkalim commented 6 years ago

The file size grew 20x times compared to the previous version :( screen shot 2018-04-11 at 15 03 28

Fab1n commented 6 years ago

Yes that’s true, I noticed this yesterday...

Am 11.04.2018 um 14:21 schrieb alkalim notifications@github.com:

The file size grew 20x times compared to the previous version :( https://user-images.githubusercontent.com/33055344/38616233-ead7befc-3d9b-11e8-9f98-33d5754730a5.png — You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/krzyzanowskim/Natalie/issues/119#issuecomment-380432161, or mute the thread https://github.com/notifications/unsubscribe-auth/AAuDpsa3JICNrEq_Bn4UCFwm1zUx5CJEks5tnfVIgaJpZM4TP0Ea.

krzyzanowskim commented 6 years ago

static linking comes with the price.