NullPointerException when generating Xcode project
See original GitHub issueI’m currently trying to generate an Xcode project for a build target and am hitting this error:
[2015-10-15 13:10:25.554][error][command:d460f5e8-8e3a-4500-86df-c928b9f7e0d4][tid:700][com.facebook.buck.cli.Main] Uncaught exception at top level
java.lang.NullPointerException
at com.facebook.buck.apple.SchemeGenerator.writeScheme(SchemeGenerator.java:133)
at com.facebook.buck.apple.WorkspaceAndProjectGenerator.writeWorkspaceSchemes(WorkspaceAndProjectGenerator.java:845)
at com.facebook.buck.apple.WorkspaceAndProjectGenerator.generateWorkspaceAndDependentProjects(WorkspaceAndProjectGenerator.java:413)
at com.facebook.buck.cli.ProjectCommand.generateWorkspacesForTargets(ProjectCommand.java:808)
at com.facebook.buck.cli.ProjectCommand.runXcodeProjectGenerator(ProjectCommand.java:707)
at com.facebook.buck.cli.ProjectCommand.runWithoutHelp(ProjectCommand.java:432)
at com.facebook.buck.cli.AbstractCommand.run(AbstractCommand.java:153)
at com.facebook.buck.cli.BuckCommand.run(BuckCommand.java:84)
at com.facebook.buck.cli.Main.runMainWithExitCode(Main.java:792)
at com.facebook.buck.cli.Main.tryRunMainWithExitCode(Main.java:1168)
at com.facebook.buck.cli.Main.runMainThenExit(Main.java:1225)
at com.facebook.buck.cli.Main.nailMain(Main.java:1254)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:606)
at com.martiansoftware.nailgun.NGSession.run(NGSession.java:331)
I’m unsure exactly what’s causing this to happen - I will update if I have more exact steps to repro.
Issue Analytics
- State:
- Created 8 years ago
- Comments:9 (1 by maintainers)
Top Results From Across the Web
How to Fix and Avoid NullPointerException in Java - Rollbar
The NullPointerException occurs due to a situation in application code where an uninitialized object is attempted to be accessed or modified.
Read more >Investigate Java.Lang.NullPointerException on a Codename ...
Basically, on iOS only, I have this error, that happens after some random app usage: java.lang.NullPointerException at com_codename1_ui_Form ...
Read more >Cannot upload build to appstore - … | Apple Developer Forums
On XCode (version 11.6) the process of uploading starts normally, but then an error pops up, saying that there was an error uploading...
Read more >java.lang.NullPointerException on build project - Jenkins Jira
I am having problems with building some of my older projects (3-4 years old). Projects use cocoapods. I have set up workspace file...
Read more >How to Solve java.lang.NullPointerException Error
The Null Pointer Exception is one of the most common errors in Java application development. This exception is usually the result of a...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
This is still happening btw.
Sure, PRs are always welcome.
Generally send out a draft of the PR first so we can comment on general approach and high level design. No need to flesh it out we know which direction we should go in.
For project generation specifically look at the
--combined-project
and--build-with-buck
flags, those are the future in some sense.