Pushwoosh / pushwoosh-react-native-plugin

Other
57 stars 43 forks source link

iOS Build: Undefined symbols for architecture x86_64 #89

Closed mlnchk closed 4 years ago

mlnchk commented 4 years ago

When i try to build iOS i had following issue:

Undefined symbols for architecture x86_64:
  "_OBJC_CLASS_$_UIWindowScene", referenced from:
      objc-class-ref in libPushwooshPlugin.a(libPushwoosh.a-x86_64-master.o)
ld: symbol(s) not found for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)

"pushwoosh-react-native-plugin": "^5.19.3" "react-native": "0.59.10" No CocoaPods, only react-native link

wfhm commented 4 years ago

Hi @mlnchk,

Could you please specify the version of Xcode you are using at the moment?

mlnchk commented 4 years ago

Xcode Version 10.2.1 (10E1001)

wfhm commented 4 years ago

@mlnchk

May I ask you to update the version of Xcode to the latest available and try to build your project again?

mlnchk commented 4 years ago

Oh, that works. 2 killed days and so simple solution. Thank you!

May you explain, why this is happen?

wfhm commented 4 years ago

@mlnchk Sure. UIWindowScene class was initially added in iOS 13, which is shipped with Xcode 11.