githuboftigran / rn-range-slider

A native slider with range
MIT License
237 stars 133 forks source link

no such file or directory: 'libRNRangeSlider.a' #6

Closed erdemildiz closed 5 years ago

erdemildiz commented 5 years ago

I am getting this error to build for archive. I tried everything, but ı couldn't find any solition.

no such file or directory: '/Users/erdemildiz/Library/Developer/Xcode/DerivedData/fixbilet-ciqtvxssenduvsewflchltgqhclh/Build/Intermediates.noindex/ArchiveIntermediates/fixbilet/BuildProductsPath/Release-iphoneos/libRNRangeSlider.a'

githuboftigran commented 5 years ago

@erdemildiz Did you run react-native link rn-range-slider ?

ghost commented 5 years ago

I'm have same issue, when release app. buid fail, debug version is normal

ghost commented 5 years ago

clang: error: no such file or directory: '/Users/huynhdung/Library/Developer/Xcode/DerivedData/FelixPro-cwvyxzrdwkbtwgebcudzmwwwxgua/Build/Intermediates.noindex/ArchiveIntermediates/FelixPro/BuildProductsPath/Release-iphoneos/libRNRangeSlider.a'

ghost commented 5 years ago

image

mayankgarg056 commented 5 years ago

I am facing same problem, Please resolve this

githuboftigran commented 5 years ago

image

I found the answer in stackoverflow: https://stackoverflow.com/questions/14947139/xcodebuild-failure-clangerror-no-such-file-or-directory

This worked for me.

This question may also be useful if you get an error like: 'React/RCTBridgeModule.h' file not found

https://stackoverflow.com/questions/41663002/react-rctbridgemodule-h-file-not-found

christopherdcunha commented 5 years ago

FYI @erdemildiz @devswift2017 @mayankgarg056 - PR #9 should fix your bug, but you can use this work around if it doesn't get merged:

Update package.json such that:

{
...
  "postinstall": "... && sed -i.bak -e 's/IPHONEOS_DEPLOYMENT_TARGET = 12.1;/IPHONEOS_DEPLOYMENT_TARGET = 9.0;/g' ./node_modules/rn-range-slider/ios/RNRangeSlider.xcodeproj/project.pbxproj",
...
}

Once this is done, you can run yarn or npm install and the IPHONEOS_DEPLOYMENT_TARGET will be patched to 9.0

ghost commented 5 years ago

@christopherdcunha thanks so much

githuboftigran commented 5 years ago

@christopherdcunha , merged. Thanks for helping!