I cannot find where the system makes --flatten default to NO, but I modified method transform in class CompileXib as follows
def transform(file, config, builddir) super.merge( flags: config['IB_FLAGS'], command: 'xcrun ibtool --compile $out $flags --flatten YES $in', description: 'Xib ‘${in}’…', dependencies: config.dig(:inference, 'IB_FLAGS'), ) end
and now, instead of failing on several of these .nib files/directories, it fails only on two of them: GrammarProperties.nib and FileDropProperties.nib. As a result I cannot open the Bundle Editor.
As a result files /Users/mocenigo/build/textmate/release/_CompileXib/Frameworks/BundleEditor/resources/English.lproj/FileDropProperties.nib and /Users/mocenigo/build/textmate/release/_CompileXib/Frameworks/BundleEditor/resources/English.lproj/GrammarProperties.nib are in fact packages and not files, and they both contain two files inside, called keyedobjects-110000.nib and keyedobjects,.nib
Very confused now.
Roberto
On Mon, May 24, 2021 at 11:30 AM Allan Odgaard via TextMate textmate@lists.macromates.com wrote:
On 20 May 2021, at 15:16, Roberto Avanzi via TextMate wrote:
[…] cp: /Users/mocenigo/build/textmate/release/_CompileXib/Frameworks/BundleEditor/resources/English.lproj/GrammarProperties.nib is a directory (not copied). […]
How can I set up the environment to just build properly, with "ninja TextMate" and not stopping on the cp commands?
This is puzzling because in the above, GrammarProperties.nib should not be a directory.
It is created from the GrammarProprties.xib using xcrun ibtool --compile.
You can try to experiment with ibtool yourself, for example, the man page for this tool says the following:
--flatten boolean When combined with the --compile option and a value of NO, --flatten instructs ibtool to produce an output file that is both runnable, and editable. This option is typically used when preparing a product for localization. If no value is specified, the default flattening option is YES.
It might be that --flatten defaults to NO in your build environment, and that causes a directory to be created?
Btw: If you are only doing your own builds to get ARM support then current release builds are universal.
TextMate mailing list -- textmate@lists.macromates.com To unsubscribe send an email to textmate-leave@lists.macromates.com