ios - 体系结构 x86_64 的 undefined symbol : "_OBJC_CLASS_$_RCTImageLoader"

标签 ios xcode react-native

经过大量测试,我的应用无法在 iOS 上运行。

我有这个错误:

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

我使用:

react: 16.12.0
react-native: 0.60.6

最佳答案

嘿,我从另一个来源找到了解决办法 here 我必须添加另一个名为“RNCMaskedView”的框架以及“RNSScreen”

pre_install do |installer|
 installer.pod_targets.each do |pod|
   if pod.name.eql?('RNScreens') || pod.name.eql?('RNCMaskedView')
     def pod.build_type
       Pod::BuildType.static_library
     end
   end
  end
end

相反,您可以尝试添加“RCTImageLoader”,并在其他框架抛出错误时跟进其他框架

只需在pod文件底部添加代码即可 保存 打开终端,转到项目中的 ios 文件夹并运行“pod install”

然后回到 Xcode ,清除你的构建 cmd + shift + k 给出构建

应该可以正常工作

关于ios - 体系结构 x86_64 的 undefined symbol : "_OBJC_CLASS_$_RCTImageLoader",我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/59765827/

相关文章:

ios - 在 Adob​​e AIR 中将特定影片剪辑写入位图

ios - ios7中的手势不起作用

xcode - Swift 2.0 CLLocationManager 启动更新位置

xcode - Mac 应用程序因使用我未使用的沙盒授权而被拒绝

react-native - React Native将状态中的数组值用作Picker项目

ios - 如何使用导航 Controller 调用 View Controller

ios - 如何从 Swift 中的后台线程从 CoreData 中获取未保存的数据?

iphone - ALAssetsLibrary 获取视频路径稍后播放

react-native - 更改所选标签栏项目的底部边框颜色

reactjs - 如何对react-native-svg多边形元素进行动画处理?