kandi background
Explore Kits

folly | Flickr Volley demo | Learning library

 by   evancharlton Java Version: Current License: No License

 by   evancharlton Java Version: Current License: No License

Download this library from

kandi X-RAY | folly Summary

folly is a Java library typically used in Tutorial, Learning applications. folly has high support. However folly has 1 bugs, it has 2 vulnerabilities and it build file is not available. You can download it from GitHub.
Flickr Volley demo
Support
Support
Quality
Quality
Security
Security
License
License
Reuse
Reuse

kandi-support Support

  • folly has a highly active ecosystem.
  • It has 133 star(s) with 30 fork(s). There are 11 watchers for this library.
  • It had no major release in the last 12 months.
  • There are 1 open issues and 0 have been closed. On average issues are closed in 2669 days. There are no pull requests.
  • It has a positive sentiment in the developer community.
  • The latest version of folly is current.
folly Support
Best in #Learning
Average in #Learning
folly Support
Best in #Learning
Average in #Learning

quality kandi Quality

  • folly has 1 bugs (0 blocker, 0 critical, 0 major, 1 minor) and 14 code smells.
folly Quality
Best in #Learning
Average in #Learning
folly Quality
Best in #Learning
Average in #Learning

securitySecurity

  • folly has 2 vulnerability issues reported (1 critical, 1 high, 0 medium, 0 low).
  • folly code analysis shows 0 unresolved vulnerabilities.
  • There are 2 security hotspots that need review.
folly Security
Best in #Learning
Average in #Learning
folly Security
Best in #Learning
Average in #Learning

license License

  • folly does not have a standard license declared.
  • Check the repository for any license declaration and review the terms closely.
  • Without a license, all rights are reserved, and you cannot use the library in your applications.
folly License
Best in #Learning
Average in #Learning
folly License
Best in #Learning
Average in #Learning

buildReuse

  • folly releases are not available. You will need to build from source code and install.
  • folly has no build file. You will be need to create the build yourself to build the component from source.
  • folly saves you 158 person hours of effort in developing the same functionality from scratch.
  • It has 392 lines of code, 34 functions and 16 files.
  • It has low code complexity. Code complexity directly impacts maintainability of the code.
folly Reuse
Best in #Learning
Average in #Learning
folly Reuse
Best in #Learning
Average in #Learning
Top functions reviewed by kandi - BETA

