react-native-twilio-video-webrtc icon indicating copy to clipboard operation
react-native-twilio-video-webrtc copied to clipboard

file is universal (x86_64,i386) but does not contain the arm64 architecture

Open jonasgroendahl opened this issue 3 years ago • 2 comments

Steps to reproduce

  1. Attempt to build project on fresh mac M1
  2. Build fails

Expected behaviour

Expected build to be succesful. It works fine on my old mac :)

Actual behaviour

I'm getting this error:

ld: warning: ignoring file /Users/dkJoGrPe/Library/Developer/Xcode/DerivedData/tententen-cmwtpdnmzrwlgqfpybwmasrswwyb/Build/Products/Debug-iphonesimulator/XCFrameworkIntermediates/TwilioVideo/TwilioVideo.framework/TwilioVideo, file is universal (x86_64,i386) but does not contain the arm64 architecture: /Users/dkJoGrPe/Library/Developer/Xcode/DerivedData/tententen-cmwtpdnmzrwlgqfpybwmasrswwyb/Build/Products/Debug-iphonesimulator/XCFrameworkIntermediates/TwilioVideo/TwilioVideo.framework/TwilioVideo
ld: warning: Could not find or use auto-linked library 'swiftDarwin'
ld: warning: Could not find or use auto-linked library 'swiftCoreGraphics'
ld: warning: Could not find or use auto-linked library 'swiftDispatch'
ld: warning: Could not find or use auto-linked library 'swiftObjectiveC'
ld: warning: Could not find or use auto-linked library 'swiftAVFoundation'
ld: warning: Could not find or use auto-linked library 'swiftCoreMedia'
ld: warning: Could not find or use auto-linked library 'swiftQuartzCore'
ld: warning: Could not find or use auto-linked library 'swiftCore'
ld: warning: Could not find or use auto-linked library 'swiftCoreFoundation'
ld: warning: Could not find or use auto-linked library 'swiftsimd'
ld: warning: Could not find or use auto-linked library 'swiftFoundation'
ld: warning: Could not find or use auto-linked library 'swiftMetal'
ld: warning: Could not find or use auto-linked library 'swiftSwiftOnoneSupport'
ld: warning: Could not find or use auto-linked library 'swiftCoreImage'
ld: warning: Could not find or use auto-linked library 'swiftCoreAudio'
ld: warning: Could not find or use auto-linked library 'swiftUIKit'

Environment

  • Node.js version: 16
  • React Native version: 0.63.3
  • React Native platform + platform version: iOS simulator, iOS deloyment target 11

react-native-twilio-video-webrtc

master

jonasgroendahl avatar Mar 25 '22 06:03 jonasgroendahl

This should have been fixed with the upgrade to 4.6 (in October). Can you verify which version of the twilio library you're pulling down?

slycoder avatar Mar 25 '22 23:03 slycoder

I got this working by excluding the arm64 architecture in for all Pods and the project itself. I also had to include a script in the Podfile to ensure it happened 🙂

jonasgroendahl avatar Mar 26 '22 10:03 jonasgroendahl