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

RN 0.66.4 , react-native-alipay 4.0.2 , iOS 模拟器编译报错。Undefined symbols for architecture x86_64......

Open iscodeok opened this issue 4 years ago • 14 comments

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

iscodeok avatar Jan 10 '22 02:01 iscodeok

@iscodeok 这个问题只能排查,我也不知道什么问题。:(

jaywcjlove avatar Jan 10 '22 02:01 jaywcjlove

@jaywcjlove 好,谢谢

iscodeok avatar Jan 10 '22 03:01 iscodeok

@iscodeok 有解决了吗? 我也碰到了。。。 xcode12.1

qilovehua avatar Jan 13 '22 08:01 qilovehua

需要在 Podfile 里手动集成一下 pod 'UTDID' 就好了

qilovehua avatar Jan 13 '22 08:01 qilovehua

@qilovehua react-native-alipay 4.0.2我暂时降级用 react-native-alipay 3.0.0 没有问题

iscodeok avatar Jan 15 '22 09:01 iscodeok

pod 'UTDID'

Podfile里加pod 'UTDID' 就可以了哦,我的已经正常了

qilovehua avatar Jan 15 '22 10:01 qilovehua

@qilovehua 我加过 pod 'UTDID' 老样子,可能RN版本太高。

iscodeok avatar Jan 18 '22 14:01 iscodeok

@iscodeok 我的就是0.66.4哦,gradle version用的6.8.1,不能用7以上的

qilovehua avatar Jan 18 '22 14:01 qilovehua

@qilovehua 好,有空再试看,目前支付宝旧的SDK没有弃用 3.0.0 也是可以用。

iscodeok avatar Jan 18 '22 14:01 iscodeok

@iscodeok 我的就是0.66.4哦,gradle version用的6.8.1,不能用7以上的

pod 'UTDID' 这句话直接加上吗 那个位置?

yxf007 avatar Jan 20 '22 08:01 yxf007

@yxf007 ios/Podfile

platform :ios, '11.0'
target '***app' do
  config = use_native_modules!

  use_react_native!(
    :path => config[:reactNativePath],
    # to enable hermes on iOS, change `false` to `true` and then install pods
    :hermes_enabled => false
  )
  
  pod 'UTDID'
  ...
end

qilovehua avatar Jan 20 '22 08:01 qilovehua

@yxf007 ios/Podfile

platform :ios, '11.0'
target '***app' do
  config = use_native_modules!

  use_react_native!(
    :path => config[:reactNativePath],
    # to enable hermes on iOS, change `false` to `true` and then install pods
    :hermes_enabled => false
  )
  
  pod 'UTDID'
  ...
end

十分感谢! gradle我用的6.9也报错了 换成6.8.1 可以了

yxf007 avatar Jan 20 '22 09:01 yxf007

@qilovehua 我加过 pod 'UTDID' 老样子,可能RN版本太高。

加 pod 'UTDID' 以后你重新 pod install 了吗

junyongNie avatar Feb 12 '22 18:02 junyongNie

@qilovehua 我加过 pod 'UTDID' 老样子,可能RN版本太高。

加 pod 'UTDID' 以后你重新 pod install 了吗

需要的

qilovehua avatar Feb 14 '22 00:02 qilovehua