react-airplay icon indicating copy to clipboard operation
react-airplay copied to clipboard

Error while run application - __swift_FORCE_LOAD

Open gmunumel opened this issue 4 years ago • 1 comments

Hello Tien,

I tried to run the library and got a very weird and long message in my terminal after I did yarn run ios. Then I tried to build the app in XCode and I got:

Showing Recent Errors Only
Undefined symbol: __swift_FORCE_LOAD_$_swiftUniformTypeIdentifiers
Undefined symbol: __swift_FORCE_LOAD_$_swiftCoreMIDI
Undefined symbol: __swift_FORCE_LOAD_$_swiftWebKit

I'm using an emulator for iOS but it shouldn't crash.

Version:

System:
    OS: macOS 11.5.2
    CPU: (4) x64 Intel(R) Core(TM) i5-5287U CPU @ 2.90GHz
    Memory: 182.28 MB / 8.00 GB
    Shell: 5.8 - /bin/zsh
  Binaries:
    Node: 16.4.0 - /usr/local/bin/node
    Yarn: 1.22.10 - /usr/local/bin/yarn
    npm: 7.18.1 - /usr/local/bin/npm
    Watchman: 2021.06.07.00 - /usr/local/bin/watchman
  Managers:
    CocoaPods: 1.10.2 - /usr/local/bin/pod
  SDKs:
    iOS SDK:
      Platforms: iOS 14.5, DriverKit 20.4, macOS 11.3, tvOS 14.5, watchOS 7.4
    Android SDK: Not Found
  IDEs:
    Android Studio: Not Found
    Xcode: 12.5.1/12E507 - /usr/bin/xcodebuild
  Languages:
    Java: 1.8.0_292 - /usr/bin/javac
  npmPackages:
    @react-native-community/cli: Not Found
    react: 17.0.2 => 17.0.2
    react-native: 0.65.1 => 0.65.1
    react-native-macos: Not Found
  npmGlobalPackages:
    *react-native*: Not Found

iOS-emulator: iPhone12 - IOS 14.5

gmunumel avatar Sep 10 '21 10:09 gmunumel

Can you try creating an empty swift file in XCode, and when it prompts u to create a bridging header, hit accept? This is due to the project using Swift instead of just Objc

tien avatar Oct 12 '21 22:10 tien