kandi has reviewed folly and discovered the below as its top functions. This is intended to give you an instant insight into folly implemented functionality, and help decide if they suit your requirements.

  • Initializes the instance .
    • Initializes the view .
      • get a thumbnail view
        • Sets the current query to be displayed
          • Get the URL to use for the Flickr API .
            • Send an error log message to the log .
              • Send a debug log message .
                • Parses a network response .
                  • This method is called when the menu is created .
                    • Request a thumbnail for the specified photo .

                      Get all kandi verified functions for this library.

                      Get all kandi verified functions for this library.

                      folly Key Features

                      Flickr Volley demo

                      RCT-Folly error when using hermes with iOS

                      copy iconCopydownload iconDownload
                        ...
                      
                        # Enables Flipper.
                        #
                        # Note that if you have use_frameworks! enabled, Flipper will not work and
                        # you should disable these next few lines.
                        use_flipper!({ 'Flipper' => '0.87' })
                        post_install do |installer|
                          flipper_post_install(installer)
                      
                          find_and_replace("Pods/Headers/Private/RCT-Folly/folly/synchronization/DistributedMutex-inl.h",
                          "atomic_notify_one(state)", "folly::atomic_notify_one(state)")
                      
                          find_and_replace("Pods/Flipper-Folly/folly/synchronization/DistributedMutex-inl.h",
                          "atomic_wait_until(&state, previous | data, deadline)", "folly::atomic_wait_until(&state, previous | data, deadline)")
                        end
                      
                        ...
                      
                      use_flipper!({ 'Flipper-Folly' => '2.5.3', 'Flipper' => '0.87.0', 'Flipper-RSocket' => '1.3.1' })
                      
                        post_install do |installer|
                          react_native_post_install(installer)
                          flipper_post_install(installer)
                      
                           find_and_replace("Pods/Headers/Private/RCT-Folly/folly/synchronization/DistributedMutex-inl.h",
                           "atomic_notify_one(state)", "folly::atomic_notify_one(state)")
                      
                           find_and_replace("Pods/Flipper-Folly/folly/synchronization/DistributedMutex-inl.h",
                           "atomic_wait_until(&state, previous | data, deadline)", "folly::atomic_wait_until(&state, previous | data, deadline)")
                        end
                      end
                      
                      Project/ReactNative/MySampleProj
                      

                      Fast CRC with PCLMULQDQ *NOT* reflected

                      copy iconCopydownload iconDownload
                      0x00000001000000afull
                      
                      quotient = upper 32 bits of 64 bit value / polynomial
                      product  = quotient * polynomial
                      CRC      = 64 bit value XOR product
                      
                      rk01    dq      000295f2300000000h      ; x^(32* 3) mod P(x) << 32
                      rk02    dq      0fafa517900000000h      ; x^(32* 5) mod P(x) << 32
                      rk03    dq      05cd86bb500000000h      ; x^(32*31) mod P(x) << 32
                      rk04    dq      0af6f37a300000000h      ; x^(32*33) mod P(x) << 32
                      rk05    dq      000295f2300000000h      ; x^(32* 3) mod P(x) << 32
                      rk06    dq      00000445500000000h      ; x^(32* 2) mod P(x) << 32
                      rk07    dq      000000001000000afh      ; floor(2^64/P(x))
                      rk08    dq      000000001000000afh      ; P(x)
                      rk09    dq      09bd57b5d00000000h      ; x^(32*27) mod P(x) << 32
                      rk10    dq      0b7a4d76400000000h      ; x^(32*29) mod P(x) << 32
                      rk11    dq      01ae0004200000000h      ; x^(32*23) mod P(x) << 32
                      rk12    dq      0e7720be600000000h      ; x^(32*25) mod P(x) << 32
                      rk13    dq      09c7fc8fe00000000h      ; x^(32*19) mod P(x) << 32
                      rk14    dq      03885faf800000000h      ; x^(32*21) mod P(x) << 32
                      rk15    dq      0b477ad7100000000h      ; x^(32*15) mod P(x) << 32
                      rk16    dq      00ac2ae3d00000000h      ; x^(32*17) mod P(x) << 32
                      rk17    dq      05eae9dbe00000000h      ; x^(32*11) mod P(x) << 32
                      rk18    dq      0784a483800000000h      ; x^(32*13) mod P(x) << 32
                      rk19    dq      07d21bf2000000000h      ; x^(32* 7) mod P(x) << 32
                      rk20    dq      0faebd3d300000000h      ; x^(32* 9) mod P(x) << 32
                      
                      0x00000001000000afull
                      
                      quotient = upper 32 bits of 64 bit value / polynomial
                      product  = quotient * polynomial
                      CRC      = 64 bit value XOR product
                      
                      rk01    dq      000295f2300000000h      ; x^(32* 3) mod P(x) << 32
                      rk02    dq      0fafa517900000000h      ; x^(32* 5) mod P(x) << 32
                      rk03    dq      05cd86bb500000000h      ; x^(32*31) mod P(x) << 32
                      rk04    dq      0af6f37a300000000h      ; x^(32*33) mod P(x) << 32
                      rk05    dq      000295f2300000000h      ; x^(32* 3) mod P(x) << 32
                      rk06    dq      00000445500000000h      ; x^(32* 2) mod P(x) << 32
                      rk07    dq      000000001000000afh      ; floor(2^64/P(x))
                      rk08    dq      000000001000000afh      ; P(x)
                      rk09    dq      09bd57b5d00000000h      ; x^(32*27) mod P(x) << 32
                      rk10    dq      0b7a4d76400000000h      ; x^(32*29) mod P(x) << 32
                      rk11    dq      01ae0004200000000h      ; x^(32*23) mod P(x) << 32
                      rk12    dq      0e7720be600000000h      ; x^(32*25) mod P(x) << 32
                      rk13    dq      09c7fc8fe00000000h      ; x^(32*19) mod P(x) << 32
                      rk14    dq      03885faf800000000h      ; x^(32*21) mod P(x) << 32
                      rk15    dq      0b477ad7100000000h      ; x^(32*15) mod P(x) << 32
                      rk16    dq      00ac2ae3d00000000h      ; x^(32*17) mod P(x) << 32
                      rk17    dq      05eae9dbe00000000h      ; x^(32*11) mod P(x) << 32
                      rk18    dq      0784a483800000000h      ; x^(32*13) mod P(x) << 32
                      rk19    dq      07d21bf2000000000h      ; x^(32* 7) mod P(x) << 32
                      rk20    dq      0faebd3d300000000h      ; x^(32* 9) mod P(x) << 32
                      
                      0x00000001000000afull
                      
                      quotient = upper 32 bits of 64 bit value / polynomial
                      product  = quotient * polynomial
                      CRC      = 64 bit value XOR product
                      
                      rk01    dq      000295f2300000000h      ; x^(32* 3) mod P(x) << 32
                      rk02    dq      0fafa517900000000h      ; x^(32* 5) mod P(x) << 32
                      rk03    dq      05cd86bb500000000h      ; x^(32*31) mod P(x) << 32
                      rk04    dq      0af6f37a300000000h      ; x^(32*33) mod P(x) << 32
                      rk05    dq      000295f2300000000h      ; x^(32* 3) mod P(x) << 32
                      rk06    dq      00000445500000000h      ; x^(32* 2) mod P(x) << 32
                      rk07    dq      000000001000000afh      ; floor(2^64/P(x))
                      rk08    dq      000000001000000afh      ; P(x)
                      rk09    dq      09bd57b5d00000000h      ; x^(32*27) mod P(x) << 32
                      rk10    dq      0b7a4d76400000000h      ; x^(32*29) mod P(x) << 32
                      rk11    dq      01ae0004200000000h      ; x^(32*23) mod P(x) << 32
                      rk12    dq      0e7720be600000000h      ; x^(32*25) mod P(x) << 32
                      rk13    dq      09c7fc8fe00000000h      ; x^(32*19) mod P(x) << 32
                      rk14    dq      03885faf800000000h      ; x^(32*21) mod P(x) << 32
                      rk15    dq      0b477ad7100000000h      ; x^(32*15) mod P(x) << 32
                      rk16    dq      00ac2ae3d00000000h      ; x^(32*17) mod P(x) << 32
                      rk17    dq      05eae9dbe00000000h      ; x^(32*11) mod P(x) << 32
                      rk18    dq      0784a483800000000h      ; x^(32*13) mod P(x) << 32
                      rk19    dq      07d21bf2000000000h      ; x^(32* 7) mod P(x) << 32
                      rk20    dq      0faebd3d300000000h      ; x^(32* 9) mod P(x) << 32
                      

                      How to propagate conan's compiler.cppstd setting to the compiler when building a library with CMake?

                      copy iconCopydownload iconDownload
                      cmake_minimum_required(VERSION 3.1)
                      project(cmake_wrapper)
                      
                      include(conanbuildinfo.cmake)
                      conan_basic_setup(KEEP_RPATHS)
                      
                      add_subdirectory(source_subfolder)
                      

                      Updated React Native, can't find 'boost' dependency in Podfile

                      copy iconCopydownload iconDownload
                      pod 'boost', :podspec => '../node_modules/react-native/third-party-podspecs/boost.podspec'
                      

                      xcrun: error: SDK &quot;iphoneos&quot; cannot be located

                      copy iconCopydownload iconDownload
                      sudo xcode-select --switch /Applications/Xcode.app
                      

                      React Native: RCT-Folly fatal error - 'fmt/compile.h' file not found

                      copy iconCopydownload iconDownload
                      ...
                      
                      post_install do |installer|
                          installer.pods_project.targets.each do |target|
                              if target.name == 'RCT-Folly'
                                  target.build_configurations.each do |config|
                                      config.build_settings['HEADER_SEARCH_PATHS'] = "$(inherited) ${PODS_ROOT}/fmt/include"
                                  end
                              end
                          end
                      end
                      

                      duplicate symbol 'folly::exception_wrapper::from_exception_ptr(std::exception_ptr&amp;&amp;)' React Native 0.66 with hermes enabled

                      copy iconCopydownload iconDownload
                      DEAD_CODE_STRIPPING = NO;
                      

                      How to implement a universal function for both sequence and associative container?

                      copy iconCopydownload iconDownload
                      template <typename Type, template <typename...> class Container>
                      inline constexpr bool is_specialization_of = false;
                      
                      template <template <typename...> class Container, typename... Args>
                      inline constexpr bool is_specialization_of<Container<Args...>, Container> = true;
                      
                      template<typename Container>
                      auto find_in_sequence_containers(const Container& container
                          , typename Container::value_type const& val)
                      {
                          return std::find(std::cbegin(container), std::cend(container), val);
                      }
                      
                      template<typename Container>
                      auto find_in_associative_containers(const Container& container
                          ,  typename Container::key_type const& key)
                      {
                          return container.find(key);
                      }
                      
                      template<typename Container, typename T2>
                      auto generic_find(const Container& container, T2 const& arg)
                      {
                          if constexpr (is_specialization_of<Container, std::vector>)
                          {
                              return find_in_sequence_containers(container, arg);
                          }
                          if constexpr (is_specialization_of<Container, std::map>)
                          {
                              return find_in_associative_containers(container, arg);
                          }
                          // ... so on
                      }
                      
                      template <typename Type, template <typename...> class Container>
                      inline constexpr bool is_specialization_of = false;
                      
                      template <template <typename...> class Container, typename... Args>
                      inline constexpr bool is_specialization_of<Container<Args...>, Container> = true;
                      
                      template<typename Container>
                      auto find_in_sequence_containers(const Container& container
                          , typename Container::value_type const& val)
                      {
                          return std::find(std::cbegin(container), std::cend(container), val);
                      }
                      
                      template<typename Container>
                      auto find_in_associative_containers(const Container& container
                          ,  typename Container::key_type const& key)
                      {
                          return container.find(key);
                      }
                      
                      template<typename Container, typename T2>
                      auto generic_find(const Container& container, T2 const& arg)
                      {
                          if constexpr (is_specialization_of<Container, std::vector>)
                          {
                              return find_in_sequence_containers(container, arg);
                          }
                          if constexpr (is_specialization_of<Container, std::map>)
                          {
                              return find_in_associative_containers(container, arg);
                          }
                          // ... so on
                      }
                      
                      #include <algorithm>
                      
                      template <class C, class V, typename = void>
                      constexpr inline bool use_mem_find = false;
                      
                      template <class C, class V>
                      constexpr inline bool use_mem_find<C, V,
                        std::void_t<decltype(std::declval<const C&>().find(std::declval<const V&>()))>> = true;
                      
                      template<class C, class V> 
                      bool has_val(const C& c, const V& v) {
                        auto end = std::end(c);
                        if constexpr (use_mem_find<C, V>)
                          return c.find(v) != end;
                        else
                          return std::find(std::begin(c), end, v) != end;
                      }
                      

                      Cannot specify name and version when generating a lock file

                      copy iconCopydownload iconDownload
                      $ mkdir build && cd build/
                      $ conan install ..
                      ...
                      $ ls
                      conan.lock  conanbuildinfo.cmake  conanbuildinfo.txt  conaninfo.txt  graph_info.json
                      
                      .../folly/basic $ conan lock create
                      ERROR: Specify the 'name' and the 'version'
                      
                      $ conan lock create conanfile.py
                      
                      $ conan lock create --reference folly/2020.08.10.00@  -r conancenter
                      
                      $ mkdir build && cd build/
                      $ conan install ..
                      ...
                      $ ls
                      conan.lock  conanbuildinfo.cmake  conanbuildinfo.txt  conaninfo.txt  graph_info.json
                      
                      .../folly/basic $ conan lock create
                      ERROR: Specify the 'name' and the 'version'
                      
                      $ conan lock create conanfile.py
                      
                      $ conan lock create --reference folly/2020.08.10.00@  -r conancenter
                      
                      $ mkdir build && cd build/
                      $ conan install ..
                      ...
                      $ ls
                      conan.lock  conanbuildinfo.cmake  conanbuildinfo.txt  conaninfo.txt  graph_info.json
                      
                      .../folly/basic $ conan lock create
                      ERROR: Specify the 'name' and the 'version'
                      
                      $ conan lock create conanfile.py
                      
                      $ conan lock create --reference folly/2020.08.10.00@  -r conancenter
                      
                      $ mkdir build && cd build/
                      $ conan install ..
                      ...
                      $ ls
                      conan.lock  conanbuildinfo.cmake  conanbuildinfo.txt  conaninfo.txt  graph_info.json
                      
                      .../folly/basic $ conan lock create
                      ERROR: Specify the 'name' and the 'version'
                      
                      $ conan lock create conanfile.py
                      
                      $ conan lock create --reference folly/2020.08.10.00@  -r conancenter
                      

                      No podspec found for `react-native-image-picker` in `../node_modules/react-native-image-picker`

                      copy iconCopydownload iconDownload
                        pod 'react-native-image-picker', :path => '../node_modules/react-native-image-picker'
                      

                      Community Discussions

                      Trending Discussions on folly
                      • RCT-Folly error when using hermes with iOS
                      • Fast CRC with PCLMULQDQ *NOT* reflected
                      • M1 Mac react-native iOS build error (in target 'RCT-Folly' from project 'Pods')
                      • -[FBLPromise HTTPBody]: unrecognized selector sent to instance
                      • How to propagate conan's compiler.cppstd setting to the compiler when building a library with CMake?
                      • Updated React Native, can't find 'boost' dependency in Podfile
                      • xcrun: error: SDK &quot;iphoneos&quot; cannot be located
                      • Max capacity for FBString?
                      • React Native: RCT-Folly fatal error - 'fmt/compile.h' file not found
                      • RCT-FOLLY - Thread-local storage is not supported for the current target
                      Trending Discussions on folly

                      QUESTION

                      RCT-Folly error when using hermes with iOS

                      Asked 2022-Mar-20 at 03:32

                      When enabling hermes in the Podfile and rebuilding the build it fails due to RCT-Folly. No idea what it does.

                      To re-initialise everything I use the following:

                      rm -rf node_modules && rm package-lock.json && npm install && cd ios && rm -rf Pods && rm Podfile.lock && pod deintegrate && pod setup && pod install && cd ..

                      I also start the metro bundler with:

                      npx react-native --reset-cache

                      Anyone has a solution?

                      The app uses react-native v0.64 and we want to have a better performance using hermes.

                      All information:

                      ios/Podfile

                      require_relative '../node_modules/react-native/scripts/react_native_pods'
                      require_relative '../node_modules/@react-native-community/cli-platform-ios/native_modules'
                      platform :ios, '10.0'
                      
                      target 'unblnd' do
                        config = use_native_modules!
                        use_react_native!(
                          :path => config[:reactNativePath],
                          :hermes_enabled => true
                        )
                      
                        permissions_path = '../node_modules/react-native-permissions/ios'
                        pod 'Permission-BluetoothPeripheral', :path => "#{permissions_path}/BluetoothPeripheral"
                        pod 'Permission-Calendars', :path => "#{permissions_path}/Calendars"
                        pod 'Permission-Camera', :path => "#{permissions_path}/Camera"
                        pod 'Permission-Contacts', :path => "#{permissions_path}/Contacts"
                        pod 'Permission-FaceID', :path => "#{permissions_path}/FaceID"
                        pod 'Permission-LocationAlways', :path => "#{permissions_path}/LocationAlways"
                        pod 'Permission-LocationWhenInUse', :path => "#{permissions_path}/LocationWhenInUse"
                        pod 'Permission-MediaLibrary', :path => "#{permissions_path}/MediaLibrary"
                        pod 'Permission-Microphone', :path => "#{permissions_path}/Microphone"
                        pod 'Permission-Motion', :path => "#{permissions_path}/Motion"
                        pod 'Permission-Notifications', :path => "#{permissions_path}/Notifications"
                        pod 'Permission-PhotoLibrary', :path => "#{permissions_path}/PhotoLibrary"
                        pod 'Permission-Reminders', :path => "#{permissions_path}/Reminders"
                        pod 'Permission-Siri', :path => "#{permissions_path}/Siri"
                        pod 'Permission-SpeechRecognition', :path => "#{permissions_path}/SpeechRecognition"
                        pod 'Permission-StoreKit', :path => "#{permissions_path}/StoreKit"
                      
                        pod 'Yoga', :path => '../node_modules/react-native/ReactCommon/yoga', :modular_headers => true
                      
                        # add the Firebase pod for Google Analytics
                        pod 'Firebase/Analytics'
                        # add pods for any other desired Firebase products
                        # https://firebase.google.com/docs/ios/setup#available-pods
                      
                      
                        target 'unblndTests' do
                          inherit! :complete
                          # Pods for testing
                        end
                        # Enables Flipper.
                        #
                        # Note that if you have use_frameworks! enabled, Flipper will not work and
                        # you should disable these next few lines.
                        # flipper_pods()
                        # post_install do |installer|
                        #  flipper_post_install(installer)
                        # end
                      end
                      

                      Terminal Output

                      In file included from /Users/adriaandebolle/htdocs/unblnd_app/ios/Pods/RCT-Folly/folly/synchronization/DistributedMutex.cpp:17: In file included from /Users/adriaandebolle/htdocs/unblnd_app/ios/Pods/Headers/Private/RCT-Folly/folly/synchronization/DistributedMutex.h:352: /Users/adriaandebolle/htdocs/unblnd_app/ios/Pods/Headers/Private/RCT-Folly/folly/synchronization/DistributedMutex-inl.h:1051:5: error: 'atomic_notify_one<unsigned long>' is unavailable
                          atomic_notify_one(state);
                          ^ /Users/adriaandebolle/htdocs/unblnd_app/ios/Pods/Headers/Private/RCT-Folly/folly/synchronization/DistributedMutex-inl.h:1573:5: note: in instantiation of function template specialization 'folly::detail::distributed_mutex::wakeTimedWaiters<std::__1::atomic<unsigned long>>' requested here
                          wakeTimedWaiters(&state_, proxy.timedWaiters_);
                          ^ In file included from /Users/adriaandebolle/htdocs/unblnd_app/ios/Pods/RCT-Folly/folly/synchronization/DistributedMutex.cpp:17: In file included from /Users/adriaandebolle/htdocs/unblnd_app/ios/Pods/Headers/Private/RCT-Folly/folly/synchronization/DistributedMutex.h:19: In file included from /Users/adriaandebolle/htdocs/unblnd_app/ios/Pods/Headers/Private/RCT-Folly/folly/Optional.h:58: In file included from /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator14.5.sdk/usr/include/c++/v1/functional:504: In file included from /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator14.5.sdk/usr/include/c++/v1/memory:681: /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator14.5.sdk/usr/include/c++/v1/atomic:2140:6: note: 'atomic_notify_one<unsigned long>' has been explicitly marked unavailable here void atomic_notify_one(atomic<_Tp>* __o) _NOEXCEPT
                           ^ 1 error generated.
                      
                      CompileC /Users/adriaandebolle/Library/Developer/Xcode/DerivedData/unblnd-cvaavakypguqqzftojmgjqbtdeij/Build/Intermediates.noindex/Pods.build/Debug-iphonesimulator/RCT-Folly.build/Objects-normal/x86_64/Demangle-3c4c6b43c285d16c32230d6f0a7a76ce5af39228ed5c3beeaf7ed7d1344f76b0.o /Users/adriaandebolle/htdocs/unblnd_app/ios/Pods/RCT-Folly/folly/detail/Demangle.cpp normal x86_64 c++ com.apple.compilers.llvm.clang.1_0.compiler (in target 'RCT-Folly' from project 'Pods')
                      
                      ...
                      
                      CompileC /Users/adriaandebolle/Library/Developer/Xcode/DerivedData/unblnd-cvaavakypguqqzftojmgjqbtdeij/Build/Intermediates.noindex/Pods.build/Debug-iphonesimulator/RCT-Folly.build/Objects-normal/x86_64/Cursor.o /Users/adriaandebolle/htdocs/unblnd_app/ios/Pods/RCT-Folly/folly/io/Cursor.cpp normal x86_64 c++ com.apple.compilers.llvm.clang.1_0.compiler (in target 'RCT-Folly' from project 'Pods')
                          cd /Users/adriaandebolle/htdocs/unblnd_app/ios/Pods
                          export LANG\=en_US.US-ASCII
                          /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/
                      
                      ...
                      
                      ** BUILD FAILED **
                      
                      
                      The following build commands failed:    CompileC /Users/adriaandebolle/Library/Developer/Xcode/DerivedData/unblnd-cvaavakypguqqzftojmgjqbtdeij/Build/Intermediates.noindex/Pods.build/Debug-iphonesimulator/RCT-Folly.build/Objects-normal/x86_64/DistributedMutex.o /Users/adriaandebolle/htdocs/unblnd_app/ios/Pods/RCT-Folly/folly/synchronization/DistributedMutex.cpp normal x86_64 c++ com.apple.compilers.llvm.clang.1_0.compiler (1 failure)
                      

                      npx react-native info

                      System:
                          OS: macOS 11.4
                          CPU: (8) x64 Intel(R) Core(TM) i7-1068NG7 CPU @ 2.30GHz
                          Memory: 1.05 GB / 16.00 GB
                          Shell: 5.8 - /bin/zsh
                        Binaries:
                          Node: 14.17.0 - /usr/local/bin/node
                          Yarn: Not Found
                          npm: 6.14.13 - ~/htdocs/unblnd_app/node_modules/.bin/npm
                          Watchman: 4.9.0 - /usr/local/bin/watchman
                        Managers:
                          CocoaPods: 1.10.1 - /usr/local/bin/pod
                        SDKs:
                          iOS SDK:
                            Platforms: iOS 14.5, DriverKit 20.4, macOS 11.3, tvOS 14.5, watchOS 7.4
                          Android SDK:
                            API Levels: 28, 29
                            Build Tools: 28.0.3, 29.0.2, 29.0.3, 30.0.2
                            System Images: android-29 | Intel x86 Atom_64, android-29 | Google APIs Intel x86 Atom
                            Android NDK: Not Found
                        IDEs:
                          Android Studio: 4.2 AI-202.7660.26.42.7351085
                          Xcode: 12.5.1/12E507 - /usr/bin/xcodebuild
                        Languages:
                          Java: 1.8.0_265 - /usr/bin/javac
                        npmPackages:
                          @react-native-community/cli: Not Found
                          react: 17.0.1 => 17.0.1 
                          react-native: 0.64.2 => 0.64.2 
                          react-native-macos: Not Found
                        npmGlobalPackages:
                          *react-native*: Not Found
                      

                      ANSWER

                      Answered 2021-Jul-23 at 16:11

                      After lots of trial and error I found a working solution. It's a bit strange, but I had to enable Flipper. I did not find a way without it.

                      Thanks to this answer: https://github.com/facebook/react-native/issues/31179#issuecomment-831932941 I found out about fixing Pods.

                      This is my Podfile now:

                        ...
                      
                        # Enables Flipper.
                        #
                        # Note that if you have use_frameworks! enabled, Flipper will not work and
                        # you should disable these next few lines.
                        use_flipper!({ 'Flipper' => '0.87' })
                        post_install do |installer|
                          flipper_post_install(installer)
                      
                          find_and_replace("Pods/Headers/Private/RCT-Folly/folly/synchronization/DistributedMutex-inl.h",
                          "atomic_notify_one(state)", "folly::atomic_notify_one(state)")
                      
                          find_and_replace("Pods/Flipper-Folly/folly/synchronization/DistributedMutex-inl.h",
                          "atomic_wait_until(&state, previous | data, deadline)", "folly::atomic_wait_until(&state, previous | data, deadline)")
                        end
                      
                        ...
                      

                      Source https://stackoverflow.com/questions/68497865

                      Community Discussions, Code Snippets contain sources that include Stack Exchange Network

                      Vulnerabilities

                      Improper handling of close_notify alerts can result in an out-of-bounds read in AsyncSSLSocket. This issue affects folly prior to v2019.11.04.00.
                      folly::secureRandom will re-use a buffer between parent and child processes when fork() is called. That will result in multiple forked children producing repeat (or similar) results. This affects HHVM 3.26 prior to 3.26.3 and the folly library between v2017.12.11.00 and v2018.08.09.00.

                      Install folly

                      You can download it from GitHub.
                      You can use folly like any standard Java library. Please include the the jar files in your classpath. You can also use any IDE and you can run and debug the folly component as you would do with any other Java program. Best practice is to use a build tool that supports dependency management such as Maven or Gradle. For Maven installation, please refer maven.apache.org. For Gradle installation, please refer gradle.org .

                      Support

                      For any new features, suggestions and bugs create an issue on GitHub. If you have any questions check and ask questions on community page Stack Overflow .

                      DOWNLOAD this Library from

                      Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from
                      over 430 million Knowledge Items
                      Find more libraries
                      Reuse Solution Kits and Libraries Curated by Popular Use Cases
                      Explore Kits

                      Save this library and start creating your kit

                      Explore Related Topics

                      Share this Page

                      share link
                      Consider Popular Learning Libraries
                      Try Top Libraries by evancharlton
                      Compare Learning Libraries with Highest Support
                      Compare Learning Libraries with Highest Quality
                      Compare Learning Libraries with Highest Security
                      Compare Learning Libraries with Permissive License
                      Compare Learning Libraries with Highest Reuse
                      Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from
                      over 430 million Knowledge Items
                      Find more libraries
                      Reuse Solution Kits and Libraries Curated by Popular Use Cases
                      Explore Kits

                      Save this library and start creating your kit

                      • © 2022 Open Weaver Inc.