Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
iscodeok opened this issue Jan 10, 2022 · 14 comments

Comments

@iscodeok
Copy link

iscodeok commented Jan 10, 2022

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)
@jaywcjlove
Copy link
Member

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

@iscodeok
Copy link
Author

@jaywcjlove 好,谢谢

@qilovehua
Copy link

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

@qilovehua
Copy link

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

@iscodeok
Copy link
Author

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

@qilovehua
Copy link

pod 'UTDID'

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

@iscodeok
Copy link
Author

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

@qilovehua
Copy link

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

@iscodeok
Copy link
Author

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

@yxf007
Copy link

yxf007 commented Jan 20, 2022

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

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

@qilovehua
Copy link

@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

@yxf007
Copy link

yxf007 commented Jan 20, 2022

@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 可以了

@junyongNie
Copy link

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

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

@qilovehua
Copy link

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

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

需要的

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants