Skip to content
This repository has been archived by the owner on Oct 7, 2021. It is now read-only.

Thread-local storage is not supported for the current target even though deployment target is 10.0 #148

Closed
louuysison opened this issue Apr 7, 2020 · 5 comments
Assignees
Labels
question Further information is requested

Comments

@louuysison
Copy link

louuysison commented Apr 7, 2020

Description
Thread-local storage is not supported for the current target even though deployment target is 10.0

Expected behavior
Should not be getting this error if deployment target is >9.3

Current behavior
Thread-local storage is not supported for the current target

Screenshots
If applicable, add screenshots to help explain your problem.
Screen Shot 2020-04-07 at 11 27 55 PM

Logs
Post logs here or paste them to Ghostbin and insert the link here.

Environment

  • React Native Environment Info
    "react-native": "0.61.5"

Other

platform :ios, '10.0'
require_relative '../node_modules/@react-native-community/cli-platform-ios/native_modules'

target 'project_mobile' do
  # Pods for project_mobile
  pod 'FBLazyVector', :path => "../node_modules/react-native/Libraries/FBLazyVector"
  pod 'FBReactNativeSpec', :path => "../node_modules/react-native/Libraries/FBReactNativeSpec"
  pod 'RCTRequired', :path => "../node_modules/react-native/Libraries/RCTRequired"
  pod 'RCTTypeSafety', :path => "../node_modules/react-native/Libraries/TypeSafety"
  pod 'React', :path => '../node_modules/react-native/'
  pod 'React-Core', :path => '../node_modules/react-native/'
  pod 'React-CoreModules', :path => '../node_modules/react-native/React/CoreModules'
  pod 'React-Core/DevSupport', :path => '../node_modules/react-native/'
  pod 'React-RCTActionSheet', :path => '../node_modules/react-native/Libraries/ActionSheetIOS'
  pod 'React-RCTAnimation', :path => '../node_modules/react-native/Libraries/NativeAnimation'
  pod 'React-RCTBlob', :path => '../node_modules/react-native/Libraries/Blob'
  pod 'React-RCTImage', :path => '../node_modules/react-native/Libraries/Image'
  pod 'React-RCTLinking', :path => '../node_modules/react-native/Libraries/LinkingIOS'
  pod 'React-RCTNetwork', :path => '../node_modules/react-native/Libraries/Network'
  pod 'React-RCTSettings', :path => '../node_modules/react-native/Libraries/Settings'
  pod 'React-RCTText', :path => '../node_modules/react-native/Libraries/Text'
  pod 'React-RCTVibration', :path => '../node_modules/react-native/Libraries/Vibration'
  pod 'React-Core/RCTWebSocket', :path => '../node_modules/react-native/'

  pod 'React-cxxreact', :path => '../node_modules/react-native/ReactCommon/cxxreact'
  pod 'React-jsi', :path => '../node_modules/react-native/ReactCommon/jsi'
  pod 'React-jsiexecutor', :path => '../node_modules/react-native/ReactCommon/jsiexecutor'
  pod 'React-jsinspector', :path => '../node_modules/react-native/ReactCommon/jsinspector'
  pod 'ReactCommon/jscallinvoker', :path => "../node_modules/react-native/ReactCommon"
  pod 'ReactCommon/turbomodule/core', :path => "../node_modules/react-native/ReactCommon"
  pod 'Yoga', :path => '../node_modules/react-native/ReactCommon/yoga'

  pod 'DoubleConversion', :podspec => '../node_modules/react-native/third-party-podspecs/DoubleConversion.podspec'
  pod 'glog', :podspec => '../node_modules/react-native/third-party-podspecs/glog.podspec'
  pod 'Folly', :podspec => '../node_modules/react-native/third-party-podspecs/Folly.podspec'

  pod 'RNGestureHandler', :path => '../node_modules/react-native-gesture-handler'

  pod 'RNReanimated', :path => '../node_modules/react-native-reanimated'

  pod 'RNVectorIcons', :path => '../node_modules/react-native-vector-icons'

  permissions_path = '../node_modules/react-native-permissions/ios'

  pod 'Permission-Camera', :path => "#{permissions_path}/Camera.podspec"
  pod 'Permission-Microphone', :path => "#{permissions_path}/Microphone.podspec"
  pod 'Permission-MediaLibrary', :path => "#{permissions_path}/MediaLibrary.podspec"
  pod 'Permission-PhotoLibrary', :path => "#{permissions_path}/PhotoLibrary.podspec"

  pod 'react-native-heic-converter', :path => '../node_modules/react-native-heic-converter'

  pod 'react-native-ffmpeg/https-lts', :podspec => '../node_modules/react-native-ffmpeg/react-native-ffmpeg.podspec'

  target 'project_mobileTests' do
    inherit! :search_paths
    # Pods for testing
  end

  use_native_modules!
end

#target 'project_mobile-tvOS' do
#  # Pods for project_mobile-tvOS
#
#  target 'project_mobile-tvOSTests' do
#    inherit! :search_paths
#    # Pods for testing
#  end
#
#end
@tanersener
Copy link
Owner

tanersener commented Apr 7, 2020

platform :ios, '10.0'

Deployment target given in Podfile is not always used in generated .xcodeproj and .xcworkspace files. Can you manually check that all targets have a target >= 10 from Xcode ?

@tanersener tanersener self-assigned this Apr 7, 2020
@tanersener tanersener added the question Further information is requested label Apr 7, 2020
@louuysison
Copy link
Author

Thanks @tanersener. It seems I have to change all deployment targets for all pod projects also to make it work. I searched for a podfile post install script to upgrade all deployment targets.

@Ashoat
Copy link

Ashoat commented May 18, 2020

I randomly started seeing this issue recently. Not sure what caused it, but I found this on StackOverflow worked.

Ashoat added a commit to CommE2E/comm that referenced this issue May 19, 2020
Not sure what broke it, but this was the issue: tanersener/react-native-ffmpeg#148
@enigmablue
Copy link

Solved by simply updating the pod target of react-native-ffmpeg to the same as my podfile. Some how none of my other pods have the same issue.

image

@Ashoat
Copy link

Ashoat commented May 26, 2020

@enigmablue, only downside of your solution is that it will be wiped clean next time you regenerate your Pods folder. To make it permanent, you can either use the StackOverflow solution I linked above, or you can patch react-native-ffmpeg's podspec to specify this deployment target:

diff --git a/node_modules/react-native-ffmpeg/react-native-ffmpeg.podspec b/node_modules/react-native-ffmpeg/react-native-ffmpeg.podspec
index c192064..8561ac2 100644
--- a/node_modules/react-native-ffmpeg/react-native-ffmpeg.podspec
+++ b/node_modules/react-native-ffmpeg/react-native-ffmpeg.podspec
@@ -10,7 +10,7 @@ Pod::Spec.new do |s|

     s.platform          = :ios
     s.requires_arc      = true
-    s.ios.deployment_target = '9.3'
+    s.ios.deployment_target = '10.0'
     s.static_framework  = true

     s.source            = { :git => 'https://github.com/tanersener/react-native-ffmpeg.git', :tag => 'v0.4.4'}

I too am unsure why this issue occurs only for react-native-ffmpeg. I'm using other dependencies that compile fine with a lower iOS Deployment Target. Removing the s.ios.deployment_target line from react-native-ffmpeg's Podspec file doesn't seem to help.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

4 participants