react-native-compressor icon indicating copy to clipboard operation
react-native-compressor copied to clipboard

iOS Xcode build error after manual installation

Open realfelixyu opened this issue 3 years ago • 10 comments

Current behavior

After doing the iOS manual setup(I'm on bare workflow btw, just ejected expo), running in xcode gives following build error:

error opening input file '/Users/......../node_modules/react-native-compressor/ios/Video/Compressor-Bridging-Header.h' (No such file or directory)

It looks like the react-native-compressor/ios/Video/ directory doesn't have Compressor-bridging-Header.h So I copied Compressor-bridging-Header.h from react-native-compressor/ios/ to Video directory. then I get

/Users/.........../node_modules/react-native-compressor/ios/Video/Compressor-Bridging-Header.h:4:9: 'React/RCTBridgeModule.h' file not found

and

failed to emit precompiled header '/Users/........../Library/Developer/Xcode/DerivedData/.............../PrecompiledHeaders/Compressor-Bridging-Header-swift_2FUMZMGWGJN5S-clang_1UF3F5AFOI7VT.pch' for bridging header '/Users/.................node_modules/react-native-compressor/ios/Video/Compressor-Bridging-Header.h'

Expected behavior

Able to run on simulator without having build errors

Platform

  • [X] iOS

React Native Version

0.63

React Native Compressor Version

0.5.11

Reproducible Steps And Demo

Yarn add the library and go through steps 1-4 of iOS manual installation.

realfelixyu avatar Jan 03 '22 06:01 realfelixyu

@realfelixyu can you add minimal repro through the GitHub repo? because it was working on my side.

numandev1 avatar Jan 03 '22 07:01 numandev1

I think it is already fixed. feel free to reopen if you see this problem again. thanks.

numandev1 avatar Jan 28 '22 21:01 numandev1

No i'm getting this too

jaexplorer avatar Feb 03 '22 23:02 jaexplorer

@jaexplorer @realfelixyu can you make reproducible example because it is not reproducing on my side.

numandev1 avatar Feb 06 '22 12:02 numandev1

I believe it has to do with having XCode 13. Can you confirm?

jaexplorer avatar Feb 06 '22 12:02 jaexplorer

@jaexplorer I am using 13.2 version of xcode but not getting this issue. everything is working good on my side

numandev1 avatar Feb 07 '22 05:02 numandev1

@nomi9995 Okay well, I cannot install it manually, or automatically (as per other issues posted aswell). I cannot produce a reproducable scenario for you. But I see others experiencing the same issue. I don't know the cause.

jaexplorer avatar Feb 07 '22 06:02 jaexplorer

On version 0.63.2 btw react native

jaexplorer avatar Feb 07 '22 06:02 jaexplorer

@jaexplorer can you try this error

yarn add react-native-compressor@rnlessthan65

numandev1 avatar Feb 07 '22 07:02 numandev1

@jaexplorer any update?

numandev1 avatar Feb 14 '22 17:02 numandev1

@numandev1 I am having the same problem and just opened a fresh issue with all my details, https://github.com/Shobbak/react-native-compressor/issues/144

Thanks

DanC5 avatar Jan 23 '23 14:01 DanC5

fixed in the latest version, please feel free to reopen if you get this issue again

numandev1 avatar Sep 14 '23 22:09 numandev1