Ios 如何在React Native 0.60.0和React Native carplay之间进行配置?
如何在React Native 0.60.0和React Native carplay之间进行配置 我遵循的示例来自,但我在Xcode上收到错误。我认为这是新版本更改的错误。Ios 如何在React Native 0.60.0和React Native carplay之间进行配置?,ios,xcode,react-native,carplay,Ios,Xcode,React Native,Carplay,如何在React Native 0.60.0和React Native carplay之间进行配置 我遵循的示例来自,但我在Xcode上收到错误。我认为这是新版本更改的错误。 我想使用当前版本。有人能帮我吗 在AppDelegate.m上添加#导入#导入 错误=>'RNCarPlay.h'文件未找到 在@end之前添加方法 (无效)应用程序:(UIApplication*)应用程序DIDConnectCAInterfaceController:(CPInterfaceController*)接
我想使用当前版本。有人能帮我吗 在AppDelegate.m上添加
#导入#导入
错误=>'RNCarPlay.h'文件未找到 在@end之前添加方法
(无效)应用程序:(UIApplication*)应用程序DIDConnectCAInterfaceController:(CPInterfaceController*)接口控制器到Windows:(CPWindow*)窗口{ [RNCarPlay connectWithInterfaceController:interfaceController窗口:窗口]; }
(void)应用程序:(非空UIApplication*)应用程序DIDDDISCONNECTCARInterfaceController:(非空CPInterfaceController*)接口控制器FROM窗口:(非空CPWindow*)窗口{ [RNCarPlay断开]; }
import { CarPlay, GridTemplate } from 'react-native-carplay';
const template = new GridTemplate({ /* .. */ });
CarPlay.setRootTemplate(template, false);
所以我发现了一些东西。。。 文档中没有描述某些步骤 在XCode中的项目导航器中,右键单击库➜ 将文件添加到[项目名称] 转到节点_模块➜ 反应本机carply并添加SplashScreen.xcodeproj 在XCode中的项目导航器中,选择您的项目。将libSplashScreen.a添加到项目的构建阶段➜ 将二进制文件链接到库 若要修复找不到“RNSplashScreen.h”文件,必须选择项目→ 生成设置→ 搜索路径→ 要添加的标题搜索路径: $(SRCROOT)/../node\u模块/react-native-carplay/ios
更改后,错误被解决。因此我发现了一些问题。。。 文档中没有描述某些步骤 在XCode中的项目导航器中,右键单击库➜ 将文件添加到[项目名称] 转到节点_模块➜ 反应本机carply并添加SplashScreen.xcodeproj 在XCode中的项目导航器中,选择您的项目。将libSplashScreen.a添加到项目的构建阶段➜ 将二进制文件链接到库 若要修复找不到“RNSplashScreen.h”文件,必须选择项目→ 生成设置→ 搜索路径→ 要添加的标题搜索路径: $(SRCROOT)/../node\u模块/react-native-carplay/ios 更改后,错误得到解决