Warning: file_get_contents(/data/phpspider/zhask/data//catemap/8/swift/19.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
反应本机iOS Swift错误:无法生成Objective-C模块';反应';_Ios_Swift_React Native - Fatal编程技术网

反应本机iOS Swift错误:无法生成Objective-C模块';反应';

反应本机iOS Swift错误:无法生成Objective-C模块';反应';,ios,swift,react-native,Ios,Swift,React Native,遵循链接中的步骤无助于将react native集成到现有项目中 链接: 配置 Mac OS X - 10.15.6 (19G2021) XCode - 12.1 (12A7403) React Native Cli - 2.0.1 React Native - 0.63.4 { "name": "MyReactNativeApp", "version": "0.0.1", "private

遵循链接中的步骤无助于将react native集成到现有项目中

链接:

配置

Mac OS X - 10.15.6 (19G2021)
XCode - 12.1 (12A7403)
React Native Cli - 2.0.1
React Native - 0.63.4
{
  "name": "MyReactNativeApp",
  "version": "0.0.1",
  "private": true,
  "scripts": {
    "start": "yarn react-native start"
  }
  "dependencies": {
    "react-native": "^0.63.4"
  }
}
package.json

Mac OS X - 10.15.6 (19G2021)
XCode - 12.1 (12A7403)
React Native Cli - 2.0.1
React Native - 0.63.4
{
  "name": "MyReactNativeApp",
  "version": "0.0.1",
  "private": true,
  "scripts": {
    "start": "yarn react-native start"
  }
  "dependencies": {
    "react-native": "^0.63.4"
  }
}
Podfile

source 'https://github.com/CocoaPods/Specs.git'

# Required for Swift apps
platform :ios, '11.0'
use_frameworks!

# The target name is most likely the name of your project.
target 'MyReactNativeApp' do
  
  # Your 'node_modules' directory is probably in the root of your project,
  # but if not, adjust the `:path` accordingly
  pod 'React'
  
end
当我运行pod安装时。我给你一个警告

[!] React has been deprecated

ChatarVer:MyReactNativeApp chatar.veer$ pod install
Analyzing dependencies
Downloading dependencies
Installing React (0.11.0)
Generating Pods project
Integrating client project
Pod installation complete! There is 1 dependency from the Podfile and 1 total pod installed.

[!] React has been deprecated
ChatarVer:MyReactNativeApp chatar.veer$ 
当我需要导入React时,它给出2个错误

Could not build Objective-C module 'React' - where I import React
'Layout.h' file not found - in RCTConvert.h
屏幕截图:

我确实将“允许非模块化包含在框架模块中”更改为“是”,但它不起作用

我注意到提到的任何文档都不顺利&存在很多问题