You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Environment
Sourcery Version 1.7.0 installed through brew
Mac M1 running Xcode 13.2.1 on Rosetta.
Notes
The command works if I run it in terminal, however if I add it to pre-build scripts it ends with error shown below. Not really sure why Im assuming that because one of the libraries Im using is not yet Compatible with arm64 Xcode builds the project in x86_64.
The Error:
Getting Command PhaseScriptExecution failed with a nonzero exit code:
dyld[93847]: Library not loaded: @rpath/lib_InternalSwiftSyntaxParser.dylib
Referenced from: /opt/homebrew/Cellar/sourcery/1.7.0/bin/sourcery
Reason: tried: '/usr/lib/swift/lib_InternalSwiftSyntaxParser.dylib' (no such file),
'/opt/homebrew/Cellar/sourcery/1.7.0/bin/../lib/lib_InternalSwiftSyntaxParser.dylib' (mach-o file, but is an incompatible architecture (have 'arm64', need 'x86_64')),
'/usr/lib/swift/lib_InternalSwiftSyntaxParser.dylib' (no such file),
'/opt/homebrew/Cellar/sourcery/1.7.0/bin/../lib/lib_InternalSwiftSyntaxParser.dylib' (mach-o file, but is an incompatible architecture (have 'arm64', need 'x86_64')),
'/usr/local/lib/lib_InternalSwiftSyntaxParser.dylib' (no such file),
'/usr/lib/lib_InternalSwiftSyntaxParser.dylib' (no such file)
/Users/michal-novoda/Projects/Hopin/hopin-mobile-ios/Tuist/Scripts/generate_mocks.sh: line 3: 93847 Abort trap: 6 sourcery --config Sourcery/config.yml
The text was updated successfully, but these errors were encountered:
I imagine running through Rosetta has something to do with it, our brew formula builds thin slice from what I remember, if you use normal release of cocoapods you should have universal binary, mind checking if that works in your case?
Environment
Sourcery Version 1.7.0 installed through
brew
Mac M1 running Xcode 13.2.1 on Rosetta.
Notes
The command works if I run it in terminal, however if I add it to pre-build scripts it ends with error shown below. Not really sure why Im assuming that because one of the libraries Im using is not yet Compatible with
arm64
Xcode builds the project inx86_64
.The Error:
Getting Command PhaseScriptExecution failed with a nonzero exit code:
The text was updated successfully, but these errors were encountered: