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

Can't compile

Open juanctecdam opened this issue 5 years ago • 1 comments
trafficstars

Hi all,

I'm trying to compile an app with the RN Zendesk library but I get around 45 errors(most of them mentioning Swift) when building the application. Any idea on what can be possibly going wrong?

Thanks

juanctecdam avatar Feb 11 '20 21:02 juanctecdam

Hey.

if you have errors like this: ld: warning: Could not find auto-linked library 'swiftFoundation' ld: warning: Could not find auto-linked library 'swiftDarwin' ld: warning: Could not find auto-linked library 'swiftCoreFoundation' ld: warning: Could not find auto-linked library 'swiftCore' ld: warning: Could not find auto-linked library 'swiftCoreGraphics' ld: warning: Could not find auto-linked library 'swiftObjectiveC' ld: warning: Could not find auto-linked library 'swiftDispatch' ld: warning: Could not find auto-linked library 'swiftSwiftOnoneSupport' ....

the solution is this:

  1. Open ios/YourAppName.xcodeproj in Xcode
  2. Right-click on Your App Name in the Project Navigator on the left, and click New File…
  3. Create a single empty Swift file to the project (make sure that Your App Name target is selected when adding)
  4. when Xcode asks, press Create Bridging Header and do not remove Swift file then. re-run your build.

MariusCatanoiu avatar Feb 21 '20 13:02 MariusCatanoiu