Hello World

Be Happy!

__NSPlaceholderDate


Case 1.
[74118] - Worker 0 (pid: 74164) booted, phase: 0
Started GET "/" for ::1 at 2020-03-11 17:14:05 -0700
objc[74164]: +[__NSPlaceholderDate initialize] may have been in progress in another thread when fork() was called.
objc[74164]: +[__NSPlaceholderDate initialize] may have been in progress in another thread when fork() was called. We cannot safely call it or ignore it in the fork() child process. Crashing instead. Set a breakpoint on objc_initializeAfterForkError to debug.
Solution
export OBJC_DISABLE_INITIALIZE_FORK_SAFETY=YES


Case 2
$ rails console
Running via Spring preloader in process 65235
Loading development environment (Rails 6.0.2.1)
[1] pry(main)> User.all
objc[65235]: +[__NSPlaceholderDate initialize] may have been in progress in another thread when fork() was called.
objc[65235]: +[__NSPlaceholderDate initialize] may have been in progress in another thread when fork() was called. We cannot safely call it or ignore it in the fork() child process. Crashing instead. Set a breakpoint on objc_initializeAfterForkError to debug.
$ export OBJC_DISABLE_INITIALIZE_FORK_SAFETY=YES
$ export DISABLE_SPRING=true
$ rails console
W, [2020-03-12T15:52:01.468873 #65381]  WARN -- Skylight: [SKYLIGHT] [4.2.3] Running Skylight in development mode. No data will be reported until you deploy your app.
(To disable this message for all local apps, run `skylight disable_dev_warning`.)
warning ../package.json: No license field                                                                                                                                                     
aaaaaLoading development environment (Rails 6.0.2.1)
[1] pry(main)> User.all
  User Load (9.4ms)  SELECT "users".* FROM "users"
=> []
Solution
export DISABLE_SPRING=true
#rails (32)
List