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

xCode build failing after linking with binaries

Open adunn511 opened this issue 7 years ago • 5 comments

xCode build fails with no indication of why after I add libRNMail.a to the Link Binary With Libraries section of Build Phases, anyone seen this before?

adunn511 avatar Mar 12 '18 14:03 adunn511

has to do with not being able to find my RCTBridgeModule.h file, but it's there... anything I am missing besides what's in the Read.me

adunn511 avatar Mar 13 '18 13:03 adunn511

@adunn511 You need to do one thing which is not written in the documentation.

Go to Product->Scheme->Edit Scheme->Build, add RNMail into the Targets list. Make sure RNMail is after React and before your project's target (this is very important). This scheme list determines in what order XCode build your libraries. By putting RNMail between React and your project's target, you are telling XCode to build React first, then your RNMail, then your project.

haojiezhang avatar Jun 14 '18 18:06 haojiezhang

@adunn511 You need to do one thing which is not written in the documentation.

Go to Product->Scheme->Edit Scheme->Build, add RNMail into the Targets list. Make sure RNMail is after React and before your project's target (this is very important). This scheme list determines in what order XCode build your libraries. By putting RNMail between React and your project's target, you are telling XCode to build React first, then your RNMail, then your project.

Your solution gives an error - Invalid bitcode signature, linker command failed with exit code 1. Are there any other ideas?

Elgon2408 avatar Sep 29 '18 05:09 Elgon2408

still cant find 'React/RCTBridgeModule.h'

chishing96 avatar Oct 28 '21 08:10 chishing96

still cant find 'React/RCTBridgeModule.h'

Are you decided this problem?

dimaokk avatar Aug 18 '23 06:08 dimaokk