Skip to content

Troubleshooting OSX

gagern edited this page Apr 3, 2013 · 1 revision

Error in JObjC generator

[exec] Exception in thread "main" java.lang.NullPointerException
[exec]   at com.apple.internal.jobjc.generator.MethodDisambiguator.disambiguateMethodNamesFor(MethodDisambiguator.java:50)
[exec]   at com.apple.internal.jobjc.generator.MethodDisambiguator.disambiguateMethodNames(MethodDisambiguator.java:43)
[exec]   at com.apple.internal.jobjc.generator.Generator.main(Generator.java:66)

This is probably due to a wrong version of make. The build file bridgesupport.gmk must be executed by the Apple version of /usr/bin/make, which can handle the wildcard in the dependency list. Other versions, e.g. the one provided by Fink, will ignore that rule and therefore state that nothing has to be done for the target “all”. As a consequence, the bridge_metadata directory will be empty and the generator will fail to load anything from it. Make sure you have the correct version of make as the first hit on your PATH.

Error from sed

sed: can't read : No such file or directory

This is due to the sed -i "" -e … line in build.sh, which modifies the file in place without creating a backup. The Version of sed shipped with OS X can handle that argument syntax just fine, but versions from e.g. Fink will interpret the empty string as a file name, and thus produce the quoted error message.