Unable to load nib file / Problem with CompileXIB
janosch1 at mailbox.org
janosch1 at mailbox.org
Mon Jan 11 15:41:27 UTC 2021
Hi,
I am struggling to create working port file for sparkle(https://github.com/sparkle-project/Sparkle). All targets contained in the Xcode project are building with no errors but when I build & install sparkle via macports and start the „Sparkle Test App“ app bundle I get this:
2021-01-11 16:22:56.277 Sparkle Test App[66399:870691] Unable to load nib file: MainMenu, exiting
I do not get this error if I run the same app bundle built from Xcode. I noticed there is a difference between those app bundles. Whereas the macports bundle looks like this:
Contents
|__ Resources
|__<locale>.lproj
|__InfoPlist.strings
The Xcode app bundle looks like this:
Contents
|__ Resources
|__<locale>.lproj
|__MainMenu.string
I have very limited Xcode experience but for me it looks like that the missing MainMenu.string could be the problem. I also noticed that the CompileXIB command is different between Xcode and macports. See [1] and [2] attached. Is there a way to make MacPorts use a command like [2] instead of [1]?
Regards,
Janosch
[1] Macports CompileXIB:
CompileXIB /opt/local/var/macports/build/_Users_janosch_Dev_macports-ports_devel_sparkle/sparkle/work/sparkle-1.24.0/TestApplication/en.lproj/MainMenu.xib (in target 'Sparkle Test App' from project 'Sparkle')
cd /opt/local/var/macports/build/_Users_janosch_Dev_macports-ports_devel_sparkle/sparkle/work/sparkle-1.24.0
export XCODE_DEVELOPER_USR_PATH\=/Applications/Xcode.app/Contents/Developer/usr/bin/..
/Applications/Xcode.app/Contents/Developer/usr/bin/ibtool --errors --warnings --notices --module Sparkle_Test_App --output-partial-info-plist /opt/local/var/macports/build/_Users_janosch_Dev_macports-ports_devel_sparkle/sparkle/work/sparkle-1.24.0/build/Sparkle.build/Release/Sparkle\ Test\ App.build/en.lproj/MainMenu-PartialInfo.plist --auto-activate-custom-fonts --target-device mac --minimum-deployment-target 11.1 --output-format human-readable-text --compile /opt/local/var/macports/build/_Users_janosch_Dev_macports-ports_devel_sparkle/sparkle/work/destroot/Applications/MacPorts/Sparkle\ Test\ App.app/Contents/Resources/en.lproj/MainMenu.nib /opt/local/var/macports/build/_Users_janosch_Dev_macports-ports_devel_sparkle/sparkle/work/sparkle-1.24.0/TestApplication/en.lproj/MainMenu.xib
[2] Xcode CompileXIB:
CompileXIB /Users/janosch/Dev/Sparkle/TestApplication/Base.lproj/MainMenu.xib (in target 'Sparkle Test App' from project 'Sparkle')
cd /Users/janosch/Dev/Sparkle
export XCODE_DEVELOPER_USR_PATH\=/Applications/Xcode.app/Contents/Developer/usr/bin/..
/Applications/Xcode.app/Contents/Developer/usr/bin/ibtool --errors --warnings --notices --companion-strings-file en:/Users/janosch/Dev/Sparkle/TestApplication/en.lproj/MainMenu.strings --companion-strings-file es:/Users/janosch/Dev/Sparkle/TestApplication/es.lproj/MainMenu.strings --companion-strings-file ru:/Users/janosch/Dev/Sparkle/TestApplication/ru.lproj/MainMenu.strings --companion-strings-file ar:/Users/janosch/Dev/Sparkle/TestApplication/ar.lproj/MainMenu.strings --companion-strings-file ca:/Users/janosch/Dev/Sparkle/TestApplication/ca.lproj/MainMenu.strings --companion-strings-file zh_CN:/Users/janosch/Dev/Sparkle/TestApplication/zh_CN.lproj/MainMenu.strings --companion-strings-file zh_TW:/Users/janosch/Dev/Sparkle/TestApplication/zh_TW.lproj/MainMenu.strings --companion-strings-file hr:/Users/janosch/Dev/Sparkle/TestApplication/hr.lproj/MainMenu.strings --companion-strings-file cs:/Users/janosch/Dev/Sparkle/TestApplication/cs.lproj/MainMenu.strings --companion-strings-file da:/Users/janosch/Dev/Sparkle/TestApplication/da.lproj/MainMenu.strings --companion-strings-file nl:/Users/janosch/Dev/Sparkle/TestApplication/nl.lproj/MainMenu.strings --companion-strings-file fi:/Users/janosch/Dev/Sparkle/TestApplication/fi.lproj/MainMenu.strings --companion-strings-file fr:/Users/janosch/Dev/Sparkle/TestApplication/fr.lproj/MainMenu.strings --companion-strings-file de:/Users/janosch/Dev/Sparkle/TestApplication/de.lproj/MainMenu.strings --companion-strings-file el:/Users/janosch/Dev/Sparkle/TestApplication/el.lproj/MainMenu.strings --companion-strings-file he:/Users/janosch/Dev/Sparkle/TestApplication/he.lproj/MainMenu.strings --companion-strings-file hu:/Users/janosch/Dev/Sparkle/TestApplication/hu.lproj/MainMenu.strings --companion-strings-file is:/Users/janosch/Dev/Sparkle/TestApplication/is.lproj/MainMenu.strings --companion-strings-file it:/Users/janosch/Dev/Sparkle/TestApplication/it.lproj/MainMenu.strings --companion-strings-file ja:/Users/janosch/Dev/Sparkle/TestApplication/ja.lproj/MainMenu.strings --companion-strings-file ko:/Users/janosch/Dev/Sparkle/TestApplication/ko.lproj/MainMenu.strings --companion-strings-file nb:/Users/janosch/Dev/Sparkle/TestApplication/nb.lproj/MainMenu.strings --companion-strings-file pl:/Users/janosch/Dev/Sparkle/TestApplication/pl.lproj/MainMenu.strings --companion-strings-file pt_BR:/Users/janosch/Dev/Sparkle/TestApplication/pt_BR.lproj/MainMenu.strings --companion-strings-file pt_PT:/Users/janosch/Dev/Sparkle/TestApplication/pt_PT.lproj/MainMenu.strings --companion-strings-file ro:/Users/janosch/Dev/Sparkle/TestApplication/ro.lproj/MainMenu.strings --companion-strings-file sk:/Users/janosch/Dev/Sparkle/TestApplication/sk.lproj/MainMenu.strings --companion-strings-file sl:/Users/janosch/Dev/Sparkle/TestApplication/sl.lproj/MainMenu.strings --companion-strings-file th:/Users/janosch/Dev/Sparkle/TestApplication/th.lproj/MainMenu.strings --companion-strings-file sv:/Users/janosch/Dev/Sparkle/TestApplication/sv.lproj/MainMenu.strings --companion-strings-file tr:/Users/janosch/Dev/Sparkle/TestApplication/tr.lproj/MainMenu.strings --companion-strings-file uk:/Users/janosch/Dev/Sparkle/TestApplication/uk.lproj/MainMenu.strings --module Sparkle_Test_App --output-partial-info-plist /Users/janosch/Library/Developer/Xcode/DerivedData/Sparkle-ceuqmpfibwhvunbilrssajlauzos/Build/Intermediates.noindex/ArchiveIntermediates/Distribution/IntermediateBuildFilesPath/Sparkle.build/Release/Sparkle\ Test\ App.build/Base.lproj/MainMenu-PartialInfo.plist --auto-activate-custom-fonts --target-device mac --minimum-deployment-target 10.9 --output-format human-readable-text --compile /Users/janosch/Library/Developer/Xcode/DerivedData/Sparkle-ceuqmpfibwhvunbilrssajlauzos/Build/Intermediates.noindex/ArchiveIntermediates/Distribution/InstallationBuildProductsLocation/Applications/Sparkle\ Test\ App.app/Contents/Resources/Base.lproj/MainMenu.nib /Users/janosch/Dev/Sparkle/TestApplication/Base.lproj/MainMenu.xib
More information about the macports-users
mailing list