Need help to use XCode 11 branch
I've installed periphery via homebrew, and its usage is pretty straightforward, just open the terminal and execute periphery scan. But due to the XCode 11 issues, I can't do that.
So, I'm trying to use the XCode 11 branch, to see if I can work with that, but I don't even know how to start. Quoting from this thread:
If I run PeripheryKit or Periphery-Package scheme, nothing seems to happen, and if I run periphery scheme, it crashes with:
dyld: Library not loaded: @rpath/lib_InternalSwiftSyntaxParser.dylib Reason: image not foundSo yeah, I'm still clueless ^^'' Should I open another thread to avoid going offtopic here?
My question is: How exactly can I use the XCode 11 branch to scan my project?
The xcode project is only used for running tests. Since periphery is a command-line app, you must run it from the command line. Checkout scripts/scan.
Running /.../Documents/periphery/scripts/scan --workspace [worspace-directory] --target [my-target] --scheme [my-scheme] only makes it to complain:
make: *** No rule to make target 'build'. Stop.
I have the feeling that I'm missing something really dumb, but I'm not used to Mac nor using the Terminal.
cd to the periphery directory first, then run scripts/scan.
In the periphery directory, scripts/scan --workspace [worspace-directory] --target [my-target] --scheme [my-scheme] results in:
error: You must supply either the --workspace or --project option, not both. If your project uses an .xcworkspace to integrate multiple projects, then supply the --workspace option. Otherwise, supply the --project option.
scripts/scan is just a helper for analyzing Periphery itself, look at the script contents to see how it calls the binary.
Finally, managed it to work! Thanks a lot!!